Page 1 of 1

Performance fiels no created for the binary NRPE check

Posted: Mon Jan 28, 2019 1:53 pm
by dlukinski
Hello XI support

We've got a series of checks (140+) of the same nature, where the custom script exit codes are interpreted back to Nagios API as OK/FAIL.

- unable to get perf graph (we need for service history & downtimes) created.

"Process Perf Data" set to ON, but no luck.

Please help

Re: Performance fiels no created for the binary NRPE check

Posted: Mon Jan 28, 2019 3:24 pm
by ssax
Does the plugin return perfdata in the output?

What plugin/command are you using and what options are you passing it?

Re: Performance fiels no created for the binary NRPE check

Posted: Mon Jan 28, 2019 4:26 pm
by dlukinski
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
----------------------------------------------------------------------------------

Re: Performance fiels no created for the binary NRPE check

Posted: Tue Jan 29, 2019 9:36 am
by lmiltchev
Can you show us a screenshot of the "Service Status Detail" page for one of the "problem" services (the Advanced tab)?

Home > Service Status > <your service> > Advanced

We need to see the performance data format that is returned.

You could also run the check from the command line, and show the output of it.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <ip address> -t 60 -c ObjectMgr_eadsi_APP01

Performance graphs no created for the binary NRPE check

Posted: Thu Apr 25, 2019 12:25 pm
by dlukinski
Hello XI Support

https://support.nagios.com/forum/viewto ... 16&t=52222
- got closed w/o resolution.

Moderator note: New thread merged with original

Could we please get back to this issue and try fixing it?

I have uploaded the attachment (Service Advanced Detail requested in the last entry of the locked case)

And the reported back conditions

Code: Select all

[root@fikc-nagxiprod01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.102.76.55 -t 60 -c PMEN_APP01
D:\Monitoring\PMEN.log
CRITICAL: Component Preventive Maintenance Engine Night status is "Shutdown".
[root@fikc-nagxiprod01 ~]#
So it is the statuses:
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


What could be done to connect these to the perf graph and same in the history?

Re: Performance fiels no created for the binary NRPE check

Posted: Thu Apr 25, 2019 4:42 pm
by lmiltchev
Your plugin doesn't return perfdata. You would need to modify it in accordance with the Nagios Plugins Development Guidelines.