Informations about ppp0

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

Moderators: Developers, Moderators

Post Reply
rainer
Posts: 3
Joined: Thu Aug 29, 2002 3:48 am
Location: Ilvesheim, Germany
Contact:

Informations about ppp0

Post by rainer »

is it possible to get informations from ppp0 device? I'm testing about a couple of days but I can't get anything in graphics. The script is working and I am getting some output.
Is there a special trick to get a solution? :o
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

Did you check the RRD to ensure that the data is being collected?
use:rrdtool fetch <filename> AVERAGE <datasource>
to find out.

If that shows up empty, I'd check your heartbeat/min/max setup in your rrd.
If there's data in your RRD but not in cacti, I'd check your min/max setup of your datasource in cacti. If you're using undefined in your RRD, you need to change to rrd_ds table in the cacti database.

execute the following (on a *nix/BSD host):

Code: Select all

#  <mysqlpath>/bin/mysql -u <mysqluser> -p<mysqlpassword> cacti
mysql>  ALTER TABLE `cacti`.`rrd_ds` CHANGE `MaxValue` 
	`MaxValue` VARCHAR(8) DEFAULT '1';
mysql>  ALTER TABLE `cacti`.`rrd_ds` CHANGE `MinValue` 
	`MinValue` VARCHAR(8) DEFAULT '0';
You can also change to default to 'U' if you like.

Aaron
rainer
Posts: 3
Joined: Thu Aug 29, 2002 3:48 am
Location: Ilvesheim, Germany
Contact:

Informations about ppp0

Post by rainer »

Hi yid,
yes I've checked the output and it shows:
1030659000: nan
1030659300: nan
1030659600: nan
1030659900: nan
1030660200: nan
1030660500: nan
1030660800: nan
1030661100: nan
...

The max and min value is the default setting (1/0).

Greetings Rainer.
Guest

Post by Guest »

Okay, your data is all unknown (that's what "nan" means).

First try upping the Max value in cacti to something way above what you'd expect to get back (you can tune it later). If cacti is creating your RRDs be sure to check the box that says to update your RRD.

If that doesn't work:
Are you using cacti's data_input feature, or writing a daemon? If you're using cacti's method, I don't really have any experience with this.

If you're writing a daemon to loop around, and update your RRDs, here's my suggestions:

Either your minimal_heartbeat is not matching your script, or your values are not within your min or max. Try upping the minimal_heartbeat, and setting min/max to "U" using the methods described prior.

For more info check the mailing lists (and a great google search engine for them) at http://www.rrdtool.org
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

sorry forgot to login. That was me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest