[Nagiosplug-devel] Return internal Variables

Holger Weiss holger at CIS.FU-Berlin.DE
Tue Jun 10 13:53:27 CEST 2008

* Peter Spatz <peter.spatz at xchanging.com> [2008-06-06 14:31]:
>  if [ $STATUS == "OK" ]
>         then
>                 echo "All Ressourcegroups in regular state !"
>         else
>                 echo "Ressourcegroup $RESS not in regular state !"
>                 exit 2
> fi
> And $RESS is a variable which was used inside a loop filled with all
> cluster resources.

Is $RESS filled correctly if you manually execute the plugin as the user
which runs Nagios (never test as root!)?  If so, is it also filled
correctly if you execute it via "env -i"?

> Nagios returns
> Ressourcegroup       not in regular state !

I'd guess $RESS is not filled because that either requires permissions
the Nagios user doesn't have and/or because it depends on other
environment variables which aren't set if executed via Nagios.


More information about the Devel mailing list