Re: [Nagios-users] Can passive results cause active check rescheduling?

2012-01-24 Thread Jim Avery
On 24 January 2012 15:07, Craig Stewart craig.stew...@corp.xplornet.com wrote:
 Good day!

 Here is a question.  Can the processing of a passive service check
 schedule a pending active service check?

 Here's a simple example from a distributed monitoring setup.

 Lets say we have a service called check_alive that simply pings a host.
  It's defined on the probe and the central server.  On the probe, it's
 scheduled to check every 60 seconds, and submit the results to the
 central server.  On the central server, it's scheduled to check every
 120 seconds.  Is there a way to cause the following behaviour to occur?

 - Probe checks and submits the results to central.  It reschedules the
 check for 60 seconds from now.

 - Central receives and processes the results (assume an okay state here)
 and reschedules it's active check that was going to run within short
 time frame to 120 seconds from now, without running the active check.

 - 60 seconds later the probe checks and submits (still in an okay state)
 it's check to the central server.

 - The central server receives and processes the check result, and
 reschedules (postpones) it's active service check for 120 seconds from
 now, without actually running it.

 - Repeat until a non-okay result comes in.



 This way if the probe goes silent, the central server will pick up
 monitoring nearly seamlessly. I know I can get the results I want using
 the check freshness option.

 What is happening now, if I enable active service checks on the central
 server is that the passive result comes in, is processed and the active
 service check is run at exactly the scheduled time.  There is no
 postponing the central server's check time.

 There are a couple of problems.

 1) My central server also does active service checking for some devices
 that are not associated with a probe.  I can build these to have a
 separate template, but I'm already getting into template complexity.  I
 don't want to have to have two templates, one for local and one for
 remote monitoring of each device type.

 2) I have an individual that doesn't like to see red on the Nagios
 interface.  They are sufficiently far up the food chain that all I can
 really do is say Yes sir, yes sir, three bags full sir and hope they
 forget about it.  All the 1 plus services show up in the Nagios
 interface as disabled and have a red background.  Please assume any
 valid arguments on my part have been made.

 None of my reading has suggested that this behaviour is possible, but I
 thought I'd put it out there and ask.


My understanding of what Nagios does is it schedules the active check,
it goes in to the schedule queue with the specific time it's scheduled
to run and that is the time it will run regardless of what passive
checks come in in the mean time.

I don't understand why it's a problem to you to have the active checks
run in their regular times under the control of the Nagios scheduler
with passive checks coming in too at whatever times they come in.
Granted you will fairly often have the two checks run at almost the
same time, but does that cause you a problem?

You're right you could use freshness checking.  Is there a particular
reason why you chose not to?

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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


Re: [Nagios-users] Can passive results cause active check rescheduling?

2012-01-24 Thread Craig Stewart
Jim,

I do use freshness checking to get the desired behaviour.

I don't want the active check to run unless they need to.  If it (the
central server) is doing active service checks, one of the main reasons
to run a distributed setup, distribution of resource requirements, gets
tossed.  Admittedly, in a set up where the hosts are being double
monitored it will speed the discovery of events and clears.  Of course
that causes problems where the NMS gets blamed for causing too many
false alarms.  I'm sure many people here are familiar with this concept.

The main reason I was looking at this was to make  someone who doesn't
understand at what he's looking, and with the title director after his
name happy.  Trying to find a technical fix to a non-problem.

Craig
--
Craig Stewart
Systems Integration Analyst
craig.stew...@corp.xplornet.com
Xplornet - Broadband, Everywhere

On 01/24/2012 01:25 PM, Jim Avery wrote:
 
 My understanding of what Nagios does is it schedules the active check,
 it goes in to the schedule queue with the specific time it's scheduled
 to run and that is the time it will run regardless of what passive
 checks come in in the mean time.
 
 I don't understand why it's a problem to you to have the active checks
 run in their regular times under the control of the Nagios scheduler
 with passive checks coming in too at whatever times they come in.
 Granted you will fairly often have the two checks run at almost the
 same time, but does that cause you a problem?
 
 You're right you could use freshness checking.  Is there a particular
 reason why you chose not to?
 


This e-mail (including any attachments) is for the sole use of the intended 
recipient and
may contain confidential information protected by duties of confidentiality or 
privilege. If you are not the intended recipient of this e-mail, please 
immediately notify us by return e-mail or by telephone, delete this e-mail and 
destroy any copies.   Thank you.



Ce message est destiné uniquement à la personne prévue et peut contenir des 
renseignements confidentiels et/ou privilégiés au titre d’une obligation de 
confidentialité. Si vous n'êtes pas le destinataire visé, veuillez nous en 
informer sans délai par courriel ou téléphone et détruire ce message ainsi que 
toute pièce jointe, sans en garder de copie. Merci.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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