check_hpasm error <Virus checked>

Gerhard Lausser Gerhard.Lausser at consol.de
Fri Jan 4 10:31:26 CET 2008


Hi,

can you please login as the nagios user on host miysis and execute
sudo /sbin/hpasmcli -s help

If you are asked for a password there, then maybe your sudo-configuration
only allows you to call the bare command without any additional command line
options. 
man sudoers says:
       A simple filename allows
       the user to run the command with any arguments he/she
       wishes.  However, you may also specify command line argu­
       ments (including wildcards).  Alternately, you can specify
       "" to indicate that the command may only be run without
       command line arguments. 
Maybe something like that is the reason.

Does /sbin/hpasmcli exist? Is it a link?
What about /opt/compaq/utils/hpasmcli? Does it run if you call
sudo /opt/compaq/utils/hpasmcli -s help

The "NRPE. Unable to read output" is typical for such siturations where a
plugin's only output is a "password:". You need to fix the sudo-problem
first.
Another thing is the -v option. This is only for debugging if you call the
plugin as standalone. With -v it outputs some lines of text and nagios will
show the first one ("checking hpasmd process") instead of the last one with
the summary.

Greetings from Munich,
Gerhard

> -----Ursprüngliche Nachricht-----
> Von: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] Im 
> Auftrag von PO Michel
> Gesendet: Freitag, 4. Januar 2008 10:10
> An: nagios-users at lists.sourceforge.net; pom at tpg.ch
> Betreff: Re: [Nagios-users] check_hpasm error <Virus checked>
> 
> Hi Marcus				
> 
> Thanks a lot for your quick and precious help.
> 
> My purpose is also to make check_hpasm work through NRPE.
> 
> But I get an "NRPE. Unable to read output" message.
> 
> Here is my services.cfg file :
> 
> define service {
> host_name miysis
> use template-services
> service_description HP Hardware
> check_command check_nrpe!check_hpasm
> }
> 
> nrpe.cfg is :
> 
> command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm -v
> 
> 
> - PO Michel (misterpo)
> 
> -----------------------
> This thread is located in the archive at this URL:
> http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maill
> isttofaq_pi1[showUid]=7868
> 					
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft Defy all 
> challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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