Page 2 of 2
Re: NagVis and graphs
Posted: Tue Jan 06, 2015 4:21 pm
by sreinhardt
How about the nagviz gadgets? its not exactly highcharts, but so far I have not seen anything for an iframe include or something similar.
Code: Select all
http://exchange.nagvis.org/exchange/Gadgets/orderby,2/page,2/
Re: NagVis and graphs
Posted: Wed Jan 07, 2015 2:47 am
by WillemDH
I already played around with the gadgets, but did not found a way to get LONGSERVICEOUTPUT. I do not need custom development or a feature request. Just some php code to retrieve $LONGSERVICEOUTPUT$ from a service in Nagios.

I should be able to do the rest.
Re: NagVis and graphs
Posted: Wed Jan 07, 2015 4:47 pm
by sreinhardt
Would getting it through a api query work for you? I could certainly send abrist in here and I'm sure he could point out how to grab that. So to clarify, at this point its more about getting longserviceoutput into nagvis than graphs?
Re: NagVis and graphs
Posted: Thu Jan 08, 2015 3:29 am
by WillemDH
Spenser,
To be honest, I need both...
But at this very moment being able to just get the $LONGSERVICEOUTPUT$ of a service would keep me quite for a few weeks....

Getting Highcharts to work in NagVis is something I'm not ready for yet...
Grtz
Re: NagVis and graphs
Posted: Thu Jan 08, 2015 5:13 pm
by abrist
I know there is a way, we just need to hunt down the template that you desire to change. The templates are located at:
Code: Select all
/usr/local/nagvis/share/userfiles/templates
Which portions of the UI would you like to add the longserviceoutput to?
Also, there is a small chance that we just need to increase the size of the serviceoutput field in the DB (if nagvis does not support long output). This would cause the XI ui to display more characters on the details pages though.