In
I've added the plugin:/usr/lib/nagios/plugins
.nameof-test.sh
In
I've put the command definition:/etc/nagios-plugins/config/nameof-test.cfg
Code: Select all
define command {
command_name check_specific
command_line /usr/lib/nagios/plugins/nameof-test.sh -u 'website.com' -w 600 -c 1500
}
I've defined the service:/etc/nagios3/conf.d/servers.cfg
Code: Select all
define service {
hostgroup_name main-group
service_description Check_Response
check_command check_specific
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
I've added the service:/etc/nagios3/objects/desired-server
Code: Select all
define service{
use generic-remote-service ; Name of server
host_name server-name
service_description Check-Response
check_command check_specific
}
Any help or guidance would be greatly appreciated, thanks!