Page 1 of 2
Add variable to a performance graph
Posted: Tue Oct 11, 2016 12:21 pm
by USPHNetAdmins
I am monitoring a process count and need the performance graph to report the max number of instances in the given period and taking out excluded processes variable that was automatically inserted. Below is an example of the performance graph I am using
process count.jpg
VMware Image CentOS 6.8 64bit
Re: Add variable to a performance graph
Posted: Tue Oct 11, 2016 4:28 pm
by mcapra
What gets stored as "performance data" within Nagios XI depends entirely on what the plugin you are using is providing. See here for more information about how Nagios handles performance data:
https://nagios-plugins.org/doc/guidelines.html#AEN200
Can you share the specific plugin you are using, as well as the plugin's output when your full check command is executed from the CLI?
Re: Add variable to a performance graph
Posted: Tue Oct 11, 2016 5:18 pm
by USPHNetAdmins
I guess I am using the default plugin that is used with stock install of nagios. This looks like the template that is being used xiwizard_windowsserver_nsclient_service
this is what I get when running from the command line.
[root@localhost ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H 172.16.13.70 -u '******' -p '******' -m checkprocess -s Commandline -a 'rtAgent.exe'
OK - Found 457 Instance(s) of "rtAgent.exe" running (0 excluded). (List is on next line)|'Process Count'=457; 'Excluded Process Count'=0;
The process(es) found are 457x rtagent.exe[root@localhost ~]#
Re: Add variable to a performance graph
Posted: Wed Oct 12, 2016 10:48 am
by mcapra
USPHNetAdmins wrote:report the max number of instances in the given period
On any performance graph, you can click and drag to highlight specific portions to get more granular information about a time period. That would be one way to portray what the max instances looks like for a given time period:
2016_10_12_10_09_52_Nagios_XI.png
USPHNetAdmins wrote:taking out excluded processes variable that was automatically inserted
You can also click on specific data sets on any given performance data graph to hide them. In order to remove the data completely from being registered to Nagios XI, you would need to alter the plugin itself in several places. But I believe that won't immediately remove it from the actual performance data file since there is existing historical data contained for "excluded processes".
Re: Add variable to a performance graph
Posted: Wed Oct 12, 2016 6:09 pm
by USPHNetAdmins
To clarify, management is getting these stats in a scheduled pdf report so they don't readily have access to the nagios dashboard to find the max.
Re: Add variable to a performance graph
Posted: Thu Oct 13, 2016 12:19 pm
by rkennedy
The only other way around it then, would be to modify the plugin and either remove a field, or add the max in here. Unfortunately, since Nagios is just taking the information from the plugin there isn't a way to manipulate the data.
Re: Add variable to a performance graph
Posted: Fri Oct 14, 2016 9:45 am
by USPHNetAdmins
How would I determine which plugin I'm using or where do I find the configuration? We had another installation of Nagios and it displayed the max number of connections.
Re: Add variable to a performance graph
Posted: Fri Oct 14, 2016 10:35 am
by rkennedy
I would look at the machine that is providing the information you're after, navigate to Configure -> Core Config Manager -> Services -> Find the service that has proper performance graphs, and look at the check command.
Now, navigate to Configure -> Core Config Manager -> Commands -> Find that check_command, which will reference a file on your local XI system.
I would then compare it between the working system -> this system to see which plugin is used, and adjust things accordingly.
Re: Add variable to a performance graph
Posted: Wed Dec 07, 2016 11:29 am
by USPHNetAdmins
revisiting this issue. Unfortunately my decommissioned nagios install does not have a host to compare the advanced commands. This is what I am using now to get a current count but does not list the max during the day: check_xi_service_wmiplus!'user'!'password'!checkprocess!-s Commandline -a 'process.exe'!!!! Is there something else that can be added here that might give me the max instances?
Re: Add variable to a performance graph
Posted: Wed Dec 07, 2016 3:43 pm
by ssax
In XI 5.3.0+ you can go to
Admin > System Settings > Theme & Display
- Make sure these options are checked (they are by default but I think there is a bug):
Code: Select all
Last value (Last)
Average (Avg)
Maximum (Max)
Then click the
Update Settings button (
DO THIS REGARDLESS OF WHETHER YOU MAKE CHANGES OR NOT).
That should put the max in the graphs as well.
Let us know if that works for you.
Thank you