Page 1 of 1
Uptime service is crtitical
Posted: Fri Jul 01, 2016 6:20 am
by Naveed
Hello,
Almost three hours before I have reboot my servers, after that my Uptime service is showing critical state,
CRITICAL: uptime: 03:26h, boot: 2016-Jul-01 07:50:17 (UTC)
Can anyone tell me that how I can change the value of uptime so it should not giver critical alerts anymore.
Thank you!
Re: Uptime service is crtitical
Posted: Sat Jul 02, 2016 5:35 pm
by Naveed
Nagios Experts
Kindly assit
Thank you!
Re: Uptime service is crtitical
Posted: Sun Jul 03, 2016 11:38 pm
by Box293
You will need to adjust your thresholds to define critical being XXX time after a reboot.
Can you go into CCM and show us the service definition you are using for that Uptime service.
Here are some examples:
http://sites.box293.com/nagios/guides/c ... cks/uptime
Re: Uptime service is crtitical
Posted: Tue Jul 05, 2016 5:53 pm
by Naveed
Thank you very much!
I have attached screenshot of my service definition.
Thank you!
Re: Uptime service is crtitical
Posted: Tue Jul 05, 2016 6:18 pm
by Box293
What version of NSClient++ are you using?
I don't think that is the service. I've tried check_nt after rebooting my server and the output is:
Code: Select all
./check_nt -H win2008r2-01 -p 12489 -v UPTIME
System Uptime - 0 day(s) 0 hour(s) 1 minute(s) |uptime=1
echo $?
0
Whereas using check_nrpe I get the critical:
Code: Select all
./check_nrpe -H win2008r2-01 -c check_uptime
CRITICAL: uptime: 0:3h, boot: 2016-Jul-05 23:12:20 (UTC)|'uptime'=194s;172800;86400
echo $?
2
You just need to edit your check_nrpe service to use the correct thresholds. Here are some examples:
http://sites.box293.com/nagios/guides/c ... cks/uptime
Re: Uptime service is crtitical
Posted: Tue Jul 05, 2016 7:03 pm
by Naveed
Thank you!
I have test it with external thresholds, its done now.
Thank you very much!
You may close this thread.
Re: Uptime service is crtitical
Posted: Wed Jul 06, 2016 9:22 am
by mcapra
Closing this per your request