Hi,
We are using an NRDP API and fetching the following data in the given order in Nagios XI:
1. 'Number of service requests sent to RR'
2. 'Number of cbrr requests'
3. 'Size of matching table'
4. 'Without next hop'
5. 'With expired next hop'
6. 'Without matching entry'
7. 'Size of next hop table'
The data gets averaged out in every 30 mins as per Nagios XI’s default behavior. As a result of being averaged out, we see fractional values coming up against the above mentioned fields in the Performance graph section.
We want to change the data source types of these fields in the exact manner I have mentioned below:
'Number of service requests sent to RR' - COUNTER
'Number of cbrr requests' - COUNTER
'Size of matching table' - GAUGE
'Without next hop' - COUNTER
'With expired next hop' - COUNTER
'Without matching entry' - COUNTER
'Size of next hop table' – GAUGE
Please help us change the data source types so that we get integer values against those fields specified as “COUNTER” above. We also want to change the step value to 300.
Thanks and regards!
Query related to nagios graph : set data type sources
-
ericssonau
- Posts: 5
- Joined: Tue Sep 15, 2015 1:41 am
Query related to nagios graph : set data type sources
You do not have the required permissions to view the files attached to this post.
Re: Query related to nagios graph : set data type sources
When the performance data output for a plugin is evaluated and it does not have a Unit of Measurement appended to the end of the data, the application that creates the graphs assumes it is either an integer or a float and uses a formula to plot the graph.
The formula, rounds the data's output which generates the fraction and that is what you are seeing in the data and that default data is a gauge.
The simplest way to change it to a counter is to edit the script you are using to gather the data and append the letter c on the end of the performance data.
This sets the Unit of Measurement to a Counter and the fractional data will be removed from the graph.
If you do edit your checks, you will have to delete the old graphs so it will get regenerated correctly.
If you cannot edit the script's output, you would have to create a template for you check, which will capture the data from the plugin, and use that template to tell the performance grapher the data type/
Take a look at the link below for an example on how to do that.
https://support.nagios.com/forum/viewto ... 65#p146465
The formula, rounds the data's output which generates the fraction and that is what you are seeing in the data and that default data is a gauge.
The simplest way to change it to a counter is to edit the script you are using to gather the data and append the letter c on the end of the performance data.
This sets the Unit of Measurement to a Counter and the fractional data will be removed from the graph.
If you do edit your checks, you will have to delete the old graphs so it will get regenerated correctly.
If you cannot edit the script's output, you would have to create a template for you check, which will capture the data from the plugin, and use that template to tell the performance grapher the data type/
Take a look at the link below for an example on how to do that.
https://support.nagios.com/forum/viewto ... 65#p146465
Be sure to check out our Knowledgebase for helpful articles and solutions!