GithubHelp home page GithubHelp logo

Nagios start error about ansible-nagios HOT 3 CLOSED

sadsfae avatar sadsfae commented on July 21, 2024
Nagios start error

from ansible-nagios.

Comments (3)

sadsfae avatar sadsfae commented on July 21, 2024

Hey @adsizzler can you post the contents of your hosts inventory file please? More than likely you've got a host entered under more than one category, they should not belong to more than one type of check category the way that the playbook operates and is templated.

e.g.

[servers]
host-01

[webservers]
host-02

It's ok though, they all have similar checks depending on type. For example the webservers group inherits all the normal servers checks plus HTTP.

from ansible-nagios.

ranjeetranjan avatar ranjeetranjan commented on July 21, 2024

It solved now. Thanks for your response. But now i am getting 2 error

  1. 255 is out of bounds
  2. DISK CRITICAL - /dev/root is not accessible: No such file or directory

from ansible-nagios.

sadsfae avatar sadsfae commented on July 21, 2024

Ansible uses the following to determine your root disk name, and this is the first time I've seen it not choose the correct one.

e.g.

https://github.com/sadsfae/ansible-nagios/blob/master/install/roles/nagios-client/templates/nrpe.cfg.j2#L205

{{ ansible_mounts[0]['device'] }}

What does your df -h output look like on your host? What about ls /dev/mapper/* ?
Do you have python installed on the target system that is giving the error?

What does your /etc/nagios/nrpe.cfg have in it for what's generated in the check_root?

cat /etc/nagios/nrpe.cfg | grep check_root

255 is out of bounds may be indicative of selinux blocking nagios plugin checks (this is common unfortunately), also try setting setenforce 0 and seeing if that makes it go away when you re-run the playbook.

Also check if there is anything in /var/log/audit/audit.log

cat /var/log/audit/audit.log | grep -i avc | audit2why

from ansible-nagios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.