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.
basic wrote:I'm not able to import the varnish+xinetd template in Cacti, it's giving me an "Error: XML: Hash version does not exist.". What version of Cacti are you using?
We are still running 0.8.7d here, i'm guessing you're running 0.8.7e and it's not backwards compatible?
Thanks!
I'm using 0.8.7d too. Strange, I can re-export the whole shebang and send it to you. (kind of annoying that these kind of things don't work between patches...)
If you want to mail me directly: db AT sentia POINT nl
If anyone else grabs this, you may want to note that the original scripts were called varnish.pl or varnish2.pl. For me (maybe my install is screwy), I had to go update the "Data Input Methods" for "Varnish Input Stats" from
/usr/bin/perl <path_cacti>/scripts/test.pl <ip> <port>
to
/usr/bin/perl <path_cacti>/scripts/varnish.pl <ip> <port>
you can limit your 8062 port access with iptables, or use interface that is not exposed to the Internet (LAN interface, loopback device), also Varnish 2.1 should have authentication support in admin port, haven't checked as I limit my port access with private network.
Coming in a bit late here, but the current version of varnish (I'm using 3.0.2) has deprecated the "stats" keyword for varnishadm. The recommended way to generate stats is now exclusively through the varnishstat command, which can only be run on the actual varnish server since it needs to read from the shared memory logs.
Does anyone using varnish 3.0 have a working cacti config?
rel1sh wrote:Does anyone using varnish 3.0 have a working cacti config?
+1 to the need of this... im looking into making something, but every attempt has been a dead end so far. I'm actually at the point where i might want to emulate the old functionality in a python script on the varnish server.
alright i've updated the script to work with varnish > 3... but it has a few more requirements (naturally)
i've just created a stupid simple php file to expose the contents of the varnishstat from the server to the cacti instance... then I did 2 things to the xml file: hosted the file on a different port other than 80. lock down the port it is served on via iptables.
you dont have to use the php file, but you do have to export the "varnishstat -x" command to the python script somehow... the php script i used is also included if you decide to go that route.
The python script needs python 2.7 as well because im using urllib2 and ElementTree.