[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    Re: [Nagios-users] Conditional checks between different hours?
From:       Ricardo F <rikr_ () hotmail ! com>
Date:       2010-09-24 11:04:51
Message-ID: SNT142-w35E026D604D206C4BDAAAF92620 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Yes, i did it. Two timeperiods, two different services, and it works. 
Thanks


> Date: Tue, 21 Sep 2010 15:13:19 -0400
> From: nagios@isprime.org
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Conditional checks between different hours?
> 
> setup 2 services where the check time periods don't overlap, and the
> different values are checked during their respective times.
> 
> ie
> 
> service-check-cpu-day 0800-1800 with command args of say 90%
> service check-cpu-night 18:01-24:00,00:00-07:59 with command args of
> say 50%
> 
> not ideal because you create 2 different services, 
> 
> but its better than the other alternative:
> 
> write a wrapper for your plugins to check the time if date +'%H%M'
> something something
> 
> --kyleo
> 
> On Tue, 21 Sep 2010 18:14:36 +0000, Scott Lofland <SLofland@slco.org>
> wrote:
> >>-----Original Message-----
> >>From: Jim Avery [mailto:jim@jimavery.me.uk]
> >>
> >>On 20 September 2010 16:27, Ricardo F <rikr_@hotmail.com> wrote:
> >>>
> >>> Hello,
> >>>     Is it possible to put different checks values
> >>> (max_check_attempts, retry_check_interval, normal_check_interval, notification_interval)
> >>> and check each one if is one hour on another?
> >>
> >>I'm pretty sure it isn't (not without a cludge of some sort anyway).
> >>
> >>I'm intrigued to know what would drive such a requirement as I don't
> >>think you're the first to ask this and doubt you'll be the last.
> >>
> > 
> > I've been about this type of functionality in my environment to take
> > into account variable network and hardware conditions based on
> > expected high user load at different times of the day as well as
> > differing loads on different network segments during standard backup
> > times or regular maintenance windows.
> > 
> > _______________________________________________
> > 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
> > 
> > ------------------------------------------------------------------------------
> > Start uncovering the many advantages of virtual appliances
> > and start using them to simplify application deployment and
> > accelerate your shift to cloud computing.
> > http://p.sf.net/sfu/novell-sfdev2dev
> > _______________________________________________
> > 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
> 
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> 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
 		 	   		  
[Attachment #5 (text/html)]

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



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev

_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic