Metrics Display not showing data from check_nrpe checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Hi - I'm having issues again with check_nrpe commands not displaying data in the Metrics screen - see https://support.nagios.com/forum/viewto ... 16&t=51122

If I setup monitoring using the WIndows Config Wizard it uses the check_nt commands by default and they all appear OK in the Metrics screen. However, I would prefer to use the check_nrpe commands with NSclient++ because I can manipulate the output and appears a bit more versatile.

So the big question is why does Nagios use the check_nt commands by default for Windows Config instead of check_nrpe ? Is there a specific reason?
The following is the output of the CPU Usage monitors. The results of the check_nt command display as expected in the Metrics screen. The check_nrpe results aren't displayed at all in the Metrics screen.

Code: Select all

# ./check_nrpe -H 192.168.11.82 -c check_cpu -a "warn=load >80" "crit=load > 90"
OK: CPU load is ok.|'total 5m'=0%;80;90 'total 1m'=0%;80;90 'total 5s'=0%;80;90

# ./check_nt -H 192.168.11.82 -s "" -p 12489 -v CPULOAD -l 5,80,90
CPU Load 0% (5 min average) |   '5 min avg Load'=0%;80;90;0;100
In the previous query I had, you provided an updated php file to fix this, however, I don't want to have to keep applying these patches each time I update NagiosXI.

BTW - I'm running NagiosXI 5.6.2 on a CentOS 7 VM.

Thanks... Fred
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by scottwilkerson »

The problem is that the metrics component needs to know what format your checks are in. When using nrpe these can be in an unlimited amounts of variations, and as such, the metrics component can only report correctly if it knows the exact order of the commands.

Being you can set it up to return so many different variations, specify order, skip some fields, add others, add filters, etc. there isn't any way for us to conclusively program every variation of the commands in there.

Knowing the commands you were using the previous tech could assist you in making a modified version of the component, but this will get updated when upgrading minor or major versions (not for bug fix releases though).
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Thanks Scott
Can you provide the format you need the data returned for all the available Metrics and I can try to massage the data returned from the NRPE commands to match what you're expecting. The reason is that I would prefer to use NRPE as the default for all my Windows/Unix checks. I saw in a previous post on check_nt vs check_nrpe https://support.nagios.com/forum/viewto ... f=6&t=5970 that you are focusing on NCPA? However , my understanding is that it can only do Passive Checks - has that changed and will these checks appear in the Metrics Display?
Regards Fred
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by scottwilkerson »

NCPA can be used for active checks and it is uniform and metrics will display.
Fred Kroeger wrote:Can you provide the format you need the data returned for all the available Metrics and I can try to massage the data returned from the NRPE commands to match what you're expecting
This is difficult to describe, but you can see it all in /usr/local/nagiosxi/html/includes/utils-metrics.inc.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Thanks Scott - I'll probably resort to taking the easy way out and just use the 3 check_nt commands as non-alerting monitors to view these in the Metrics screen.
Please close - thanks ... Fred
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by scottwilkerson »

Fred Kroeger wrote:Thanks Scott - I'll probably resort to taking the easy way out and just use the 3 check_nt commands as non-alerting monitors to view these in the Metrics screen.
Please close - thanks ... Fred
Closing
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked