Greetings,
I've worked on this all day long and am stumped! I created a Data Input Method to get some statistics out of a mysql database. It's supposed to call a python script that returns data in this format:
read_percentage:24 cur_io_per_sec:115 total_ios:34587 cur_kbps:2002 cache_hit_percentage:60
I set up a the data templates, etc. I've gone through my setup 50 times. I've run through the "Debugging NaN" as well. My script simply does not run. I put a few lines at the beginning that writes output to a log file any time it's executed, and cmd.php simply doesn't appear to be executing it!
cacti.log (in debug) shows only this:
01/28/2008 05:55:02 PM - CMDPHP: Poller[0] Host[3] DS[14] WARNING: Result from CMD not valid. Partial Result:
01/28/2008 05:55:02 PM - CMDPHP: Poller[0] Host[3] DS[14] CMD: /tmp/cacti_get_stats.py DS4802 STORAGE SUBSYSTEM TOTALS, output: U
Subsequently, my RRDs get updated with NaN.
I've su'd to cacti, run the script - works. I've done everything I can think of to troubleshoot and fix this. I'm simply not sure why cacti isn't running the script - ideas?
Thanks!
Brendon
Script/command not running, no idea why
Moderators: Developers, Moderators
When you manually execute "/tmp/cacti_get_stats.py DS4802 STORAGE SUBSYSTEM TOTALS", it works properly, right?
Did you include the full path to python in the data input entry path field?
Did you include the full path to python in the data input entry path field?
Ummm, so the script works with su rights? You sure the script / python have the correct permissions on them so the web server can execute them?brendonc wrote:I've su'd to cacti, run the script - works
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest