Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check value for specified string in a web page, and sends alerts for warning and critical threshold. I used it to monitor the datacenter's temperature and humidity.
Current Version
1.0
Last Release Date
2011-05-02
Owner
Eduard Guloiu
License
GPL
Compatible With
Utility to check values of strings on a web page. Usefull for a lot of stuff. (any kind of sensor /application that reports it's status on a web page)
The value and the string must be on the same row, like this:
Temperature 25.29°C Relative Humidity 28% Air Flow 29 Light Level 1 Sound Level 77 IO-1 99 IO-2 99 IO-3 99
Usage for extracting temperature: /usr/lib64/nagios/plugins/check_string -H <ip of device> -s "Temperature" -w 20 -c 30 WARNING Temperature 25 | Temperature=25;20;30
/usr/lib64/nagios/plugins/check_string -H 10.160.198.130 -s "Relative Humidity" -w 30 -c 40 OK Relative Humidity 29 | Relative Humidity=29;30;40
Seeing it in action:
define command { command_name check_string command_line $USER1$/check_string -H $HOSTADDRESS$ -s $ARG1$ -w $ARG2$ -c $ARG3$ register 1 }
check_command check_string!"Relative Humidity"!40!50
You must be logged in to submit a review.
To:
From: