Search found 7 matches

by link
Wed Jun 19, 2013 3:59 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

abrist, thanks for suggeston, but I don't like idea using one more hostgroup just for sms notifications... nave 2 news: 1. I understood that config I posted should not work at all. This is correctly described here: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html 2. I found way to get w...
by link
Sat Jun 15, 2013 1:50 pm
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

I checked logs immediately after understood this config is not working.
when using two templates "notify-by-sms" just never appears in log.
by link
Fri Jun 14, 2013 3:52 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

nope, I tried that before and now checked again.
It doen't metter if *notification_options are presend or not.
nagios just executes notify-service-by-email and never by-sms
by link
Wed Jun 12, 2013 10:24 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

with config I posted I suggest that I will receive mails + sms in non-working hours. And issue is that I receive only mails and never sms. Just for test I've changed 'nonworkhours' to '24x7' in sms-contact tempate, and anyway I never received any sms. Checked nagios.log as well - it never calls notu...
by link
Wed Jun 12, 2013 2:47 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

with config I posted I never receive sms, only mails.
if I do in one template:

Code: Select all

service_notification_commands   notify-service-by-email,notify-by-sms
then I get mail and sms, but 24x7 for sure.
by link
Tue Jun 11, 2013 3:04 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

Re: several notification commands with different timeperiods

sure I do define contact{ name generic-contact service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r,f,s host_notification_options d,u,r,f,s service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register 0 ...
by link
Mon Jun 10, 2013 4:41 am
Forum: Open Source Nagios Projects
Topic: several notification commands with different timeperiods
Replies: 13
Views: 7591

several notification commands with different timeperiods

Hello, Idea seems simple, but didn't find how to acomplish that. I want to send sms alerts only in non-working hours. Tried to define two contact templates (generit, sms-conctat) with different commands (email-notify, sms-notify) and added to contact : use generic-contact,sms-contact but that do not...