[Nagiosplug-devel] Nagios plugins in C-Shell

Micha Micha mi.cz at web.de
Wed May 4 07:58:18 CEST 2005


Hi list



is it possible to create plugins in c-shell??



I wrote a plugin but i get the messege NRPE: Unable to read output.



Here is my code:



if ( ($ERR_LOG_FLAG == 1) && ($ERR_JB_FLAG == 1) ) then

        set exitstatus = $STATE_CRITICAL

        echo "A and B"

        exit $STATE_CRITICAL

        else if ( $ERR_LOG_FLAG == 1) then

                set exitstatus = $STATE_WARNING

                echo "A"

                exit $STATE_WARNING

        else if ( $ERR_JB_FLAG == 1 ) then

                        set exitstatus = $STATE_WARNING

                        echo "B"

                        exit $STATE_WARNING

        else

                set exitstatus = $STATE_OK

                echo "OK"

                exit $STATE_OK

endif



What is wrong??



- Micha (Navigato)



-----------------------

The mailing list archive is found here:

http://www.nagiosexchange.org/nagiosplug-devel.31.0.html

				




More information about the Devel mailing list