check_nagios nagios and nagiostats not updating
check_nagios nagios and nagiostats not updating
This service turned critical after upgrading from 4.08 to 4.11. When I checked /usr/local/nagios/bin I noticed that the nagios and nagiostats files stopped updating after the upgrade to 4.11. I'm not sure what this means or what caused this. The status.dat file is updating.
The service command is
command_line $USER1$/check_nagios -t 20 -e 5 -F /usr/local/nagios/var/status.dat -C /usr/local/nagios/bin/nagios
Thanks
The service command is
command_line $USER1$/check_nagios -t 20 -e 5 -F /usr/local/nagios/var/status.dat -C /usr/local/nagios/bin/nagios
Thanks
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: check_nagios nagios and nagiostats not updating
I'm not sure I follow, these are binaries, they don't update.nagtech2 wrote:I noticed that the nagios and nagiostats files stopped updating after the upgrade to 4.11
What's the output if you run it manually?nagtech2 wrote:The service command is
command_line $USER1$/check_nagios -t 20 -e 5 -F /usr/local/nagios/var/status.dat -C /usr/local/nagios/bin/nagios
Code: Select all
[jdalrymple@localhost ~]$ /usr/local/nagios/libexec/check_nagios -t 20 -e 5 -F /usr/local/nagios/var/status.dat -C /usr/local/nagios/bin/nagios
NAGIOS OK: 6 processes, status log updated 5 seconds agoRe: check_nagios nagios and nagiostats not updating
Here is the output from command line.
NAGIOS CRITICAL: Could not locate a running Nagios process!
NAGIOS CRITICAL: Could not locate a running Nagios process!
Re: check_nagios nagios and nagiostats not updating
What is the output of this command?
Code: Select all
ps ax | grep 'nagios -d' | grep -v grepRe: check_nagios nagios and nagiostats not updating
1251 ? Ss 106:32 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
1628 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
1628 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Re: check_nagios nagios and nagiostats not updating
What is the version on the check_nagios plugin?
Run this and post back.
Did it get updated when the core was updated?
Run this and post back.
Code: Select all
/usr/local/nagios/libexec/check_nagios -VBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_nagios nagios and nagiostats not updating
I had upgraded to plugins 2.11, I re-installed plugins 2.03 just now and that issue is fixed. The other issue I had with 2.11 was all of my services that were in a unknown state because the host was down, those all went to critical with the updated check_snmp. Those are all back to unknown with plugins 2.03 installed
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_nagios nagios and nagiostats not updating
You can define this in the newer 2.11 version of the plugins:nagtech2 wrote:The other issue I had with 2.11 was all of my services that were in a unknown state because the host was down, those all went to critical with the updated check_snmp. Those are all back to unknown with plugins 2.03 installed
-t, --timeout=INTEGER:<timeout state>
Seconds before connection times out (default: 10)
Optional ":<timeout state>" can be a state integer (0,1,2,3) or a state STRING
Code: Select all
-t 30:3As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: check_nagios nagios and nagiostats not updating
Can you think of any issue with staying with 2.03?, I would like to do that until I have time to play with these new options you mentioned. Also if I'm reading correctly, If I add the following to nagios.cfg "host_down_disable_service_checks=1" that should prevent nagios from running service checks on a host when its down correct?
Thanks
Thanks
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_nagios nagios and nagiostats not updating
Staying on 2.0.3 should not be a problem.
As long as you're on core 4.1.x then yes you are right, when the host is down HARD service checks will not be executed.nagtech2 wrote:Also if I'm reading correctly, If I add the following to nagios.cfg "host_down_disable_service_checks=1" that should prevent nagios from running service checks on a host when its down correct?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.