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
Performance fiels no created for the binary NRPE check
Re: Performance fiels no created for the binary NRPE check
Does the plugin return perfdata in the output?
What plugin/command are you using and what options are you passing it?
What plugin/command are you using and what options are you passing it?
Re: Performance fiels no created for the binary NRPE check
It looks this way:ssax wrote:Does the plugin return perfdata in the output?
What plugin/command are you using and what options are you passing it?
$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
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.
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_APP01Be sure to check out our Knowledgebase for helpful articles and solutions!
Performance graphs no created for the binary NRPE check
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
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?
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 ~]#
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.
Re: Performance fiels no created for the binary NRPE check
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!