Page 1 of 1

how to remove the size value from graph

Posted: Mon Apr 02, 2018 12:55 pm
by Chite
Hey guys, I've setup a new "check_http" alarm and I'm noticing when I'm looking at the graphing it's showing two values
1. time (last/avg/max)
2. size (last/avg/max)

I'm not sure what the size value is referring too? is it size of packets for the nrpe plugin?
anyway, I'd like to remove this from the graph but I don't see an option to do this in the nagios xi configuration screen or in the CCM. any thoughts on how to get rid of that value?

thanks!

Re: how to remove the size value from graph

Posted: Mon Apr 02, 2018 1:00 pm
by Chite
looking into it a little more, it looks like size is referring to page size. is there anyway of removing that value from the graph?

Re: how to remove the size value from graph

Posted: Mon Apr 02, 2018 2:23 pm
by scottwilkerson
The default graph display all the metrics returned by the plugin.

You can create a graph with just the datasources (metrics) you want at
Home -> Graph Explorer -> Multistacked Performance Graph Tab

Select Host
Service
Data Type

The you can use the dashify icon to add this to a dashboard

Re: how to remove the size value from graph

Posted: Mon Apr 02, 2018 3:04 pm
by Chite
That's good information but it doesn't update the graph in the service status detail. Is there a way to modify the plugin, or copy the plugin and modify that one to remove the size value and only display the time value on the graph?

Re: how to remove the size value from graph

Posted: Mon Apr 02, 2018 3:21 pm
by Chite
could I modify the Graph Template and import it in as a new graph template and use that? problem with that is I don't know how to use that newly imported graph with the new service monitor I just setup....

Re: how to remove the size value from graph

Posted: Tue Apr 03, 2018 8:45 am
by scottwilkerson
Chite wrote:could I modify the Graph Template and import it in as a new graph template and use that? problem with that is I don't know how to use that newly imported graph with the new service monitor I just setup....
No, new XI doesn't use them.

The only thing that you could would would be to create a wrapper plugin that called this plugin with args and stripped the output off of this plugin and returned the same results and exit code.

This would be something you would have to create yourself
I'll attach the Nagios Plugin Development Guidelines

https://nagios-plugins.org/doc/guidelines.html