Graph for service with no performance data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Graph for service with no performance data

Post by b2m »

Hello all,

we are running some basic checks via SNMP polling like the state of the power supply of a cisco router with the following command:

check_xi_service_snmp -p 161 -o enterprises.9.9.117.1.1.2.1.2.48565389 -C whatever -P 2c -l "Power" -m CISCO-ENTITY-FRU-CONTROL-MIB -r "on"

With the MIB file Nagios can determine the state which works fine. Anyway, Nagios thinks that a performance graph is necessary for this service. How can I avoid that empty graphs like in the attachment are shown?

Thanks a lot and best wishes

b2m
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph for service with no performance data

Post by abrist »

b2m wrote: How can I avoid that empty graphs like in the attachment are shown?
This check must be returning some type of performance data. What output is listed at --> Home --> Service Details --> Click the service --> Advanced --> Performance data (on the left)?
How often is this check run?
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.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Graph for service with no performance data

Post by b2m »

abrist wrote:This check must be returning some type of performance data. What output is listed at --> Home --> Service Details --> Click the service --> Advanced --> Performance data (on the left)?
How often is this check run?
Here it shows green but there is no cross to disable. Check interval is 5 minutes.

Best wishes

b2m
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph for service with no performance data

Post by abrist »

Is the "Performance data" field on the left empty or populated? If it is populated, could you post the performance data here?
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
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Graph for service with no performance data

Post by lmiltchev »

If you don't need perfdata, you can simply disable perfdata processing for this service:

CCM->Services-><your service>->Modify->Check Settings tab->Process perf data = off->Save->Apply Configuration

Then you can remove the rrd & xml files for this service from the "/usr/local/nagios/share/perfdata/..."
Be sure to check out our Knowledgebase for helpful articles and solutions!
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Graph for service with no performance data

Post by b2m »

abrist wrote:Is the "Performance data" field on the left empty or populated? If it is populated, could you post the performance data here?
No, as far as I remember there was no performance data in the field.
lmiltchev wrote:CCM->Services-><your service>->Modify->Check Settings tab->Process perf data = off->Save->Apply Configuration

Then you can remove the rrd & xml files for this service from the "/usr/local/nagios/share/perfdata/..."
This seems to be exactly what I'm looking for :). I will try this tomorrow and report.

Another related question if you don't mind: How can I rename the OID at the bottom of the charts by a human readable name or description?

And a last one: Why do the pnp4nagios graphs and the Highchart graphs co-exist in Nagios XI?

Thanks alot and best wishes

b2m
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph for service with no performance data

Post by abrist »

b2m wrote: And a last one: Why do the pnp4nagios graphs and the Highchart graphs co-exist in Nagios XI?
pnp4nagios display is legacy and will be mostly replaced by graph explorer. We will leave pnp4nagios in as we still use other portions of it and we want to retain reverse compatibility with integrations that rely on the pnp4nagios urls.
b2m wrote:How can I rename the OID at the bottom of the charts by a human readable name or description?
This is controlled by the label on the performance data in the returned check. You may be able to change it by changing the pnp template, but I doubt it.
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.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Graph for service with no performance data

Post by b2m »

lmiltchev wrote:CCM->Services-><your service>->Modify->Check Settings tab->Process perf data = off->Save->Apply Configuration

Then you can remove the rrd & xml files for this service from the "/usr/local/nagios/share/perfdata/..."
This works fine for me, thanks a lot :).
abrist wrote:This is controlled by the label on the performance data in the returned check. You may be able to change it by changing the pnp template, but I doubt it.
So you mean, there is no easy way to do this?

Best wishes

b2m
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graph for service with no performance data

Post by slansing »

Correct, it's essentially up to the plugin, most plugins account for pushing performance data back to Nagios, though some do not.
Locked