
Apache
check_vhosts.pl
Description:
check_vhosts.pl checks all virtual hosts of an running Apache2 instance.
Current Version
1.0
Last Release Date
2009-10-15
Compatible With
- Nagios 3.x
Owner
Website
Project Files
File | Description |
---|---|
check_vhosts.pl | check_vhosts.pl |
Project Notes
check_vhosts.pl checks all virtual hosts of an running Apache2 instance.
This plugin depends on sshpass (for Debian: apt-get install sshpass) and ssh (for Debian: apt-get install ssh).
If you have the following problems:
- "Service check did not exit properly": make sure you are not running plugin with nagios embedded perl interpreter (to be sure: command_line /usr/bin/perl $USER1$/check_vhosts.pl ...);
- "Service Check Timed Out": make sure your server is in nagios .ssh/known_hosts file. To be sure of that connect to your web server (su - nagios -c "ssh root@server". In most cases nagios can't connect to a shell, so you should check if nagios have /bin/bash parameter instead of /bin/false in /etc/passwd) with ssh and type yes to add it. This issue is corrected version 1.2 but warning, it automatically adds hosts to known_hosts file.
NB: not tested with Nagios 1.x & 2.x
Reviews
(1)
Add a Review
Add a Review
You must be logged in to submit a review.
Thank you for your review!
Your review has been submitted and is pending approval.
Recommend
To:
From:
Thank you for your recommendation!
Your recommendation has been sent.
Page Sections
Project Stats
Rating
1 (2)
Favorites
0
Views
135,721