<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=590265513-07112008><FONT face=Arial 
color=#0000ff size=2>Thanks it seems to be working. Never found any example of 
this sort. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=590265513-07112008><FONT face=Arial 
color=#0000ff size=2>Thanks once again.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=590265513-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=590265513-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=590265513-07112008><FONT face=Arial 
color=#0000ff size=2>- Sac</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sotiroff, Kristian 
[mailto:Sotiroff.Kristian@mtvne.com] <BR><B>Sent:</B> Freitag, 7. November 2008 
13:33<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: 
[Nagios-users] Nagios Notifications<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=317553112-07112008><FONT face=Arial 
color=#0000ff size=2>please post back to the nagios userlist, rather than 
me.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=317553112-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=317553112-07112008><SPAN 
class=598123012-07112008><FONT face=Arial color=#0000ff size=2>i have this for a 
period similar to what you want;</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=317553112-07112008></SPAN><SPAN 
class=317553112-07112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=317553112-07112008><FONT face=Arial 
color=#0000ff size=2>define 
timeperiod{<BR>     timeperiod_name harris_reboot<BR>     alias harris 
nightly reboot, <STRONG>skipping 2000 - 
2200<BR></STRONG>     sunday 00:00-20:00,22:00-24:00<BR>     
monday 00:00-20:00,22:00-24:00<BR>     
tuesday 00:00-20:00,22:00-24:00<BR>     
wednesday 00:00-20:00,22:00-24:00<BR>     
thursday 00:00-20:00,22:00-24:00<BR>     
friday 00:00-20:00,22:00-24:00<BR>     
saturday 00:00-20:00,22:00-24:00<BR>}</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><BR> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Holikar, Sachin (ext) 
[mailto:sachin.holikar.ext@siemens.com] <BR><B>Sent:</B> 07 November 2008 
12:29<BR><B>To:</B> Sotiroff, Kristian<BR><B>Subject:</B> RE: [Nagios-users] 
Nagios Notifications<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2>That is what I was execting initially. I wrote "<SPAN 
class=925071509-07112008><FONT face=Arial size=2>I have seen the timeperiod 
options but the examples only show the provision for holidays or so. Can we 
bypass lets say few hrs in between everyday??</FONT></SPAN>"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2>If yes then how?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2>I tried writing below templates but I'm sure its not 
perfect ..</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2>Intend to bypass 1 hr (from 6 AM to 7 AM)  eeryday, I 
wrote 2 templates below, (System Name is Host12)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2>define 
timeperiod{<BR>        
name            
special<BR>        timeperiod_name 
special<BR>        
alias           
special<BR>        
sunday          
00:06-00:07<BR>        
monday          
00:06-00:07<BR>        
tuesday         
00:06-00:07<BR>        
wednesday       
00:06-00:07<BR>        
thursday        
00:06-00:07<BR>        
friday          
00:06-00:07<BR>        
saturday        
00:06-00:07<BR>                
}</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><SPAN 
class=431212412-07112008>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2></FONT><BR><FONT 
face=Arial color=#0000ff size=2>define 
timeperiod{<BR>        
name            <SPAN 
class=431212412-07112008>Host12</SPAN>_special<BR>        
timeperiod_name <SPAN 
class=431212412-07112008>Host12</SPAN>_special<BR>        
use             
special<BR>        
alias           <SPAN 
class=431212412-07112008>Host12</SPAN>_special<BR>        
sunday          
00:00-24:00<BR>        
monday          
00:00-24:00<BR>        
tuesday         
00:00-24:00<BR>        
wednesday       
00:00-24:00<BR>        
thursday        
00:00-24:00<BR>        
friday          
00:00-24:00<BR>        
saturday        00:00-24:00<BR>}</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=431212412-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sotiroff, Kristian 
[mailto:Sotiroff.Kristian@mtvne.com] <BR><B>Sent:</B> Freitag, 7. November 2008 
12:51<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: 
[Nagios-users] Nagios Notifications<BR></FONT></DIV>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><SPAN class=719014711-07112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=719014711-07112008>in which case, its probably easier if you simply create 
a timeperiod in whcih you leave out the required hours, then have your service 
checks and / or notifications occurring during this time.</SPAN><SPAN 
class=719014711-07112008> </SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=719014711-07112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=719014711-07112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> Holikar, Sachin 
(ext) [mailto:sachin.holikar.ext@siemens.com] <BR><B>Sent:</B> 07 November 2008 
11:40<BR><B>To:</B> Sotiroff, Kristian<BR><B>Subject:</B> RE: [Nagios-users] 
Nagios Notifications<BR></FONT><BR></DIV></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=281323511-07112008><FONT face=Arial 
color=#0000ff size=2>Thanks for the reply.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=281323511-07112008><FONT face=Arial 
color=#0000ff size=2> Are you saying that if I simply copy paste the below 
code in a file called 'disable_active_service_checks' under eventhandlers 
directory , that should work??</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=281323511-07112008><FONT face=Arial 
color=#0000ff size=2>And how do you actually <SPAN 
class=470452311-07112008><FONT face=Arial color=#0000ff size=2> change the 
STOP_EXECUTING_SERVICE_CHECKS to 
START_EXECUTING_SERVICE_CHECKS</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=281323511-07112008><FONT face=Arial 
color=#0000ff size=2><SPAN 
class=470452311-07112008></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=281323511-07112008><FONT face=Arial 
color=#0000ff size=2><SPAN class=470452311-07112008>Little confused , bare with 
me.</SPAN></FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Sotiroff, Kristian 
[mailto:Sotiroff.Kristian@mtvne.com] <BR><B>Sent:</B> Freitag, 7. November 2008 
12:27<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: 
[Nagios-users] Nagios Notifications<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Holikar, Sachin (ext) 
[mailto:sachin.holikar.ext@siemens.com] <BR><B>Sent:</B> 07 November 2008 
11:20<BR><B>To:</B> Sotiroff, Kristian<BR><B>Subject:</B> RE: [Nagios-users] 
Nagios Notifications<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=514441811-07112008><FONT face=Arial 
color=#0000ff size=2>Unfortunately we did not find any sample scripts under 
eventhandler directory. The directory specified in resource.cfg itself does not 
exist.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=514441811-07112008><FONT face=Arial 
color=#0000ff size=2>Can you suggest ?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN 
class=470452311-07112008><FONT face=Arial color=#0000ff size=2> <... 
snip....> </FONT></SPAN></DIV>
<DIV><SPAN class=925071509-07112008><FONT face=Arial><FONT color=#0000ff 
size=2><SPAN class=182230711-07112008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=925071509-07112008><FONT face=Arial><FONT color=#0000ff 
size=2><SPAN class=182230711-07112008></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2> have you installed the plugins? it comes with that i think. 
</FONT></SPAN><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2>the scripts are pretty basic though. </FONT></SPAN></DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2>here 
is the 'disable_active_service_checks script:</FONT></SPAN></DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2>#!/bin/sh</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2># 
Write a command to the Nagios command file to cause<BR># it to disable active 
service checks.  This can be<BR># referred to as 'standby' mode in a 
redundant monitoring<BR># environment.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2># 
Notes:<BR># 1) This script is not intended to be used as 
an<BR>#    event handler by itself.  Instead, it is used by 
other<BR>#    event handler scripts (like the redundancy 
examples).<BR># 2) In order for Nagios to process any commands 
that<BR>#    are written to the command file, you must 
enable<BR>#    the check_external_commands option in the 
main<BR>#    configuration file.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2>echocmd="/bin/echo"</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2>CommandFile="/usr/local/nagios/var/rw/nagios.cmd"</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2># get 
the current date/time in seconds since UNIX epoch<BR>datetime=`date 
+%s`</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2># 
create the command line to add to the command file<BR>cmdline="[$datetime] 
STOP_EXECUTING_SERVICE_CHECKS"</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2># 
append the command to the end of the command file<BR>`$echocmd $cmdline >> 
$CommandFile`</FONT></SPAN></DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=470452311-07112008><FONT face=Arial color=#0000ff size=2>in 
order to reenable them, simply change the STOP_EXECUTING_SERVICE_CHECKS to 
START_EXECUTING_SERVICE_CHECKS</DIV>
<DIV><BR></DIV></FONT></SPAN><PRE>CONFIDENTIALITY NOTICE

This e-mail (and any attached files) is confidential and protected by 
copyright (and other intellectual property rights). If you are not the 
intended recipient please e-mail the sender and then delete the email and 
any attached files immediately. Any further use or dissemination is 
prohibited.

While MTV Networks Europe has taken steps to ensure that this email and 
any attachments are virus free, it is your responsibility to ensure that 
this message and any attachments are virus free and do not affect your 
systems / data.

Communicating by email is not 100% secure and carries risks such as delay, 
data corruption, non-delivery, wrongful interception and unauthorised 
amendment. If you communicate with us by e-mail, you acknowledge and 
assume these risks, and you agree to take appropriate measures to minimise 
these risks when e-mailing us. 

MTV Networks International, MTV Networks UK & Ireland, Greenhouse, 
Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions 
International and Comedy Central are all trading names of MTV Networks 
Europe.  MTV Networks Europe is a partnership between MTV Networks Europe 
Inc. and Viacom Networks Europe Inc.  Address for service in Great Britain 
is UK House, 180 Oxford Street, London W1D 1DS, UK.
</PRE><PRE>CONFIDENTIALITY NOTICE

This e-mail (and any attached files) is confidential and protected by 
copyright (and other intellectual property rights). If you are not the 
intended recipient please e-mail the sender and then delete the email and 
any attached files immediately. Any further use or dissemination is 
prohibited.

While MTV Networks Europe has taken steps to ensure that this email and 
any attachments are virus free, it is your responsibility to ensure that 
this message and any attachments are virus free and do not affect your 
systems / data.

Communicating by email is not 100% secure and carries risks such as delay, 
data corruption, non-delivery, wrongful interception and unauthorised 
amendment. If you communicate with us by e-mail, you acknowledge and 
assume these risks, and you agree to take appropriate measures to minimise 
these risks when e-mailing us. 

MTV Networks International, MTV Networks UK & Ireland, Greenhouse, 
Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions 
International and Comedy Central are all trading names of MTV Networks 
Europe.  MTV Networks Europe is a partnership between MTV Networks Europe 
Inc. and Viacom Networks Europe Inc.  Address for service in Great Britain 
is UK House, 180 Oxford Street, London W1D 1DS, UK.
</PRE><PRE>

CONFIDENTIALITY NOTICE

This e-mail (and any attached files) is confidential and protected by 
copyright (and other intellectual property rights). If you are not the 
intended recipient please e-mail the sender and then delete the email and 
any attached files immediately. Any further use or dissemination is 
prohibited.

While MTV Networks Europe has taken steps to ensure that this email and 
any attachments are virus free, it is your responsibility to ensure that 
this message and any attachments are virus free and do not affect your 
systems / data.

Communicating by email is not 100% secure and carries risks such as delay, 
data corruption, non-delivery, wrongful interception and unauthorised 
amendment. If you communicate with us by e-mail, you acknowledge and 
assume these risks, and you agree to take appropriate measures to minimise 
these risks when e-mailing us. 

MTV Networks International, MTV Networks UK & Ireland, Greenhouse, 
Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions 
International and Comedy Central are all trading names of MTV Networks 
Europe.  MTV Networks Europe is a partnership between MTV Networks Europe 
Inc. and Viacom Networks Europe Inc.  Address for service in Great Britain 
is UK House, 180 Oxford Street, London W1D 1DS, UK.
</PRE></BODY></HTML>