Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 11:18 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Sorry for the late reply...
PostPosted: Wed Nov 04, 2009 9:37 am 
Offline

Joined: Mon Aug 17, 2009 10:14 am
Posts: 6
Location: Amsterdam - The Netherland
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

Davide


Top
 Profile  
 
 Post subject: Re: Sorry for the late reply...
PostPosted: Thu Nov 12, 2009 8:54 am 
Offline

Joined: Mon Aug 17, 2009 10:14 am
Posts: 6
Location: Amsterdam - The Netherland
I'm using 0.8.7d too. Strange, I can re-export the whole shebang

Don't know why but it seems that the original XMS was somehow corrupted. Well, here it is again.

Davide


Attachments:
File comment: Templates for the statistics.
varnish.zip [4.76 KiB]
Downloaded 271 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 2:24 pm 
Offline

Joined: Thu Nov 12, 2009 1:24 pm
Posts: 1
Thank you for this Davide.

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>

after I imported the template


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 15, 2010 6:51 am 
Offline

Joined: Thu Mar 16, 2006 12:02 pm
Posts: 18
I've created a new template.

http://forums.cacti.net/viewtopic.php?p=182152


Top
 Profile  
 
 Post subject: version 3 combined
PostPosted: Wed Apr 14, 2010 4:54 pm 
Offline

Joined: Sun Oct 05, 2008 10:46 am
Posts: 9
i've combined two templates into superior one:

http://forums.cacti.net/viewtopic.php?p ... ht=#186676


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2010 9:35 am 
Offline

Joined: Wed Sep 19, 2007 9:00 am
Posts: 7
Guys,

Is not a security problem have this port 6082 open? :o


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 02, 2010 11:56 am 
Offline

Joined: Sun Oct 05, 2008 10:46 am
Posts: 9
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.


Top
 Profile  
 
 Post subject: Re: Varnish cache statistics
PostPosted: Mon Sep 10, 2012 8:01 pm 
Offline

Joined: Mon Sep 10, 2012 7:36 pm
Posts: 1
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?


Top
 Profile  
 
 Post subject: Re: Varnish cache statistics
PostPosted: Wed Sep 26, 2012 10:31 am 
Offline

Joined: Tue Mar 02, 2010 1:40 pm
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: Varnish cache statistics
PostPosted: Wed Sep 26, 2012 3:49 pm 
Offline

Joined: Tue Mar 02, 2010 1:40 pm
Posts: 4
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.

The graphs are otherwise untouched. Good luck.


Attachments:
cacti-varnish-0.2.zip [4.31 KiB]
Downloaded 163 times
Top
 Profile  
 
 Post subject: Re: Varnish cache statistics
PostPosted: Mon Apr 08, 2013 4:13 pm 
Offline

Joined: Mon Apr 08, 2013 4:12 pm
Posts: 1
The Readme states:
"- When creating your graph for your device, make sure to enter the url to the generated
xml file on your varnish-cache server."

Where do we put this?

EDIT: nvm, confused with another template.


Top
 Profile  
 
 Post subject: Re: Varnish cache statistics
PostPosted: Sat Feb 01, 2014 9:15 pm 
Offline

Joined: Sun Oct 05, 2008 10:46 am
Posts: 9
i posted to the "other thread" (Varnish Template) this:

i've updated template and script to work with varnish3:

https://github.com/glensc/cacti-template-varnish

supports varnish2 as well via "-2" option in poller.

i myself use xinetd, probably other options could be coded as well (ssh, snmp, systemd, ...)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group