Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Here is a script which I hacked together from the weatherbug script.
So that I could monitor my SmartUPS which is connected to my Linux Box and monitored by apcupsd.
If your apcaccess program gives out other value-pair you can easely change the script ...
OllyM wrote:Has anybody had any luck getting this to work?
I just can't seem to get cacti to draw any graphs using this... don't suppose somebody could do a quick runthrough of how to actually set this up?
I didn't get any output either. But I think the above script will not deliver any values at all. So the graphs won't be generated (no values -> no graph)
I have tried to run the script on my shell but no output at all... So I decided to write it from scratch (reading the input from STDIN)
I have not integrated it into cacti yet but it already delivers output values of my BACK UPS 800 RS. If you don't get any output you perhabs have to adjust the regex statements a little bit (according the output of your apcaccess program).
Invoke it (as root) like this:
apcaccess | /usr/local/bin/cacti-apcupsd.pl
This should print the current apcupsd values to stdout: