Add variable to a performance graph
-
USPHNetAdmins
- Posts: 17
- Joined: Tue Jul 02, 2013 9:55 am
Add variable to a performance graph
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
VMware Image CentOS 6.8 64bit
VMware Image CentOS 6.8 64bit
You do not have the required permissions to view the files attached to this post.
Re: Add variable to a performance graph
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?
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/
https://www.mcapra.com/
-
USPHNetAdmins
- Posts: 17
- Joined: Tue Jul 02, 2013 9:55 am
Re: Add variable to a performance graph
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 ~]#
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
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:USPHNetAdmins wrote:report the max number of instances in the given period
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".USPHNetAdmins wrote:taking out excluded processes variable that was automatically inserted
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
USPHNetAdmins
- Posts: 17
- Joined: Tue Jul 02, 2013 9:55 am
Re: Add variable to a performance graph
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
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
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
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.
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
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
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):
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
- 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) That should put the max in the graphs as well.
Let us know if that works for you.
Thank you