[omd-users] (contacts.mk) need help to fix notification

vadiraj vadiraj at revx.io
Fri Apr 29 14:06:00 CEST 2016


Hi Team,

I tried many days didn’t help much for this below problem and need help 
very badly to fix this.

All i need know how to change this below value's in contact list:

host_notifications_enabled 0
host_notification_options n
host_notification_period 24X7
host_notification_commands check-mk-notify
service_notifications_enabled 0
service_notification_options n
service_notification_period 24X7

This is my contacts.mk looks like:
/omd/sites/komli/etc/check_mk/conf.d/wato/contacts.mk
contacts.update(
{'testingkomli': {'alias': u'testing Team',
'contactgroups': ['testingGroup'],
'email': 'abc at komli.com',
'host_notification_options': 'dur',
'notification_period': '24X7',
'notifications_enabled': 'True',
'pager': '',
'service_notification_options': 'wcr'},
}
)


output file looks like this :
/omd/sites/komli/etc/nagios/conf.d/check_mk_objects.cfg
define contact {
contact_name testingkomli
alias testing Team
email abc at komli.com <mailto:abc at komli.com>
pager
host_notifications_enabled 0
host_notification_options n
host_notification_period 24X7
host_notification_commands check-mk-notify
service_notifications_enabled 0
service_notification_options n
service_notification_period 24X7
service_notification_commands check-mk-notify
contactgroups testingGroup
}

Thank you very much for all your help's,

Regards,
Vadiraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20160429/09679c35/attachment.html>


More information about the omd-users mailing list