Error in graphing

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

Moderators: Developers, Moderators

Post Reply
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Error in graphing

Post by neocontrol »

I'm not getting graphs for script that I am using. Here's the error.
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Sar_Load_Average" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/serv56_ord01_ldavg_1_514.rrd":ldavg_1:AVERAGE \
DEF:b="/var/www/cacti/rra/serv56_ord01_ldavg_1_514.rrd":ldavg_5:AVERAGE \
DEF:c="/var/www/cacti/rra/serv56_ord01_ldavg_1_514.rrd":ldavg_15:AVERAGE \
AREA:a#FF0000FF:"1 Minute Load Average" \
AREA:b#FF00FFFF:"5 Minute Load Average" \
AREA:c#D8ACE0FF:"15 Minute Load Average"
RRDTool Says:
ERROR: No DS called 'ldavg_5' in '/var/www/cacti/rra/serv56_ord01_ldavg_1_514.rrd
I'm not really sure what exactly this means? What's a DS? How do I trouble shoot this guy?

Thanks for any help,
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Post by neocontrol »

Nevermind, I blew away the file and recreated the rrd file, and now the graph showed up.
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Post by neocontrol »

Okay, another issue at hand. Graphs are showing up, but nothing is being graphed. I turned my log level to debug, and I see this line.

01/16/2009 10:10:01 PM - CMDPHP: Poller[0] Host[0] DS[514] WARNING: Result from CMD not valid. Partial Result:

I am not exactly sure what is alloweed or not in a cacti script as far as output, but my output is kind of huge, it looks like this..
./sar.pl
proc_s:1.00 cswch_s:543.98 cpu_user:3.53 cpu_nice:0.00 cpu_system:4.60 cpu_iowait:0.88 cpu_idle:90.99 intr_s:1073.54 pgpgin_s:43.03 pgpgout:33.71 fault_s:534.55 majflt_s:0.03 pswpin_s:0.00 pswpout_s:0.00 tps:3.66 rtps:1.07 wtps:2.60 frmpg_s:10.07 bufpg_s:0.30 campg_s:11.06 eth0_rxpck_s:38.57 eth0_txpck_s:27.38 eth0_rxerr_s:0.00 eth0_txerr_s:0.00 kbmemfree:46051328 kbmemused:476987392 kbbuffers:94257152 kbcached:125878272 kbswpused:2981888 dentunusd:13322 file_sz:1530 inode_sz:10386 super_sz:0 totsck:114 tcpsck:7 udpsck:6 runq_sz:2 plist_sz:147 ldavg_1:0.10 ldavg_5:0.15 ldavg_15:0.09
I have it setup to check for the output of ldavg_1, ldavg_5, and ldavg_15.

Is my problem that there is to much output? The out is all on a single line, if that matters.

Thanks,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please use debugging procedure as of the 2nd link of my sig. Please verify, that the mapping works fine.
BTB: It does matter, that the whole line is created using a single PRINT statement!
Reinhard
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Post by neocontrol »

Thanks for the reply.

I do have a single print statement that outputs that entire line.

I'll check to make sure it's mapping correctly and reply back.

Thanks,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If this fails, please try to reduce parms step by step to narrow it down.
It is REALLY supposed to work that way.
Reinhard
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Post by neocontrol »

Okay, in my logfile, I'm getting this....

01/21/2009 04:40:01 PM - CMDPHP: Poller[0] Host[0] DS[514] CMD: /var/www/cacti/scripts/sar.pl, output: U
01/21/2009 04:40:01 PM - CMDPHP: Poller[0] Host[0] DS[514] WARNING: Result from CMD not valid. Partial Result:

I question whether or not my output fields are correct.

Should they be in cacti like this?

field:

or

field

My output on the command line looks like the first.
neocontrol
Posts: 22
Joined: Fri Oct 10, 2008 5:22 pm

Post by neocontrol »

Wrong topic.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest