Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_vhosts
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!
The plugin uses a textfile as input with a single vhost per line, so when adding new vhosts or removing vhosts, the input file can be modified and the changes will take effect when the next check is run.
It has options to use an IPnumber instead of the vhost name to bypass routes caused by hostname resolution and it can use a different port (e.g. -p 8080 to check vhosts on a tomcat server)
Any kind of failure will result in CRITICAL, I couldn't find a reason to include WARN as state (let me know if you know any good reason).
v0.2 is more like the plugin guidelines suggest, though I haven't figured out yet how to skip creating temporary files.
new in v0.2 is the -d flag, which makes the script save the downloaded files in /tmp so you can check which strings to use for validation.
v0.3 fixes the use of wget's exit status and knows the difference between wget versions < 1.12 and >= 1.12
USAGE:
command definition:
define command {
command_name check_vhosts
command_line $USER1$/check_vhosts -H $ARG1$ -f $ARG2$ -v 1
}
in the service definition:
check_command check_vhosts!$HOSTADDRESS$!/path/to/vhostsfile
vhostsfile:
fqdn1URI String expected back
fqdn2URI String expected back for fqdn2
...
It has options to use an IPnumber instead of the vhost name to bypass routes caused by hostname resolution and it can use a different port (e.g. -p 8080 to check vhosts on a tomcat server)
Any kind of failure will result in CRITICAL, I couldn't find a reason to include WARN as state (let me know if you know any good reason).
v0.2 is more like the plugin guidelines suggest, though I haven't figured out yet how to skip creating temporary files.
new in v0.2 is the -d flag, which makes the script save the downloaded files in /tmp so you can check which strings to use for validation.
v0.3 fixes the use of wget's exit status and knows the difference between wget versions < 1.12 and >= 1.12
USAGE:
command definition:
define command {
command_name check_vhosts
command_line $USER1$/check_vhosts -H $ARG1$ -f $ARG2$ -v 1
}
in the service definition:
check_command check_vhosts!$HOSTADDRESS$!/path/to/vhostsfile
vhostsfile:
fqdn1
fqdn2
...
Reviews (0)
Be the first to review this listing!