ssax wrote:Does the plugin return perfdata in the output?
What plugin/command are you using and what options are you passing it?
It looks this way:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c ObjectMgr_eadsi_APP01 (for instance)
Where the command would be like this:
----------------------------------------------
@echo off
SET RUNSTAT="empty"
D:\Siebel\ses\siebsrvr\BIN\srvrmgr.exe /e PROD /g fikc-m4wf01:2320 /s APP01 /u MONITOR /p Fi5lV8pS4CWiQ93aw6Wn /c "list comp SFSObjMgr_eadsi SHOW SV_NAME,CC_NAME,CP_DISP_RUN_STATE" /o D:\Monitoring\OM_eadsi.log
findstr /m "Online" D:\Monitoring\OM_eadsi.log
if %errorlevel%==0 (
SET RUNSTAT="Online"
)
findstr /m "Running" D:\Monitoring\OM_eadsi.log
if %errorlevel%==0 (
SET RUNSTAT="Running"
)
findstr /R /C:"Not*[ ]*Online" D:\Monitoring\OM_eadsi.log
if %errorlevel%==0 (
SET RUNSTAT="NotOnline"
)
findstr /m "Shutdown" D:\Monitoring\OM_eadsi.log
if %errorlevel%==0 (
SET RUNSTAT="Shutdown"
)
findstr /R /C:"Shutting*[ ]*down" D:\Monitoring\OM_eadsi.log
if %errorlevel%==0 (
SET RUNSTAT="ShuttingDown"
)
IF %RUNSTAT%=="Running" GOTO EXIT_OK
IF %RUNSTAT%=="Online" GOTO EXIT_OK
IF %RUNSTAT%=="Shutdown" GOTO EXIT_CRIT
IF %RUNSTAT%=="empty" GOTO EXIT_UKNW
IF %RUNSTAT%=="NotOnline" GOTO EXIT_CRIT
IF %RUNSTAT%=="ShuttingDown" GOTO EXIT_CRIT
:EXIT_WARN
ECHO WARNING: Monitoring script has failed. Component FS Object Manager eadsi status is %RUNSTAT%.
exit /B 1
:EXIT_CRIT
ECHO CRITICAL: Component FS Object Manager eadsi status is %RUNSTAT%.
exit /B 2
:EXIT_UKNW
ECHO UNKNOWN: Monitoring script has failed. Component FS Object Manager eadsi status is %RUNSTAT%.
exit /B 3
:EXIT_OK
ECHO OK: Component FS Object Manager eadsi status is %RUNSTAT%.
exit /B 0
----------------------------------------------------------------------------------