checking for reboots of a host

Andreas Wassatsch andreas at wassatsch.de
Mon Aug 23 13:38:28 CEST 2004


Frank,

see the attached check_uptime.pl - it does the job, you may have
to change the warning/critial limits hardcoded into the script.

regards,
Andreas

> Yes, I'm currently using SNMP to obtain uptime of hosts and network
> devices.
> Is there a way of doing comparison from the return value in the standard
> script?
>
> I would like to check if value X returned is less than < 86400 (seconds
> for
> 24 hours), if less than then return uptime with a WARNING, if greater than
>>= 86400 simply return uptime (okay)
>
> Frank

-- 
Andreas Wassatsch             Kirchwaldstr. 13
dipl.-ing.                    63533 Mainhausen
                              tel: 06182-828 604
LPIC-2                        mobil: 0177-6510 446
using Linux since 0.99pl10    gpg-id: 0x5AC8EA6C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_uptime.pl
Type: application/x-perl
Size: 1234 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040823/e08348c0/attachment.bin>


More information about the Users mailing list