Define check_website command in commands.cfg
add commands to /usr/local/nagios/etc/objects/commands.cfg
# 'check_website' command definition
define command{
command_name check_website
command_line $USER1$/check_website -H $HOSTADDRESS$
}
Download Plugin and copy to libexec
Download check_website plugin
Copy into /usr/local/nagios/libexec/change file permissions to chmod 775 check_website
Test Plugin
/usr/local/nagios/libexec/ ./check_website -H (hostname) -F (file)
Showing posts with label check_website. Show all posts
Showing posts with label check_website. Show all posts
Wednesday, 6 July 2011
Wednesday, 29 June 2011
Nagios webserver check - check_website
define host{
use websites
host_name www.a24direct.co.uk
alias www.a24direct.co.uk
address www.a24direct.co.uk
}
define service{
use local-service
host_name Nagios-Bellville
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use local-service
host_name www.bla.com
service_description check_website
check_command check_website
}
Check_website
# 'check_website' command definition
define command{
command_name check_website
command_line $USER1$/check_website -H $HOSTADDRESS$
}
Plugin
Copy check_website plugin to /usr/local/nagios/libexec/
use websites
host_name www.a24direct.co.uk
alias www.a24direct.co.uk
address www.a24direct.co.uk
}
define service{
use local-service
host_name Nagios-Bellville
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use local-service
host_name www.bla.com
service_description check_website
check_command check_website
}
Check_website
/usr/local/nagios/etc/objects/commands.cfg
# 'check_website' command definition
define command{
command_name check_website
command_line $USER1$/check_website -H $HOSTADDRESS$
}
Plugin
Copy check_website plugin to /usr/local/nagios/libexec/
Subscribe to:
Posts (Atom)