Re: [Nagios-users] (No output!) Nagios 2.5

2006-08-29 Thread Stanley Hopcroft
Dear Sir,

I am writing to thank you for your letter and say,

On 29/08/06, Andy Shellam [EMAIL PROTECTED] wrote:
 Hi Michael,

 I've not long reported the same sort of error in 2.4. On my machine a
 reboot has *appeared* to sort it (keeping fingers and things crossed.)
 If I forced Nagios to re-do the check it would come back fine, but in
 most scheduled checks it would report No output! and an incorrect
 status (i.e. OK when it should be CRITICAL.)

This may be off target but,

if you are using embedded Perl (nagios -v or -m or perhaps you are
using a Dag Wieers RPM) the plugin may not be playing well with
embedded Perl.

If it is embedded Perl, you can either report a bug in the plugin to
the Nag plugins list or stop using embedded Perl.

The quick way to work around the problem if it is ePN is to write a
wrapper shell script like so

#!/bin/sh

exec problem_plugin $@

# You will need to rename the plugin and worry about whether you want $@ or $*.

HTH.

-
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=lnkkid=120709bid=263057dat=121642
___
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


[Nagios-users] (No output!) Nagios 2.5

2006-08-28 Thread Michael Frank








Hello all,



I first sent this to the plugins mailing list but I think
this has more to do with Nagios core since I am now having the problem with two
different plug-ins. They both give me correct output when I run the checks
manually but Nagios consistently gives me a result of (No output!). The check
below always had a Critical level for the No Output but another check that I am
doing gives a Warning level. How can there be two different results from having
(No output!). I do not see any errors in any of my log files.



Below is the information from my previous email.



I am trying get check_snmp_win.pl to work. I am able to run
the exact command that Nagios is running without any problems and I get output,
but when I run the check though Nagios it says No output! I am
able to run other checks without any problems. 



I see at http://www.manubulon.com/nagios/faq.html#FAQ8
that there is a problem with the embedded perl in Nagios so I make sure that I ran
the script using another version of perl. I am unable to find the p1.pl file it
is talking about patching. 



# 'check_win_proc_snmp'

define command{

 command_name
check_win_proc_snmp

 command_line
/opt/ActivePerl-5.8/bin/perl /usr/local/nagios/libexec/check_snmp_win.pl -H
HOST -C COMMUNITY -p PORT -n SERVICE_TO_CHECK -N 1

 }



I have also tried using /usr/local/bin/perl and there has been no
change. I am able to run the check manually without any problems but
cant run it though Nagios.



Any help you can give will be great.



Thanks,



Michael





Michael
Frank
[EMAIL PROTECTED]

Network
Administrator
(802) 241-5393

VT Dept of Public Safety 103 S
 Main, Waterbury
05671








-
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=lnkkid=120709bid=263057dat=121642___
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] (No output!) Nagios 2.5

2006-08-28 Thread Andy Shellam
Hi Michael,

I've not long reported the same sort of error in 2.4. On my machine a 
reboot has *appeared* to sort it (keeping fingers and things crossed.) 
If I forced Nagios to re-do the check it would come back fine, but in 
most scheduled checks it would report No output! and an incorrect 
status (i.e. OK when it should be CRITICAL.) It seemed completely random 
to which plugin caused the failure, so it wasn't something I could 
attribute to a specific plugin (all mine bar 2 are standard anyway.)

Patrick on this list has suggested to look in the server logs for too 
many open files errors and the like.

Andy.

Michael Frank wrote:

 Hello all,

 I first sent this to the plugins mailing list but I think this has 
 more to do with Nagios core since I am now having the problem with two 
 different plug-ins. They both give me correct output when I run the 
 checks manually but Nagios consistently gives me a result of (No 
 output!). The check below always had a Critical level for the No 
 Output but another check that I am doing gives a Warning level. How 
 can there be two different results from having “(No output!).” I do 
 not see any errors in any of my log files.

 Below is the information from my previous email.

 I am trying get check_snmp_win.pl to work. I am able to run the exact 
 command that Nagios is running without any problems and I get output, 
 but when I run the check though Nagios it says “No output!” I am able 
 to run other checks without any problems.

 I see at http://www.manubulon.com/nagios/faq.html#FAQ8 that there is a 
 problem with the embedded perl in Nagios so I make sure that I ran the 
 script using another version of perl. I am unable to find the p1.pl 
 file it is talking about patching.

 # 'check_win_proc_snmp'

 define command{

 command_name check_win_proc_snmp

 command_line /opt/ActivePerl-5.8/bin/perl 
 /usr/local/nagios/libexec/check_snmp_win.pl -H HOST -C COMMUNITY -p 
 PORT -n SERVICE_TO_CHECK -N 1

 }

 I have also tried using /usr/local/bin/perl and there has been no 
 change. I am able to run the check manually without any problems but 
 can’t run it though Nagios.

 Any help you can give will be great.

 Thanks,

 Michael

 Michael Frank [EMAIL PROTECTED]

 Network Administrator (802) 241-5393

 VT Dept of Public Safety 103 S Main, Waterbury 05671

 !DSPAM:37,44f30a8d143292255019441!
 

 -
 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=lnkkid=120709bid=263057dat=121642

 !DSPAM:37,44f30a8d143292255019441!
   
 

 ___
 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

 !DSPAM:37,44f30a8d143292255019441!
   


-
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=lnkkid=120709bid=263057dat=121642
___
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