External Command Ideas

Jochen Bern Jochen.Bern at LINworks.de
Thu Feb 28 10:40:46 CET 2013


Hello everyone,

in a current project, I have a need to override Nagios' check scheduling
on specific occasions (*). Hence, I'm looking at what I can or (relevant
point here) cannot do with external commands, as documented for 3.x.
Since there's a new major version upcoming, I thought I might toss a
couple thoughts this list's way, just in case you're taking suggestions ...

-- I can CHANGE_NORMAL_SVC_CHECK_INTERVAL to have a service checked
   as often as interval_length and/or the scheduler permits, but I
   cannot tell Nagios to return to whatever the config files had set
   initially.
-- I can SCHEDULE_* (or SCHEDULE_FORCED_*) single services or all
   services of a host, but not the members of a service group.
   (I guess that filtering for services in a non-OK state only is
   really a job for livestatus or the like, not Nagios.)
-- I cannot touch a service's ATTEMPT counter ~= SOFT/HARD distinction,
   to possibly have Nagios' scheduler go through the retry_interval
   routine for me, unless I PROCESS_SERVICE_CHECK_RESULT an
   all-out-fake OK state.
   (I guess that incrementing via CHANGE_MAX_SVC_CHECK_ATTEMPTS *might*
   have the side effect of returning the service to SOFT non-OK, but
   again, there's no "return to config file value" available.)

(*) Basically, I want all SLA relevant services that are still non-OK at
the end of the standard maintenance window to be rechecked so that the
non-OK state doesn't check_interval into the SLA relevant time more than
necessary. Note that I intend to use avail.cgi to produce reports on SLA
fulfilment, so I'll have to define a matching service group, anyway.
FWIW, it's a 3.4.4 installed from repos.

Kind regards,
								J. Bern
-- 
*NEU* - NEC IT-Infrastruktur-Produkte im <http://www.linworks-shop.de/>:
Server--Storage--Virtualisierung--Management SW--Passion for Performance
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb




More information about the Developers mailing list