Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This script connects to a site via curl and searches for a string in the web page. If the string is not found it throws out an error and Nagios exit is set to 'critical'.
Current Version
0.1a
Last Release Date
2015-05-28
Owner
Roberto Carraro
License
GPL
Compatible With
Save plugin in $USER1$ dir, in my case (Ubuntu 12.04) it is: /usr/lib/nagios/plugins and make it executable.
Command definition:
/etc/nagios3/commands.cfg: ... # Check HTTP define command{ command_name check_http_curl command_line $USER1$/check_http_curl.sh $HOSTNAME$ $HOSTNOTES$ }
Hosts definition: $HOSTNOTES$ is the string that the plugin will search in the web page source.
/etc/nagios3/conf.d/generic-host_nagios2.cfg ... define host{ host_name www.site1.org checks_enabled 0 use generic-host notes https://www.facebook.com/site1 }
define host{ host_name www.site2.org checks_enabled 0 use generic-host notes [email protected] }
Group definition:
/etc/nagios3/conf.d/hostgroups_nagios2.cfg ... # Web Sites define hostgroup { hostgroup_name web-sites alias Web Sites members www.site1.org,www.site2.org }
Service definition:
/etc/nagios3/conf.d/services_nagios2.cfg ... define service { hostgroup_name web-sites service_description WWW check_command check_http_curl use generic-service notes Check if site is really down. }
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!