Script returns "No Output"

Janet Post Janet.Post at excapsa.ca
Mon Nov 6 20:48:44 CET 2006


Thanks Robert!  That worked like a charm.  

Except, now I am curious as to why some scripts need to have perl
executed directly and not others.  Any ideas?


-----Original Message-----
From: Sloane, Robert Raymond [mailto:sloane at ku.edu] 
Sent: November 6, 2006 2:33 PM
To: Janet Post
Subject: RE: [Nagios-users] Script returns "No Output"

Try changing the Nagios command object to execute perl directly rather
than just calling the script:

define command {
command_name    check_apache_threads
command_line    /usr/bin/perl $USER1$/check_apache.pl
}

and see if that fixes the problem.
-- 
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444
 

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf 
> Of Janet Post
> Sent: Monday, November 06, 2006 1:30 PM
> To: Nagios Users Mailing List
> Subject: [Nagios-users] Script returns "No Output"
> 
> 
> Hello All.
> 
> I have written several custom nagios scripts, and most work 
> just fine. But recently, I have written a script to check the 
> number of apache idle threads on an apache server.
> 
> The script works just fine on the command line, but nagios 
> returns "No Output".  I'm getting very annoyed with this 
> script as I can not for the life of me determine the problem. 
>  If someone (ANYONE) would be able to help me solve this 
> problem, I would be most grateful.
> 
> I have included the script as an attachment.  For those with 
> a discerning eye, you will recognize this script as a 
> bastardization of the original check_apache script only 
> updated to parse a server status page that is formatted 
> differently and minus the stuff I did not need.
> 
> 
> Thanks,
> 
> Janet Post
> 
> 
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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