i wrote a plugin for nagios in c-shell (csh). it works fine. but when i execute it from the nagiosserver i get the message NRPE: unable to read output
what is wrong??
here is my code:
if ( ($ERR_LOG_FLAG == 1) && ($ERR_JB_FLAG == 1) ) then
set exitstatus = $STATE_CRITICAL
echo "error in LOG and in hugo"
exit $exitstatus
else if ( $ERR_LOG_FLAG == 1) then
set exitstatus = $STATE_WARNING
echo "error in LOG"
exit $exitstatus
else if ( $ERR_JB_FLAG == 1 ) then
set exitstatus = $STATE_WARNING
echo "error in hugo"
exit $exitstatus
else
set exitstatus = $STATE_OK
echo "OK"
exit $exitstatus
endif