Comments (3)
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.
It solved now. Thanks for your response. But now i am getting 2 error
- 255 is out of bounds
- DISK CRITICAL - /dev/root is not accessible: No such file or directory
from ansible-nagios.
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.
{{ 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)
- Create Jenkins Server Role
- Break out Firewall code into optional role
- make things more friendly for non-root users
- nagios_host_monitor_swap doesn't really work
- Add a service for checking DNS on Linux
- Working with large number of hosts HOT 1
- Use handlers for iptables-services firewall code
- Add new hosts HOT 1
- [RFE] Add mdadm software raid checks HOT 1
- [RFE] Support FreeNAS (BSD) clients and health checks
- [RFE] Support FreeBSD Nagios Clients
- [RFE] FreeNAS Status API Script Status needs Cleanup
- [RFE] Modernize Firewall code
- [RFE] Provide devices / IoT "ping only" monitoring group
- [RFE] Would be nice to make it compatible with Debian and Ubuntu OS
- Can not update servers.cfg HOT 2
- fatal: [host-01]: UNREACHABLE! HOT 1
- [bug] Some root disks get extrapolated incorrectly.
- [RFE] webserver SSL certificate validation checks
- [RFE] Add alerting via webhook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-nagios.