[RESOLVED]How to define custom plugin "check_http"
Posted: Wed Mar 15, 2017 11:49 am
Hello, I wanted to ask you help.
I want using the plugin "check_http". I tried to use it with the following command:
./check_http -I 10.20.30.2 -p 80 -u http://10.20.30.2/mywiki
and it works.
Now I don't use it inside "definition service"
I wrote this:
I don't writing the command_line
I want using the plugin "check_http". I tried to use it with the following command:
./check_http -I 10.20.30.2 -p 80 -u http://10.20.30.2/mywiki
and it works.
Now I don't use it inside "definition service"
I wrote this:
Code: Select all
define service {
host_name NAS
service_description Wiki (HTTP)
check_command check_http
max_check_attempts 5
check_period 24x7
#contacts admins
#contact_groups admins
notification_interval 30
notification_period 24x7
}
define command {
commnad_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$ ?????????????
}