define contact report invalid syntax

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
leoqin
Posts: 3
Joined: Thu Jan 31, 2013 8:46 pm

define contact report invalid syntax

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: define contact report invalid syntax

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked