Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_strings

Current Version
1.0
Last Release Date
2011-05-02
Compatible With
  • Nagios 3.x
License
GPL
Hits
97443
Files:
FileDescription
check_stringcheck_string
Nagios CSP

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!
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.
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