define contact report invalid syntax
Posted: Sun Mar 24, 2013 9:08 am
Hi Experts,
I'm not very good at Nagios. My company use OMD. I try to define contact under check_mk directory but have "invalid syntax" error. can someone give me a hint how to troubleshoot the issue.
Path: ~/etc/check_mk/conf.d/wato$
When i run cmk -R command, it reported an error: Cannot read in configuration file /omd/sites/xxx/etc/check_mk/conf.d/wato/contacts.mk:
invalid syntax (contacts.mk, line 8)
define contact{
contact_name testuser
alias testuser
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,u
host_notification_options d,u
host_notifications_enabled 1
service_notifications_enabled 1
email [email protected]
}
Thanks.
I'm not very good at Nagios. My company use OMD. I try to define contact under check_mk directory but have "invalid syntax" error. can someone give me a hint how to troubleshoot the issue.
Path: ~/etc/check_mk/conf.d/wato$
When i run cmk -R command, it reported an error: Cannot read in configuration file /omd/sites/xxx/etc/check_mk/conf.d/wato/contacts.mk:
invalid syntax (contacts.mk, line 8)
define contact{
contact_name testuser
alias testuser
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,u
host_notification_options d,u
host_notifications_enabled 1
service_notifications_enabled 1
email [email protected]
}
Thanks.