Running a script

Anton Krall akrall-lists at intruder.com.mx
Sat Sep 4 18:00:50 CEST 2004


Stayed up late last night and figured it out... Exit codes are youre
friend... :) Im starting to love nagios.

------------------------------------
Intruder Consulting
Anton Krall
Director General
akrall at intruder.com.mx
tel: 5781-5112
mobile: 1325-3511
IM: akrall at intruder.com.mx
www.intruder.com.mx
------------------------------------
 

%-----Original Message-----
%From: nagios-users-admin at lists.sourceforge.net 
%[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of 
%Jason Martin
%Sent: Sábado, 04 de Septiembre de 2004 10:52 a.m.
%To: nagios-users at lists.sourceforge.net
%Subject: Re: [Nagios-users] Running a script
%
%On Fri, Sep 03, 2004 at 09:50:57PM -0500, Anton Krall wrote:
%> I have a script that return a number, how can I use nagios 
%to run this 
%> and check the returned number and if less than X trigger an alert? I 
%> havent
%When you say 'return' a number, do you mean 'print' a number 
%or actually 'return' it? Nagios keys off of exit codes and not 
%printed data. To pluginize your script you'd need to have it 
%accept arguments saying what a warning and criticla threshold 
%are, and exit with the appropriate code.
%
%Or, if you can't modify the script, you could write a wrapper 
%plugin that does the equivalent function.
%
%-Jason Martin
%--
%Never test for an error you don't know how to handle.
%This message is PGP/MIME signed.
%



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
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