check_uptime giving wrong time on output
Posted: Mon Sep 02, 2019 9:41 am
Hi Forum
I have implemented a check where if a server fails to reboot during our monthly patching cycle Nagios will notify us. But I have come across a problem where the time displayed by Nagios is not the same as what is displaying on the host.
For example.
Yet on the server it is displaying the uptime as 62 days.. Now 62 days is 8.85714 weeks but where on earth is Nagios getting the '56d 1195:71636h' part from? I am assuming that Nagios is telling me that the server has been up for 8w, or 56d or 1195hours, because 8w and 56d makes no sense. Even though, 1195 hours is 49 days not 56.
Current setup:
Nagios XI 5.6.6
Nagios Core 4.2.4 running Gearman
NRPE Plugin 3.2.1
If you need anymore info please let me know.
I have implemented a check where if a server fails to reboot during our monthly patching cycle Nagios will notify us. But I have come across a problem where the time displayed by Nagios is not the same as what is displaying on the host.
For example.
Code: Select all
[root@nagios libexec]# ./check_nrpe -H SQLNMNP01 -c check_uptime
OK: uptime: 8w 56d 1195:71636h, boot: 2019-Jul-02 04:38:12 (UTC)|'uptime'=5392100s;172800;86400
Current setup:
Nagios XI 5.6.6
Nagios Core 4.2.4 running Gearman
NRPE Plugin 3.2.1
If you need anymore info please let me know.