<html>
<head>
</head>
<body>
I just gave in and did it that way.<br>
<br>
Maybe something to keep in mind for future Nagios features - Time based command/arguments.<br>
<br>
Russell<br>
<br>
Subhendu Ghosh wrote:<br>
<blockquote type="cite" cite="mid:Pine.LNX.4.44.0302041557120.22628-100000@calcutta.sghosh.org">
  <pre wrap="">not easy in the current setup.<br><br>easiest would be to write a wrapper which checks localtime and calls <br>check_load with the approriate args...<br><br>-sg<br><br>On Tue, 4 Feb 2003, Russell Scibetti wrote:<br><br></pre>
  <blockquote type="cite">
    <pre wrap="">I want to have a service defined that runs a different command depending <br>on the timeperiod.  Example:<br><br>define service{<br>        use                             GenericService<br>        host_name                       backup_host<br>        service_description             Load<br>        check_command                   check_load!6,6,6!8,8,8<br>        check_period                    backup_times<br>        }<br><br>define service{<br>        use                             GenericService<br>        host_name                       backup_host<br>        service_description             Load<br>        check_command                   check_load!2,2,2!4,4,4<br>        check_period                    nonbackup_times<br>        }<br><br>However, Nagios yells about there being 2 services with the same name. <br> I tried renaming the first one to backupLoad, which works except that <br>if the service is critical at the end of the timeperiod, it continues
 
 to <br>display a critical after the backup_times timeperiod is over.  Is there <br>anyway around this?  Ideally I would like them to have the same name, so <br>that during one timeperiod, one set of args is used and during the other <br>timeperiod, the different set is used.  Any help would be appreciated.<br><br>Russell Scibetti<br><br><br></pre>
    </blockquote>
    <pre wrap=""><!----><br></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="$mailwrapcol">-- 
Russell Scibetti
Quadrix Solutions, Inc.
<a class="moz-txt-link-freetext" href="http://www.quadrix.com">http://www.quadrix.com</a>
(732) 235-2335, ext. 7038
</pre>
    <br>
    </body>
    </html>