Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_strings
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
I used it to monitor the datacenter's temperature and humidity.
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 -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
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
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
Reviews (0)
Be the first to review this listing!