<br><br><div class="gmail_quote">On 18 January 2011 06:15, Toonz IT <span dir="ltr"><<a href="mailto:it.toonz@gmail.com">it.toonz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We have added the checking time period in timeperiods.cfg file. and it is correctly showing in the Host State Information <br><table border="0"><tbody><tr><td>
<table border="1" cellpadding="0" cellspacing="0">
<tbody><tr><td>
<table border="0">
<tbody><tr><td>Host Status:</td><td><div>  UP  </div> (for  0d  1h 41m 11s)</td></tr>
<tr><td valign="top">Status Information:</td><td>PING OK - Packet loss = 0%, RTA = 0.22 ms</td></tr>
<tr><td valign="top">Performance Data:</td><td>rta=0.221000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0</td></tr>
<tr><td>Current Attempt:</td><td>1/10  (HARD state)</td></tr>
<tr><td>Last Check Time:</td><td>01-18-2011 10:00:00</td></tr>
<tr><td>Check Type:</td><td>ACTIVE</td></tr>
<tr><td nowrap>Check Latency / Duration:</td><td>0.141 / 6.732 seconds</td></tr>
<tr><td>Next Scheduled Active Check:  </td><td>01-19-2011 10:00:00</td></tr>
<tr><td>Last State Change:</td><td>01-18-2011 10:00:16</td></tr>
<tr><td>Last Notification:</td><td>01-18-2011 10:00:16 (notification 0)</td></tr>
<tr><td>Is This Host Flapping?</td><td><div>  NO  </div> (0.00% state change)</td></tr>
<tr><td>In Scheduled Downtime?</td><td><div>  NO  </div></td></tr>
<tr><td>Last Update:</td><td>01-18-2011 11:41:22  ( 0d  0h  0m  5s ago)</td></tr>
</tbody></table>
</td></tr>
</tbody></table>
</td></tr>
<tr><td>
<table border="1" cellpadding="0" cellspacing="0">
<tbody><tr><td>
<table border="0">
<tbody><tr><td>Active Checks:</td><td><div>  ENABLED  </div></td></tr>
<tr><td>Passive Checks:</td><td><div>  ENABLED  </div></td></tr>
<tr><td>Obsessing:</td><td><div>  ENABLED  </div></td></tr>
<tr><td>Notifications:</td><td><div>  ENABLED  </div></td></tr>
<tr><td>Event Handler:</td><td><div>  ENABLED  </div></td></tr>
<tr><td>Flap Detection:</td><td><div>  ENABLED  </div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>But we are getting notification every 30min, we have now edited the cofig file of the system and set notification to 720, as we need a notification only after every 12 hours. Hope this is the way to do it!!<br>

<br>Please advice. <font size="2"><b><i>Our aim is to collect information on systems which has not been shutdown at 10pm every night when most employees have already left the studio.</i></b></font><div><div></div><div class="h5">
<br></div></div></blockquote></div><br><br><br>Nagios itself doesn't have a mechanism for scheduling a check to run once at a specific time.<br><br>I would configure a check script in cron on your nagios server which runs the check at 10pm each day and submits the result to Nagios as a passive check (via NSCA or using the command interface whichever you prefer).<br>
<br>Another similar (but probably not so good) way to tackle this would be to set up a script in the windows scheduler on each client PC which submits the passive check back to Nagios using send_nsca.  I normally use a standalone send_nsca binary for this, but I believe it would be possible to use the nsca in NSClient++ instead.  With this method you may need to set up freshness checking too so you can record when the PC is not active overnight.<br>
<br>hth,<br><br>Jim<br>