POLLER: missing "--template" value; rrdtool error.

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

Moderators: Developers, Moderators

Post Reply
superfoo
Posts: 3
Joined: Sun May 29, 2005 6:12 am

POLLER: missing "--template" value; rrdtool error.

Post by superfoo »

Ugh. So I've been messing with this for HOURS, and I've gotten nowhere... nor was I able to find much of anything on the forums:

This being my first Cacti/rrdtool install, I thought it'd be cool to map the stats of my systems LM85 chip. Attempting to keep things as simple as possible, I started out by simply editing the 'linux_memory.pl' script, and then creating the necessary input methods and data templates within Cacti.

The script that I am using is as follows:

Code: Select all

#!/usr/bin/perl

$sensor = `/usr/bin/sensors -af | grep -w "$ARGV[0]"`;
$sensor =~ s/(^\S+\s+\D?)(\d+)//;
print $2;
...with the appended argument being the name of the sensor I'm looking to read (i.e., "CPU", as defined in my sensors.conf file.), so as to take this:

Code: Select all

CPU:        +122?F  (low  =   +50?F, high =  +158?F) 
to this:

Code: Select all

122
Just as with the linux_memory.pl script, this one returns, on the same line, an interger, such as "122", with no surrounding characters, whitespace, etc.


The problem that I'm having is that as soon as I add this data source to one of my hosts, the poller errors with the following:

Code: Select all

05/29/2005 04:07:55 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/borealis_cpu_temp_38.rrd --template  1117364874:127
ERROR: Not enough arguments
Best I can tell, the problem is that the template name, which should show as "cpu_temp" for this example, is being left out (and the command completes just fine if I add this in and run it myself).

I've deleted, renamed, recreated, etc., everything I can think to at this point, and I honestly don't know what else to try...

PLEASE HELP! :o


(I'm running Cacti v0.8.6c-7 on Debian testing.)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Your data source is missing a defined DS...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
superfoo
Posts: 3
Joined: Sun May 29, 2005 6:12 am

Post by superfoo »

I beg your pardon, but, what does DS refer to exactly? I've added the new objects side-by-side to the 'Linux - Memory' ones, and I can't see where I've left anything out.
superfoo
Posts: 3
Joined: Sun May 29, 2005 6:12 am

Post by superfoo »

Hah! Never mind, and thanks! It's working now; guess I'd been sitting in front of the thing for too long!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests