The problem is that most if not all these team names have spaces which is stopping my config from reloading.
My command is (i've removed all the other options for send_to_bmc.pl just to make this easier to read) :
Code: Select all
define command{
command_name Send_BMC_service_P2_test
command_line $USER1$/P3_send_to_bmc.pl --email "$ARG1$" --nag_priority "$ARG2$" --support_group "$ARG3$"
}
Code: Select all
define contact{
contact_name LINUX_BMC_P2_CRITICAL_TEST
alias LINUX_BMC_P2_CRITICAL_TEST
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,u,r
host_notification_options d,u,r,f,s
service_notification_commands Send_BMC_service_P2_test!email@test.com!2!"TEST TEAM NAME"
host_notification_commands Send_BMC_host_P2_test
register 1
}
Code: Select all
[root objects]# nagios checkconfig
Running configuration check... CONFIG ERROR! Check your Nagios configuration.
Error: Service notification command 'NAME"' specified for contact 'LINUX_BMC_P2_CRITICAL_TEST' is not defined anywhere!
Error: Service notification command 'TEAM' specified for contact 'LINUX_BMC_P2_CRITICAL_TEST' is not defined anywhere!