running .pl script thru nrpe

Bolduc, Blair BolducB at brandonrha.mb.ca
Tue Jun 8 16:40:50 CEST 2004


We can run it fine from the command line as either root or nagios.
The string returns okay, its just that the integers are always -1.

Is there some issue between nrpe (which is c) and perl? Its confusing why
only the numbers don't return properly.


-----Original Message-----
From: jeff vier [mailto:jeff.vier at tradingtechnologies.com]
Sent: Tuesday, June 08, 2004 08:58
To: Bolduc, Blair
Cc: 'Nagios (E-mail)'
Subject: Re: [Nagios-users] running .pl script thru nrpe


when you run it on the command line, are you running it as the nagios
user?

On Tue, 2004-06-08 at 08:22, Bolduc, Blair wrote:
> Seriously stumped as to why the return value from the check_qmailq.pl
plugin
> runs fine from the command line, but when trying to run it through nrpe it
> returns the following:
> 
> OK: -1 emails not sent, -1 not processed.
> 
> The state returns correctly but the numbers always return as -1.
> The setup is nagios-1.1,  plugins-1.4,  nrpe-2.0.   We've tried tweaking
the
> script a dozen ways but always comes back as -1.
> 
> Any pointers at all would be appreciated. Thanks
> 
> Blair Bolduc
> Operations/Monitoring
> Brandon Regional Health Authority
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: GNOME Foundation
> Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
> GNOME Users and Developers European Conference, 28-30th June in Norway
> http://2004/guadec.org
> _______________________________________________
> 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: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
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