[Nagios-users] timeperiod which excempts 1. monday every month?
Hi guys, I have a few services which we monitor with nagios, where there's a service-window every 1. monday of the month (between 2 and 5 am) and I keep getting woken by it (SMS sent to the guard). Problem is that I don't want to except every monday morning from 2 to 5am. I also have a few other servicewindows which works similarly and annoys me currently. Is this supported by any version of Nagios? -- Regards, Klavs Klavsen, GSEC - [EMAIL PROTECTED] - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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
Re: [Nagios-users] timeperiod which excempts 1. monday every month?
On Thu, 6 Apr 2006, Klavs Klavsen wrote: Hi guys, I have a few services which we monitor with nagios, where there's a service-window every 1. monday of the month (between 2 and 5 am) and I keep getting woken by it (SMS sent to the guard). Problem is that I don't want to except every monday morning from 2 to 5am. I also have a few other servicewindows which works similarly and annoys me currently. Is this supported by any version of Nagios? Nagios timeperiods only considers day of week and hours in timeperiods. Otherwise the logic would have to be a whole lot of code and then having to deal with locales... The best way to get the 1st monday of the month would be to schedule down-time for the particular days. -- -sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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
Re: [Nagios-users] timeperiod which excempts 1. monday every month?
On Thu, April 6, 2006 15:19, Subhendu Ghosh said: [SNIP] > Nagios timeperiods only considers day of week and hours in timeperiods. > Otherwise the logic would have to be a whole lot of code and then having > to deal with locales... > > The best way to get the 1st monday of the month would be to schedule > down-time for the particular days. > Can I automatically schedule downtime ? otherwise we'll have to remember to do that every month :( -- Regards, Klavs Klavsen, GSEC - [EMAIL PROTECTED] - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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
Re: [Nagios-users] timeperiod which excempts 1. monday every month?
I've heard there's a perl API for nagios, can I schedule downtime via that? (by writing my own script ofcourse :) -- Regards, Klavs Klavsen, GSEC - [EMAIL PROTECTED] - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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
RE: [Nagios-users] timeperiod which excempts 1. monday every month?
Hi, Why don't you use external commands as in http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com mand_id=118 on the Nagios server from cron or send them with send_nsca from another server? HTH, Ludo -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Klavs Klavsen Verzonden: donderdag 6 april 2006 16:13 Aan: Subhendu Ghosh CC: nagios-users@lists.sourceforge.net Onderwerp: Re: [Nagios-users] timeperiod which excempts 1. monday every month? I've heard there's a perl API for nagios, can I schedule downtime via that? (by writing my own script ofcourse :) -- Regards, Klavs Klavsen, GSEC - [EMAIL PROTECTED] - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 ___ 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 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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
RE: [Nagios-users] timeperiod which excempts 1. monday every month?
On Thu, April 6, 2006 16:22, Joris Ludo said: > Hi, > > Why don't you use external commands as in > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com > mand_id=118 > on the Nagios server from cron or send them with send_nsca from another > server? > [SNIP] Thanks Joris - that's a very good solution to the problem :) Nice to learn something new :) -- Regards, Klavs Klavsen, GSEC - [EMAIL PROTECTED] - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." --Henry Spencer --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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