NagVis and graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

NagVis and graphs

Post by WillemDH »

Hello,

I made a nice NagVis map today with power consumption data of one of our datacenters.

Is it possible to display highcharts on NagVis maps? I read through some threads and I think the answer is no, but I would like some confirmation.

I'm using Highcharts and I really like it, so I want to keep using it in Nagios XI. Can I use PNP4Nagios graphs in NagVis while using Highcharts in nagios XI?

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagVis and graphs

Post by slansing »

Yeah, I don't really see any mention of hicharts + nagvis anywhere. My Guess is it would be possible, but is not documented, you may be able to roughly follow an implementation document for something like graphite that may have been integrated with nagvis at some point. You should be able to use pnp with nagvis and retain hicharts globally in XI, let us know if this is not the case.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: NagVis and graphs

Post by WillemDH »

ok, thank you Sam. One more nagvis related question. I have a service checking an AKCP sensor probe. The service checks multiple things, but only has two perfdata values.

I can get the perfdata values into nagVis already.

Code: Select all

OK sensorProbe8 v2.0: Sensor reports that everything is fine
OK Temperature sensor "Temperatuur serverroom Crepain": 20.90C (15.0:28.0/10.0:30.0)
OK Humidity sensor "Vochtigheid Serverroom Crepain": 38.00% (25.0:60.0/10.0:70.0)
OK Switch sensor "Diesel Generator Crepain" is normally open
OK Switch sensor "ALARM Cooling Crepain" is normally open
OK Switch sensor "Airco Lennox Storing" is normally open
OK Switch sensor "Genset Crepain Fuel Tank empty" is normally open
OK Switch sensor "Diesel Generator Gestart" is normally open
OK Switch sensor "Brand Melding Bluscentrale!!!!!" is normally open
OK Switch sensor "Water8 Description" is normally open
But I would need a way to only show "OK Switch sensor "Diesel Generator Gestart" is normally open" on the NagVis map. How can I retrieve the LONGSERVICEOUTPUT in the php gadget? This would enable me to parse the variable where the longserviceoutput is stored and output it in NagVis.

$LONGSERVICEOUTPUT$ The full text output (aside from the first line) from the last service check.

Thanks.

Willem
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagVis and graphs

Post by abrist »

What are you using for your backend? You may have to alter the column size for the plugin output field in the ndo database if you are using ndo.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: NagVis and graphs

Post by WillemDH »

I'm really sorry Andy, but can you ellaborate on this? Backend? You mean database? It's Nagios XI, so mysql? postgresql? Why would I need to alter column size for the plugin output field?
Last edited by WillemDH on Tue Dec 02, 2014 7:01 am, edited 1 time in total.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagVis and graphs

Post by abrist »

Nagvis can use ndomy (the ndo "nagios" database) or livstatus as the backend. To check which you use, go to --> Nagvis --> Open --> WUI --> Options --> manage backend.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: NagVis and graphs

Post by WillemDH »

Hey Andy,

Our Nagvis backend configuration is still default and had "ndomy_1" configured.

Grtz
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagVis and graphs

Post by tmcdonald »

Can you show a screenshot of exactly what you are seeing (and where) so I can get a better idea of what you want changed visually?
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: NagVis and graphs

Post by WillemDH »

Added some screenshots. What I would like to achieve is an extra square beneath Humidity that only displays "Diesel Generator Crepain OK", as shown is the second screenshot. (or Diesel Generator CRITCAL in case it is critical..)
So I would need to get the LONGSERVICEOUTPUT in php somehow.

Grtz
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagVis and graphs

Post by tmcdonald »

I might have to pull a developer in on this. It could be something really simple, but I have not looked at the relevant code in the month since this thread was last active so I'm not incredibly familiar with it anymore. If it would take more than a few minutes this would need to be custom development for us to do it, otherwise a feature request if it is not time-critical. However we typically do not do custom work on third-party projects.
Former Nagios employee
Locked