Add variable to a performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Add variable to a performance graph

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Add variable to a performance graph

Post 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?
Former Nagios employee
https://www.mcapra.com/
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Add variable to a performance graph

Post 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 ~]#
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Add variable to a performance graph

Post 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".
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Add variable to a performance graph

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Add variable to a performance graph

Post 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.
Former Nagios Employee
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Add variable to a performance graph

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Add variable to a performance graph

Post 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.
Former Nagios Employee
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Add variable to a performance graph

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Add variable to a performance graph

Post 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
Locked