Page 1 of 1

define contact report invalid syntax

Posted: Sun Mar 24, 2013 9:08 am
by leoqin
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.

Re: define contact report invalid syntax

Posted: Mon Mar 25, 2013 10:41 am
by abrist
OMD is a highly customized distribution and there are some potentially significant differences from a vanilla version of core. You may want to ask about this issue on their forums: http://www.redmine.org/projects/redmine/boards