Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glensc/cacti-template-varnish
Cacti Varnish Template
https://github.com/glensc/cacti-template-varnish
Last synced: 3 months ago
JSON representation
Cacti Varnish Template
- Host: GitHub
- URL: https://github.com/glensc/cacti-template-varnish
- Owner: glensc
- Created: 2014-02-01T11:18:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T10:04:30.000Z (over 7 years ago)
- Last Synced: 2024-04-14T07:29:33.703Z (9 months ago)
- Language: Python
- Homepage:
- Size: 724 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cacti Varnish Template
======================Uses advanced template from:
Combines script to pull data via Varnish admin port from
How to install
--------------1. Import `cacti_host_template_varnish.xml` to Cacti
2. Copy `get_varnish_stats.py` to `scripts`
3. Make the varnishstat available to your Cacti machine (read below)**IMPORTANT**: You need to recompile `spine` with `./configure --with-results-buffer=2048`.
For Varnish 2, you can use Varnish management service, configure it to be accessible. For 2.0 make sure you lock down appropriately with `iptables` or similar, because there is no authentication for this interface, for 2.1 the authentication is (currently) not implemented by this template poller.
Varnish 3 does not have `stats` command anymore in management interface. You can setup [inetd][1] daemon like [xinetd][2] to serve the `varnishstat` command remotely (again be sure to restrict access to prevent any unauthorized access):
```
service varnishstat
{
socket_type = stream
wait = no
user = nobody
server = /usr/bin/varnishstat
server_args = -1
only_from = 10.10.0.7
log_on_success = HOST
}
```Samples
-------**Backend Traffic**
![Backend Traffic](img/backend-traffic.png)
**Critbit data**
![Critbit data](img/critbit-data.png)
**Data structure sizes**
![Data structure sizes](img/data-structure-sizes.png)
**ESI**
![ESI](img/esi.png)
**Hitrate %**
![Hitrate %](img/hitrate.png)
**Hit rates**
![Hit rates](img/hit-rates.png)
**LRU activity**
![LRU activity](img/lru-activity.png)
**Memory allocation requests**
![Memory allocation requests](img/memory-allocation-requests.png)
**Number of objects**
![Number of objects](img/number-of-objects.png)
**Object expunging**
![Object expunging](img/object-expunging.png)
**Objects delivered with sendfile vs write**
![Objects delivered with sendfile vs write](img/objects-delivered-with-sendfile-vs-write.png)
**Objects overflowing workspace**
![Objects overflowing workspace](img/objects-overflowing-workspace.png)
**Objects per objecthead**
![Objects per objecthead](img/objects-per-objecthead.png)
**Request rates**
![Request rates](img/request-rates.png)
**Session herd**
![Session herd](img/session-herd.png)
**Sessions**
![Sessions](img/sessions.png)
**Shared memory activity**
![Shared memory activity](img/shared-memory-activity.png)
**SHM writes and records**
![SHM writes and records](img/shm-writes-and-records.png)
**Thread status**
![Thread status](img/thread-status.png)
**Memory Usage**
![Memory Usage](img/memory-usage.png)
**Transfer rates**
![Transfer rates](img/transfer-rates.png)
**Uptime**
![Uptime](img/uptime.png)
**VCL and purges**
![VCL and purges](img/vcl-and-purges.png)
Author
------Elan Ruusamäe
[1]: http://en.wikipedia.org/wiki/Inetd
[2]: http://en.wikipedia.org/wiki/Xinetd