Performance fiels no created for the binary NRPE check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Performance fiels no created for the binary NRPE check

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Performance fiels no created for the binary NRPE check

Post by ssax »

Does the plugin return perfdata in the output?

What plugin/command are you using and what options are you passing it?
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Performance fiels no created for the binary NRPE check

Post 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
----------------------------------------------------------------------------------
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Performance fiels no created for the binary NRPE check

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Performance graphs no created for the binary NRPE check

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Performance fiels no created for the binary NRPE check

Post by lmiltchev »

Your plugin doesn't return perfdata. You would need to modify it in accordance with the Nagios Plugins Development Guidelines.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked