nagios dont care about time periods
Guy Waugh
guidosh at gmail.com
Mon Jun 22 16:56:25 CEST 2009
Hello,
I might be misunderstanding you here, but it looks like the timeperiods
might not be defined correctly for what you want.
It looks like the first timeperiod is defined as the entire week except for
Tuesday, Thursday and Saturday, midnight to 9 mins past midnight, and
10:00pm to midnight. So the only times in the week that aren't lying within
the timeperiod are about two hours and nine minutes on each of those three
days. The second timeperiod is defined similarly, but for the days Monday,
Wednesday and Friday instead of Tuesday, Thursday and Saturday.
Here is a timeperiod we use to define 'non-working hours' -- it might give
you a bit of help in crafting your own timeperiods...:
define timeperiod {
timeperiod_name nonworkhours
alias Non Working Hours
sunday 00:00-24:00
monday 00:00-09:00,17:00-24:00
tuesday 00:00-09:00,17:00-24:00
wednesday 00:00-09:00,17:00-24:00
thursday 00:00-09:00,17:00-24:00
friday 00:00-09:00,17:00-24:00
saturday 00:00-24:00
}
Regards,
Guy.
On Mon, Jun 22, 2009 at 3:42 PM, Gabriel Sosa <sosagabriel at gmail.com> wrote:
> guys,
>
> we are two sysAdmin and for that I added two time periods for alerts
> but nagios still sending alerts to both. It was working fine but from
> one week ago when I added some other services to check we both
> starting getting alerts.
>
> And I'm sure about something its working wrong because when I go to
> nagios and check the log or alerts sent I can see that were sent to
> both.
>
> Any ideas? Thank you!
>
>
> here is my timeperiods config:
>
> define timeperiod{
> timeperiod_name LUNES_MIERCOLES_VIERNES_DOMINGO
> alias 3 DAYS A WEEK AND SUNDAY
> sunday 00:00-24:00
> monday 00:00-24:00
> tuesday 00:09-22:00
> wednesday 00:00-24:00
> thursday 00:09-22:00
> friday 00:00-24:00
> saturday 00:09-22:00
> }
>
> define timeperiod{
> timeperiod_name MARTES_JUEVES_SABADOS_DOMINGO
> alias JONY 3 DAYS A WEEK AND SUNDAY
> sunday 00:00-24:00
> monday 00:09-22:00
> tuesday 00:00-24:00
> wednesday 00:09-22:00
> thursday 00:00-24:00
> friday 00:09-22:00
> saturday 00:00-24:00
> }
>
>
> AND MY CONTACTs CONFIG
>
>
> define contact{
> contact_name jonathan
> use generic-contact
> alias Jonathan
> email xxxxxxxx at bbbbbbbbbbbb
> service_notification_period MARTES_JUEVES_SABADOS_DOMINGO
> host_notification_period MARTES_JUEVES_SABADOS_DOMINGO
> }
>
> define contact{
> contact_name gabriel
> use generic-contact
> alias Gabriel
> email xxxxxxxx at aaaaaaaaa
> service_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
> host_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
> }
>
>
> --
> Gabriel Sosa
> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
>
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090622/22818281/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list