Uptime service is crtitical

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Uptime service is crtitical

Post 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!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Uptime service is crtitical

Post by Naveed »

Nagios Experts

Kindly assit

Thank you!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Uptime service is crtitical

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Uptime service is crtitical

Post by Naveed »

Thank you very much!

I have attached screenshot of my service definition.

Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Uptime service is crtitical

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Uptime service is crtitical

Post by Naveed »

Thank you!

I have test it with external thresholds, its done now.

Thank you very much!

You may close this thread.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Uptime service is crtitical

Post by mcapra »

Closing this per your request
Former Nagios employee
https://www.mcapra.com/
Locked