uptime thresholds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

uptime thresholds

Post by MichielvM »

Hello all,

I was looking for a way to get alerts if a Windows host goes down 'in between checks'

There loads of SNMP related stuff out there, but my eye fell on a what's new text.
1.4.16 27th June 2012
ENHANCEMENTS
check_nt UPTIME accepts warning/critical thresholds (Ryan Kelly)
I could work with this, sadly there's 0 information to be found about this.
What syntax or arguments to parse etc.
Do I need $ARG3$ and $ARG4$? If so, what do I enter in there?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: uptime thresholds

Post by tgriep »

MichielvM

I found a link that explains how the thresholds work for check commands and here is the link to it so you can review it.
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT

If you could give me more details on how your checks are setup currently, I might be able to help you better.

One example I have is if you want to create an alert if the up time is less than 5 minutes, you would use the following

-w 5:
this will create a warning if the up time is less than 5 minutes

If you want a critical error if the up time is less than 5 minutes, you would use
-c 5:

If you have any more questions, please post back.

Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: uptime thresholds

Post by MichielvM »

What is was really after was getting an alert if a server has rebooted.
I.e. in the Windows eventlog a Coldstart event is generated.

I figured when an uptime check results in less than x time, the host has been down.
I'll give your link and comments a go. will check back.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: uptime thresholds

Post by tgriep »

I found a couple of plugins that can check for if a Windows host has been rebooted.
Try one of these out and let us know if they will work for you.

http://exchange.nagios.org/directory/Pl ... MI/details
and
http://exchange.nagios.org/directory/Pl ... ot/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: uptime thresholds

Post by MichielvM »

tgriep wrote:MichielvM

I found a link that explains how the thresholds work for check commands and here is the link to it so you can review it.
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT

If you could give me more details on how your checks are setup currently, I might be able to help you better.

One example I have is if you want to create an alert if the up time is less than 5 minutes, you would use the following

-w 5:
this will create a warning if the up time is less than 5 minutes

If you want a critical error if the up time is less than 5 minutes, you would use
-c 5:

If you have any more questions, please post back.

Thanks.
Sorry for this late reply. I got it working using above tresholds.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: uptime thresholds

Post by cmerchant »

Great. We'll go ahead and close the thread. Thanks.
Locked