Determining the success or failure of external	commands
    Scott Sanders 
    lists at jssjr.com
       
    Mon Jan 21 17:33:47 CET 2008
    
    
  
Hi,
I am working on implementing some functionality that will allow me to safely
expose nagios.cmd to external hosts. In my environment there are maintenance
tasks that run periodically which disrupt certain services, causing nagios
to start generating alerts. Needless to say, I am tired of having my cell
phone go crazy when this happens. (Especially in the middle of the night.)
Initially I created a simple page in php that schedules downtimes depending
on the request values given to it. This worked for a while, but I quickly
ran into the problem of some commands being placed into the nagios.cmd pipe
taking 30-45 seconds to be processed and others being incorrectly formatted.
What I want to implement now is a way for my extremely simplistic "API" to
report back on the success or failure of commands passed to it. I know that
nagios can write EXTERNAL COMMAND: entries to syslog, but I'm not sure how
to determine the results of these commands.
Any suggestions or input on my approach would be greatly appreciated.
-Scott Sanders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080121/d4ba1c91/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
    
    
More information about the Users
mailing list