check_url_status

Bookmark and Share

Rating
1 vote
Favoured:
0
Hits
62216
Files:
FileDescription
check_url_status_1.2The plugin itself
Checks the avaibility of websites and interpretes the returncode according to RFC 2616. Works with proxies, proxy authentication. Can check password protected websites.
This plugin checks the status of websites and gives back the returncode according to RFC 2616 and the appropriate message string.

Opposite to check_url by yunus it uses NO system calls. Mainly for security reasons but a little bit for style.

It is based on libwww-perl and there is no need for system-calls.

The script support proxies with and without authentication via command line switches.

The script support checks for password protected websites via command line switches. You have to supply a user and a password.

This plugin is compatible with the Nagios plugin developer guidelines. Therefore a util.pm is needed and I supply an own one. The only difference to the one from the official plugin package is the contact address. You can use the original one. In that case the output from --help is not correct beecause there is a wrong contact. Thats all.

The documentation is within the plugin.


This plugin will not run from within the embedded perl of nagios 2.3 and higher due to the fact that embedded perl like on Apache has several restrictions. If you do not need the performance improvement it is easier not to use the embedded perl.



Attention:

In case of using a proxy be sure that all error codes are forwarded. If the proxy displays a error page of itself you check this page instead of the page you wanna check.
Reviews (1)
byravikiran189, January 18, 2012
1 of 1 people found this review helpful
Its a good plugin though...But needs some modifications

For Nagios 2.X or 3.X do the following

#use lib "/usr/lib/nagios/ops_plugins" ;

needs to be replaced with

#use lib "/usr/local/nagios/libexec" ;



Thanks
RK
Owner's reply

Fixed. The actual version do not use utils.pm. Therefore adaption of the path is obsolete.