Peformance Data Graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
kyle.parker
Posts: 42
Joined: Mon Feb 03, 2014 4:07 pm

Peformance Data Graphs

Post by kyle.parker »

I am having another issue using plugin check_iftraffic5.pl and performance graphs. This plug in seems to be the best revision so far out of this category. I have tried 43a, 64, etc and they all aren't as nice as version 5, however they do update the perfdata graphs fine. When I use check_iftraffic5.pl I can click on my BW service and go to the advanced tab and see all the performance data is there, but the graphs don't populate at all. I have verified that they are creating rrd files in /usr/local/nagios/share/perfdata/. All the graphs show up they are just blank, and all the values (ie LAST, MAX, AVERAGE) state -nan. Has anybody else ran into this issue?

Update: Also just noticed when I look at the xml file for the perfdata I see at the end <TXT>/usr/local/nagios/share/perfdata/Tungsten_Lab_Calix_6252/GigabitEthernet-1_1_Bandwidth.rrd: conversion of '0.01' to float not complete: tail '.'</TXT>
not sure if this is what is causing the issue.
Last edited by kyle.parker on Wed Apr 16, 2014 11:48 am, edited 1 time in total.
User avatar
kyle.parker
Posts: 42
Joined: Mon Feb 03, 2014 4:07 pm

Re: Peformance Data Graphs

Post by kyle.parker »

Here are screenshots of what I see.
Nagiosgraph.JPG
perfdata.JPG
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: Peformance Data Graphs

Post by abrist »

Lets first check the logs:

Code: Select all

tail -20 /usr/local/nagios/var/perfdata.log
tail -20 /usr/local/nagios/var/npcd.log
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
kyle.parker
Posts: 42
Joined: Mon Feb 03, 2014 4:07 pm

Re: Peformance Data Graphs

Post by kyle.parker »

Code: Select all

[kyle.parker@monitor4 /]$ tail -20 /usr/local/nagios/var/perfdata.log
tail: cannot open `/usr/local/nagios/var/perfdata.log' for reading: No such file or directory

Code: Select all

[kyle.parker@monitor4 /]$ tail -20 /usr/local/nagios/var/npcd.log
[01-30-2014 12:59:15] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-30-2014 12:59:15] NPCD: npcd Daemon (0.4.14) started with PID=17553
[01-30-2014 12:59:15] NPCD: Please have a look at 'npcd -V' to get license information
[01-30-2014 12:59:15] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-30-2014 13:02:42] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-30-2014 13:03:47] NPCD: npcd Daemon (0.4.14) started with PID=2840
[01-30-2014 13:03:47] NPCD: Please have a look at 'npcd -V' to get license information
[01-30-2014 13:03:47] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-30-2014 13:31:18] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-30-2014 13:32:39] NPCD: npcd Daemon (0.4.14) started with PID=2834
[01-30-2014 13:32:39] NPCD: Please have a look at 'npcd -V' to get license information
[01-30-2014 13:32:39] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-31-2014 11:09:02] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-31-2014 11:10:26] NPCD: npcd Daemon (0.4.14) started with PID=2830
[01-31-2014 11:10:26] NPCD: Please have a look at 'npcd -V' to get license information
[01-31-2014 11:10:26] NPCD: HINT: load_threshold is enabled - ('10.000000')
[02-25-2014 11:07:11] NPCD: Caught Termination Signal - Hasta la vista... baby
[02-25-2014 11:08:22] NPCD: npcd Daemon (0.4.14) started with PID=19461
[02-25-2014 11:08:22] NPCD: Please have a look at 'npcd -V' to get license information
[02-25-2014 11:08:22] NPCD: HINT: load_threshold is enabled - ('10.000000')
Not sure if my perfdata.log is somewhere else
User avatar
kyle.parker
Posts: 42
Joined: Mon Feb 03, 2014 4:07 pm

Re: Peformance Data Graphs

Post by kyle.parker »

I was comparing my advanced tab on a BW service using the plugin check_iftraffic64.pl to one using check_iftraffic5.pl and noticed that the formats are way different.
The one that is working looks like
Data1
Data2
Data3
And the one that is having issues look like
Data1,Data2,Data3

I am not sure if that is what is causing the issue.
User avatar
kyle.parker
Posts: 42
Joined: Mon Feb 03, 2014 4:07 pm

Re: Peformance Data Graphs

Post by kyle.parker »

I have actually solved the issue, as that formatting looked weird to me I started looking at the plugin's code. On line 664 - 667 they used commas where there should have been semi colon's. Hopefully this helps someone else out that is having the same issue with this plugin.

Code: Select all

$output = "$state: $output |inUse=$in_usage; outUse=$out_usage; Warn=$warn_usage; Crit=$crit_usage;"
  ." inBW=$in_traffic; outBW=$out_traffic;" 
  ." inUcast=$if_in_ucast; inMcast=$if_in_mcast; inBcast=$if_in_bcast; outUcast=$if_out_ucast; outMcast=$if_out_mcast; outBcast=$if_out_bcast;"
  ." inDis=$if_in_discards; inErr=$if_in_errors; outDis=$if_out_discards; outErr=$if_out_errors";
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Peformance Data Graphs

Post by tmcdonald »

Good catch! Sorry we didn't get to this sooner, we just released the Nagios XI 2014 beta and is has kept us very busy!

I'm not sure what implications the changes you made might have later on, but as long as you know what you changed it should be easy later on to at least know where to look again.

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked