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;
No data for COUNTER
Moderators: Developers, Moderators
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
When you do get it working you should get a per/second graph, rrdtool stores everything per/second by default.
-Ian
Who is online
Users browsing this forum: No registered users and 2 guests