|
From: Gandalf <ga...@ca...> - 2011-01-12 19:39:14
|
I'd first check, whether both rrd files are using same layout (rrdtool info helps here). If the data templates has been changed, please notice, that the changes are NOT propagated to existing rrd files. Therefor, it may change things to delete the rrd files and let cacti recreate them on the next poller run. Such a change will affect items to be polled as well (the [map...] log entries). So the next step would be to drop the template from the device, re-associate it and re-create the graphs (which in turn recreated the data sources and recreates the entries to be polled) R. On 12.01.2011 20:05, Boyer, Timothy A. wrote: > Read and (mostly) comprehended before I got here. But my issue seems to be different, because the same script is being used to gather data from two SANs, and the data are all returning correctly in one instance, and 13 of 14 are returning correctly in the other. Therefore, it's not permissions, or a problem with the script, or an access problem to the SAN, etc. It's not a rrd ownership issue, because it never gets that far. > > The only thing that I noticed is that on the data sources screen, the ones that are all working have this on the 'Custom Data' line: > > IP Address (From Host: 172.24.25.133) 172.24.25.133 > > While the one that isn't working just has this: > > IP Address (From Host: 172.24.25.133) > > But as far as I know, there's nowhere I can change that. I've got 'hostname' specified in the Special Type Field of the Input; I've got 14 outputs, and only this one doesn't seem to be dragging the IP along. > > I just deleted and re-created that output, and the data source and graph. Same issue; same error. > > I can cheat, and it'll work - if I change the script to eliminate the input variable, all of the outputs work. > > > -----Original Message----- > From: Gandalf [mailto:ga...@ca...] > Sent: Wednesday, January 12, 2011 1:17 PM > To: Support requests/questions about cacti > Subject: Re: [cacti-user] Result from CMD not valid > > http://docs.cacti.net/manual:087:4_help.2_debugging#debugging > is the recommended read > Reinhard > > On 12.01.2011 16:46, Boyer, Timothy A. wrote: >> I'm running 0.8.7f on a RHEL4 system. I've got a script that pulls out a bunch of values from a SAN, and parses it. >> >> The script works fine on one SAN, but the same script on the other SAN returns >> >> 01/12/2011 10:30:51 AM - CMDPHP: Poller[0] Host[6] DS[87] CMD: disk_stats.sh 172.24.25.133, output: IO_Sec:73 Kb_sec:1078 Svc_Time:4.5 Idle_pct:99 Raw_free:24089088000000 Usable_free:12044544000000 CPU0_Use:0 CPU1_Use:0 CPU2_Use:0 CPU3_Use:0 CPU4_Use:0 CPU5_Use:0 CPU6_Use:0 CPU7_Use:0 >> 01/12/2011 10:30:51 AM - CMDPHP: Poller[0] Host[6] DS[103] WARNING: Result from CMD not valid. Partial Result: U >> 01/12/2011 10:30:51 AM - CMDPHP: Poller[0] Host[6] DS[103] CMD: disk_stats.sh , output: U >> >> Identical script; two different SANS - I just use an INPUT for the different IPs. It's choking on the Kb_sec parameter. >> >> I've deleted the rrd file; I've deleted and redone the data source. No luck. >> >> Same script; same output; other SAN returns fine: >> >> 01/12/2011 10:35:33 AM - CMDPHP: Poller[0] Host[5] DS[97] CMD: disk_stats.sh 172.27.25.133, output: IO_Sec:153 Kb_sec:7007 Svc_Time:7.2 Idle_pct:99 Raw_free:29319680000000 Usable_free:14659840000000 CPU0_Use:0 CPU1_Use:0 CPU2_Use:0 CPU3_Use:0 CPU4_Use:0 CPU5_Use:0 CPU6_Use:0 CPU7_Use:0 >> 01/12/2011 10:35:34 AM - POLLER: Poller[0] Parsed MULTI output field 'Kb_sec:7007' [map Kb_sec->KB_Sec] >> 01/12/2011 10:35:34 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /var/www/html/cacti/rra/kb_sec_97.rrd --template KB_Sec 1294846502:7007 >> >> Pointers in the right direction appreciated.... >> >> Tim >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> cacti-user mailing list >> cac...@li... >> https://lists.sourceforge.net/lists/listinfo/cacti-user >> > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > |