No data for COUNTER

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Toema

No data for COUNTER

Post by Toema »

Hi all,

I could use some help with counters. I've managed to enable most of the example graphs for cacti 0.6.8 on OpenBSD except for the MySQL example which uses a COUNTER for the total number of connections. I've written a probe for the total number of incoming bytes through netstat (see below) also using COUNTER. Neither one of them shows a graph or stores any valid data whatsoever.

The probe does work for Cron Printout by the way showing exactly the number of bytes transferred. I've tried to set the Maximum Value for this Data Source to "U" as explained in the rrdtool manual but then cacti won't let me (when set to "U" cacti ignores the Data Source completely). I've also tried setting max to 1Gb (in bytes ofcourse) and resetting the byte counter but still no valid data in the rrd. I was assuming that probing the byte counter every 5 mins would result in a "bytes per 5 mins" graph while storing the byte counter...

Any pointers ?

Cheers,
Toema

#!/usr/bin/perl

#
# 13/07/2002, v0.1
# get Ibyte byte counter from netstat for specific interface de0
#

# go
$response = `netstat -bn -I de0 | grep Link | awk '\{print \$5 \}'`;
chomp $response;
$response = $response;
#print "$response$db";
print $response;
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Make sure your script is only returning a number, rrdtool won't play nicely otherwise. You could also check the 'log/rrd.log' file and see what update command is being fed to rrdtool by cacti.

When you do get it working you should get a per/second graph, rrdtool stores everything per/second by default.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest