Hello all,
I am migrating a very old cacti ( 0.8.8 ) into 1.2.5. A while ago I had written a number of scripts to monitor some processes and environmental that were simple: a shell script and a single value comes back. I am struggling to convert all those graphs into 1.2.5 as cacti has evolved.
I read the documentation, so I created the input method, a data source template, device template, graph template, data query, the device, and finally the graph. it just doesn't work. To do this used to be simple, now you need so many constructs including an XML file for the data queries. At this point I am assuming my XML is malformed as I can't select the associated graph template from the drop-down.
Is there any example of an XML file showing how to collect a single variable from a script? What could be causing the associated graph template not to show the one I created?
Here is the current XML I have:
<query>
<name>Get humidity</name>
<description>humidity</description>
<script_path>/var/www/html/cacti/scripts/wduckhumm</script_path>
<fields>
<humidity>
<name>Humidity</name>
<direction>output</direction>
<query_name>Humidity</query_name>
</humidity>
</fields>
</query>
All the documentation (outside the cacti manual) I found describes the way I used to get it done, nothing has been updated to the new cacti. I have included the troubleshooting output of one of the scripts.
Please help!
Unable to graph single value from a script
Moderators: Developers, Moderators
Re: Unable to graph single value from a script
It worked. worst part is that i can't even tell what made it work..
Thanks!
Thanks!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to graph single value from a script
With area graphs, you need two polling cycles to see data.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 2 guests