[Nagiosplug-devel] Return internal Variables

Peter Spatz peter.spatz at xchanging.com
Fri Jun 6 14:31:56 CEST 2008


Hello,

 

e.g. end of  a check:

 

 

 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. 

 

Running the check direct on the server returns what I want:

 

 root at svm103f1:/opt/nagios/libexec#
/opt/nagios/libexec/check_veritas_cluster

Ressourcegroup XPR-TRS-E2E not in regular state !

 

Nagios returns

 

Ressourcegroup       not in regular state !

 

 

 

 

Best Regards

 

Peter Spatz



 

Xchanging Transaction Bank GmbH - HRB 58 951 - Sitz Frankfurt - Amtsgericht Frankfurt am Main
Vorsitzender des Aufsichtsrats: David Andrews - Geschaeftsfuehrer: Joerg Brand, Mike Margetts, Andreas Povel, Thomas Runge


-----------------------------------------------------------------------------------------------
"Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden."
-----------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20080606/5e87f7ab/attachment.html>


More information about the Devel mailing list