<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Yes, i did it. Two timeperiods, two different services, and it works. <div><br></div><div>Thanks</div><div><br></div><div><br><br>> Date: Tue, 21 Sep 2010 15:13:19 -0400<br>> From: nagios@isprime.org<br>> To: nagios-users@lists.sourceforge.net<br>> Subject: Re: [Nagios-users] Conditional checks between different hours?<br>> <br>> setup 2 services where the check time periods don't overlap, and the<br>> different values are checked during their respective times.<br>> <br>> ie<br>> <br>> service-check-cpu-day 0800-1800 with command args of say 90%<br>> service check-cpu-night 18:01-24:00,00:00-07:59 with command args of<br>> say 50%<br>> <br>> not ideal because you create 2 different services, <br>> <br>> but its better than the other alternative:<br>> <br>> write a wrapper for your plugins to check the time if date +'%H%M'<br>> something something<br>> <br>> --kyleo<br>> <br>> On Tue, 21 Sep 2010 18:14:36 +0000, Scott Lofland <SLofland@slco.org><br>> wrote:<br>> >>-----Original Message-----<br>> >>From: Jim Avery [mailto:jim@jimavery.me.uk]<br>> >><br>> >>On 20 September 2010 16:27, Ricardo F <rikr_@hotmail.com> wrote:<br>> >>><br>> >>> Hello,<br>> >>>     Is it possible to put different checks values<br>> >>> (max_check_attempts, retry_check_interval, normal_check_interval, notification_interval)<br>> >>> and check each one if is one hour on another?<br>> >><br>> >>I'm pretty sure it isn't (not without a cludge of some sort anyway).<br>> >><br>> >>I'm intrigued to know what would drive such a requirement as I don't<br>> >>think you're the first to ask this and doubt you'll be the last.<br>> >><br>> > <br>> > I've been about this type of functionality in my environment to take<br>> > into account variable network and hardware conditions based on<br>> > expected high user load at different times of the day as well as<br>> > differing loads on different network segments during standard backup<br>> > times or regular maintenance windows.<br>> > <br>> > _______________________________________________<br>> > Nagios-users mailing list<br>> > Nagios-users@lists.sourceforge.net<br>> > https://lists.sourceforge.net/lists/listinfo/nagios-users<br>> > ::: Please include Nagios version, plugin version (-v) and OS when<br>> > reporting any issue.<br>> > ::: Messages without supporting info will risk being sent to /dev/null<br>> > <br>> > ------------------------------------------------------------------------------<br>> > Start uncovering the many advantages of virtual appliances<br>> > and start using them to simplify application deployment and<br>> > accelerate your shift to cloud computing.<br>> > http://p.sf.net/sfu/novell-sfdev2dev<br>> > _______________________________________________<br>> > Nagios-users mailing list<br>> > Nagios-users@lists.sourceforge.net<br>> > https://lists.sourceforge.net/lists/listinfo/nagios-users<br>> > ::: Please include Nagios version, plugin version (-v) and OS when<br>> > reporting any issue.<br>> > ::: Messages without supporting info will risk being sent to /dev/null<br>> <br>> <br>> ------------------------------------------------------------------------------<br>> Start uncovering the many advantages of virtual appliances<br>> and start using them to simplify application deployment and<br>> accelerate your shift to cloud computing.<br>> http://p.sf.net/sfu/novell-sfdev2dev<br>> _______________________________________________<br>> Nagios-users mailing list<br>> Nagios-users@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/nagios-users<br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br></div>                                           </body>
</html>