[Nagiosplug-help] problem with self written shell scripts

Marc Powell marc at ena.com
Wed Jul 23 14:22:57 CEST 2008


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 }'
>
> does not work.
>
>
> 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.

--
Marc





More information about the Help mailing list