On Sunday, 26 April 2009 23:24:37 -0300, Daniel Bareiro wrote: > On Sunday, 19 April 2009 22:02:44 -0300, > Daniel Bareiro wrote: > > > On Tuesday, 14 April 2009 07:11:28 -0500, > > Marc Powell wrote: > > > > > On the other hand, I would like also to know if it is possible to > > > > define the maximum number of notifications that are sent. > > > > > > > > I read exist variables that allow to configure both things using > > > > escalations, although I do not have defined escalations. > > > yes, I believe an escalation would do for this. I haven't done this > > > but I expect you could set your first notification to the number of > > > the last notification you want to receive (i.e. 3 for the third > > > notification) and your last notification to some high number (99). > > > Create a contact with a notification period of 'none' and set it as > > > the contact for the escalation. > > It seems a good idea :-) I am going to try it and any doubt I will > > consult you again. > With a little more of time, I was reading about escalations and, to > where I could see, these are created by host and services. Unless there > is a general form to define the escalations, I don't believe that it is > practical considering that I have 291 services and 58 hosts.
Apparently wilcards for the names of services can be used [1] although I am not sure if also it is possible to be done for the hostnames. Will wildcards (or .*) be valid with Nagios 3.0.6? These are the definitions that I was thinking to use: define hostescalation{ host_name * first_notification 1 last_notification 3 escalation_period none notification_interval 60 contact_groups admins } define hostescalation{ host_name * first_notification 4 last_notification 0 escalation_period none notification_interval 60 contact_groups admins } define serviceescalation{ hostgroup_name linux-servers,solaris-servers,windows-servers service_description * first_notification 1 last_notification 3 notification_interval 60 contact_groups admins } define serviceescalation{ hostgroup_name linux-servers,solaris-servers,windows-servers service_description * first_notification 4 last_notification 0 escalation_period none notification_interval 60 contact_groups admins } Regards, Daniel [1] http://www.linuxquestions.org/questions/linux-server-73/advanced-notifications-with-nagios-690896/ -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null