[Nagiosplug-help] problem with self written shell scripts

Jason Martin jhmartin at toger.us
Wed Jul 23 16:51:57 CEST 2008


On Wed, Jul 23, 2008 at 07:22:57AM -0500, Marc Powell wrote:
> On Jul 23, 2008, at 6:28 AM, Ronald wrote:
> > In other words it looks like the command:
> > rsh -l netsaint:netsa1nt 10.55.76.36 snapvault status | grep
> > $SNAPVAULT | sed 's/:/ /g' | awk '{ print $6 }'
> > But again when I run this manually it does give me the proper
> > output.
> I assume that this test is done as the nagios user. Try specifying the  
> full path to rsh, grep, sed and awk in your script. The $ENVIRONMENT  
> that the plugin has when being executed is likely different than when  
> being executed manually.
Also note that UKNOWN is now return code 3 instead of -1.

-Jason Martin

-- 
Gather 'round like cattle and ye shall be herd.
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 219 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080723/2865a758/attachment.sig>


More information about the Help mailing list