Nagios Example


define command{
command_name check_zway1
command_line $USER1$/check_zway.pl -u $HOSTADDRESS$
-I $ARG1$ -C $ARG2$ -S $ARG3$ -w $ARG4$ -c $ARG5$
}

define hostgroup{
hostgroup_name hg-zway1
alias Z-Way HomeAutomation@home
}

define host{
use generic-host
contact_groups admins-lin
host_name zwayserver
alias zwayserver
address 192.168.16.9
hostgroups hg-zway1
}

define servicegroup{
servicegroup_name sg-zway1
alias ZWAY Assets
}

define service{
use normal-service,graphed-service
name buSensor Temperature
check_command check_zway1!17!49!1!19:24!17:28
service_description buSensor-Temperature
hostgroups hg-zway1
servicegroups sg-zway1
}