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;
Code: Select all
CPU: +122?F (low = +50?F, high = +158?F)
Code: Select all
122
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
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!
(I'm running Cacti v0.8.6c-7 on Debian testing.)