Download details

check_uptime check_uptime.php

Informationen
Erstelldatum 17.03.2021
Änderungsdatum 29.03.2022
Version 1.20220328
Dateigröße 1.64 KB
Downloads 350
Lizenz MIT Lizenz external
Preis Donate PayPal

 

Nagios Plugin to check uptime over snmp (Linux/Window)

You need to install php-snmp

If you use windows, disable fast boot (HowTo)!

If you find a bug or have a request, write me.


/usr/bin/php ./check_uptime.php -H 192.168.2.212 -P 2 -C public
OK - 4.9.0-14-amd64 - 56 days, 3 hours, 48 minutes, 42 seconds

/usr/bin/php ./check_uptime.php -H 192.168.2.11 -P 2  -C public
OK -  (Build 19042) - 2 days, 14 hours, 8 minutes, 9 seconds

/usr/bin/php ./check_uptime.php -H 192.168.2.11 -P 2  -C public -n
OK -  (Build 19042) - 2 days, 14 hours, 8 minutes, 9 seconds


 

Usage: /usr/bin/php check_uptime.php -H [home] -P [snmp_version] ( -n (no version) -d (debug) -V (snmp debug))

snmp_version 2 -C [community string] (default -C public)
3 -u [user] -p [password] -a [auth. prot. (MD5/SHA] ( -x [priv. proto. (DES/AES)] -X [priv. password])

 
               


 

uptime

Changelog

Version 1.20220328
correct debug mode


Version 1.20220312
add -n no version (build) information


Version 1.20211206
help added version and contact


Version 1.20210317
First Release

Would you like to support me?
Then donate to PayPal...