Is there a way to increase the size of performance data that can be returned via nrpe?
I've got a dhcp monitor that returns scope data.
It runs as expected and returns all of the scopes.
When I query it via nrpe (it has to be run via nrpe) the performance data appears to get truncated so I'm only getting some of the scopes.
From the gui if I go into the service status detail -> advanced -> performance data I can see it just ends in the middle of a 'pool'=$used;$warn;$crit;$min;$max string
I experimented with changing to 'pool'=$used;;;;$max and that increases the pools shown in advanced->performance data but not nearly enough to see all the scopes.
Ideally I'd like something that generates a page full of gauge widgets.
One for each scope using $used;$warn;$crit;;$max so there's a quick visual representation of all of them in one place.
performance data size
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: performance data size
you need the plugin to return multiple sets of performance data after the |
For example, check_ping returns the following performance data
Which will have 4 gauges one for each of
rta
pl
rtmax
rtmin
For example, check_ping returns the following performance data
Code: Select all
rta=51.856ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=53.252ms;;;; rtmin=48.263ms;;;;rta
pl
rtmax
rtmin
Re: performance data size
I can display multiple scopes correctly (well ... the last one is usually missing data so it's wildly incorrect).
They each get a gauge.
The problem is that the performance data gets truncated so I only get gauges up to where the data is truncated.
They each get a gauge.
The problem is that the performance data gets truncated so I only get gauges up to where the data is truncated.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: performance data size
The data can get truncated in the database, here is a doc showing how you can adjust that
https://support.nagios.com/kb/article.php?id=478
https://support.nagios.com/kb/article.php?id=478
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: performance data size
Further info indicated the data was getting truncated at 1024 chars from check_nrpe to a windows box.
If you run this on your XI server it will upgrade nrpe and the check_nrpe plugin
https://assets.nagios.com/downloads/nag ... _Agent.pdf
Additionally, this particular case was calling a wNRPE on a NSClient machine which is going to need the following in the config, but I believe you need at least 0.4.0 version of NSClient for it to take effect
If you run this on your XI server it will upgrade nrpe and the check_nrpe plugin
https://assets.nagios.com/downloads/nag ... _Agent.pdf
Additionally, this particular case was calling a wNRPE on a NSClient machine which is going to need the following in the config, but I believe you need at least 0.4.0 version of NSClient for it to take effect
Code: Select all
[/settings/NRPE/server]
payload length=4096