Data Input appears to work, but nothing will graph

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

Moderators: Developers, Moderators

Post Reply
MaestroG
Posts: 3
Joined: Wed Apr 23, 2003 4:25 pm
Location: Tulsa, OK

Data Input appears to work, but nothing will graph

Post by MaestroG »

I am using a perl script to do an SNMPGET. The Cron Printout produces the following in Cacti:

perl /var/www/html/cacti/scripts/san_drives_total.pl 222162707 81843150 88863512 53966427 133299195 27876723

The rrd.log shows the following:

7876723
:U:U:U
04/23/2003 4:20 PM - CMD: /usr/bin/rrdtool update /var/www/html/cacti/rra/san_totals.rrd --template total_util:total_cap:fstotal_util:fstotal_cap:extotal_util:extotal_cap N:81843150:222162707:53966427:88863512:27876723
:133299195

I selected the Data Input Source when I created the Data Source and I made sure to set the Maximum Value at 9999999999999. Cacti created all the sub-Data Sources properly as seen here:

SAN Totals SAN Drive Totals [Edit Data] Duplicate Currently Active Remove
SAN Totals_EXtotal_cap None Duplicate N/A Remove
SAN Totals_EXtotal_util None Duplicate N/A Remove
SAN Totals_FStotal_cap None Duplicate N/A Remove
SAN Totals_FStotal_util None Duplicate N/A Remove
SAN Totals_total_cap None Duplicate N/A Remove
SAN Totals_total_util None Duplicate N/A Remove

This leads me to believe the perl script is working through Cacti. I have an "rrd" in the /var/www/html/cacti/rra directory. I've double checked my Output String on the Data Input Source Configuration screen. It is as follows:

<total_cap> <total_util> <FStotal_cap> <FStotal_util> <EXtotal_cap> <EXtotal_util>

Finally, I created a graph using the sub-Data Sources and the graph is blank. No error, but no data.

What am I missing???
Thanks,
G
MaestroG
Posts: 3
Joined: Wed Apr 23, 2003 4:25 pm
Location: Tulsa, OK

update

Post by MaestroG »

Ran:

rrdtool fetch san_totals.rrd AVERAGE

and it produced:

total_util total_cap fstotal_util fstotal_cap extotal_util extotal_cap

1051048800: nan nan nan nan nan nan
1051049100: nan nan nan nan nan nan
1051049400: nan nan nan nan nan nan
1051049700: nan nan nan nan nan nan
1051050000: nan nan nan nan nan nan
1051050300: nan nan nan nan nan nan
1051050600: nan nan nan nan nan nan
1051050900: nan nan nan nan nan nan
1051051200: nan nan nan nan nan nan
1051051500: nan nan nan nan nan nan
1051051800: nan nan nan nan nan nan
1051052100: nan nan nan nan nan nan
1051052400: nan nan nan nan nan nan
1051052700: nan nan nan nan nan nan
1051053000: nan nan nan nan nan nan
1051053300: nan nan nan nan nan nan
1051053600: nan nan nan nan nan nan
1051053900: nan nan nan nan nan nan
1051054200: nan nan nan nan nan nan
1051054500: nan nan nan nan nan nan
1051054800: nan nan nan nan nan nan
1051055100: nan nan nan nan nan nan
1051055400: nan nan nan nan nan nan
1051055700: nan nan nan nan nan nan
1051056000: nan nan nan nan nan nan
1051056300: nan nan nan nan nan nan
1051056600:

Seems Database isn't being populated.
Thanks,
G
Guest

Database not getting populated

Post by Guest »

Can't figure out why data isn't getting into the RRD. Is there a built in timeout...could my perl script doing SNMPGET's be taking too long to get recorded in the RRD? It doesn't take too long for the cron output and the logs to show the values, so I'm stumped!!!

Please help! :-?
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

You have messed up order of output parameters. In Data Input config you have "cap util cap util cap util". In rrdtool update command line however you have "util cap util cap util cap". It seems also that your script adds newline character after the last output parameter. You need to remove it somehow or use the following patch to cacti: http://www.raxnet.net/board/viewtopic.php?t=857

- bulek
MaestroG
Posts: 3
Joined: Wed Apr 23, 2003 4:25 pm
Location: Tulsa, OK

Interesting...

Post by MaestroG »

OK. I changed them, but since it is just pulling numbers, I don't understand why it matters what order I put them in. I also changed the Data Input "Input String" to include the full path. I'm not sure which fixed the problem, but it works now!!! :D

Old:
perl <path_cacti>/scripts/san_totals.pl
New:
perl /var/www/html/cacti/scripts/san_totals.pl

Thanks for the help.
G
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest