aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@nxc.no>2018-02-05 20:56:59 +0100
committerSergey Poznyakoff <gray@nxc.no>2018-02-05 20:56:59 +0100
commitf7677f32b90eea37e54b39a3e26e5437924a2ada (patch)
tree4112eecd0acecd664e613fd1b66dd177b7ab87ba
parent027e83b6f5dc6a63ed9c69e534c0b994041df14f (diff)
downloadvarnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.gz
varnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.bz2
Version 2.0
-rw-r--r--Makefile.am2
-rw-r--r--NEWS90
-rw-r--r--README34
-rw-r--r--configure.ac12
-rw-r--r--lib/VarnishMib/HashTable.pm16
-rw-r--r--lib/VarnishMib/MIBTable.pm16
-rw-r--r--src/Makefile.am2
-rw-r--r--src/VARNISH-MIB.txt6
-rw-r--r--src/auth.c2
-rw-r--r--src/backend.h3
-rw-r--r--src/ban.c2
-rw-r--r--src/belex.l17
-rw-r--r--src/modconf.c17
-rw-r--r--src/varnish-mib.885
-rw-r--r--src/vcli.c2
15 files changed, 254 insertions, 52 deletions
diff --git a/Makefile.am b/Makefile.am
index 30060d5..cea3646 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,14 +1,14 @@
1# This file is part of varnish-mib -*- automake -*- 1# This file is part of varnish-mib -*- automake -*-
2# Copyright (C) 2014-2015 Sergey Poznyakoff 2# Copyright (C) 2014-2018 Sergey Poznyakoff
3# 3#
4# varnish-mib is free software; you can redistribute it and/or modify 4# varnish-mib is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option) 6# the Free Software Foundation; either version 3, or (at your option)
7# any later version. 7# any later version.
8# 8#
9# varnish-mib is distributed in the hope that it will be useful, 9# varnish-mib is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details. 12# GNU General Public License for more details.
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
diff --git a/NEWS b/NEWS
index f12c539..e447533 100644
--- a/NEWS
+++ b/NEWS
@@ -1,36 +1,120 @@
1Varnish-mib NEWS -- history of user-visible changes. 2016-04-27 1Varnish-mib NEWS -- history of user-visible changes. 2018-02-05
2Copyright (C) 2014-2016 Sergey Poznyakoff
3See the end of file for copying conditions. 2See the end of file for copying conditions.
4 3
5Please send Varnish-mib bug reports to <gray@gnu.org> 4Please send Varnish-mib bug reports to <gray@gnu.org>
6 5
6Version 2.0, 2018-02-05
7
8This version is written for Varnish 5.2.0. It will definitely not
9compile with Varnish 5.2.1 and later. You'll have to use version 3.0
10for that.
11
12Most important changes:
13
14New OIDs:
15
16** VarnishMIB::objects branch
17
18 objectsCount
19
20 Approximate number of HTTP objects (headers + body,
21 if present) in the cache.
22 [Varnish variable MAIN.n_object]
23
24 objectsVampire
25 Number of unresurrected objects.
26 [MAIN.n_vampireobject]
27
28 objectsCore
29 Approximate number of object metadata elements in the cache. Each
30 object needs an objectcore, extra objectcores are for
31 hit-for-miss, hit-for-pass and busy objects.
32 [MAIN.n_objectcore]
33
34 objectsHead
35 Approximate number of different hash entries in the cache.
36 [MAIN.n_objecthead]
37
38 objectsExpired
39 Number of objects that expired from cache because of old age.
40 [MAIN.n_expired]
41
42 objectsLRUNuked
43 How many objects have been forcefully evicted from
44 storage to make room for a new object.
45 [MAIN.n_lru_nuked]
46
47 objectsLRUMoved
48 Number of move operations done on the LRU list.
49 [MAIN.n_lru_moved]
50
51 objectsPurges
52 Number of purge operations executed.
53 [MAIN.n_purges]
54
55 objectsObjPurged
56 Number of purged objects.
57 [MAIN.n_obj_purged]
58
59 objectsGzip
60 Number of gzip operations.
61 [MAIN.n_gzip]
62
63 objectsGunzip
64 Number of gunzip operations.
65 [MAIN.n_gunzip]
66
67** VarnishMIB::vcl branch
68
69 vclTotal
70 Number of loaded VCLs in total.
71 [MAIN.n_vcl]
72
73 vclAvail
74 Number of VCLs available.
75 [MAIN.n_vcl_avail]
76
77 vclDiscard
78 Number of discarded VCLs.
79 [MAIN.n_vcl_discard]
80
81 vclFail
82 Number of VCL failures.
83 [MAIN.vcl_fail]
84
85* Removed OIDs
86
87Several OIDs have been withdrawn due to changes in the Varnish API.
88These are: clientRequests411, clientRequests413, and backendConnUnused.
89
90
7Version 1.1.90 (Git) 91Version 1.1.90 (Git)
8 92
9* Support for Varnish 4.1 93* Support for Varnish 4.1
10 94
11 95
12Version 1.1, 2015-02-25 96Version 1.1, 2015-02-25
13 97
14* Don't exit if unable to open Varnish memory file 98* Don't exit if unable to open Varnish memory file
15 99
16 100
17Version 1.0, 2014-11-28 101Version 1.0, 2014-11-28
18 102
19Initial release. 103Initial release.
20 104
21 105
22* Copyright information: 106* Copyright information:
23 107
24Copyright (C) 2014-2016 Sergey Poznyakoff 108Copyright (C) 2014-2018 Sergey Poznyakoff
25 109
26 Permission is granted to anyone to make or distribute verbatim copies 110 Permission is granted to anyone to make or distribute verbatim copies
27 of this document as received, in any medium, provided that the 111 of this document as received, in any medium, provided that the
28 copyright notice and this permission notice are preserved, 112 copyright notice and this permission notice are preserved,
29 thus giving the recipient permission to redistribute in turn. 113 thus giving the recipient permission to redistribute in turn.
30 114
31 Permission is granted to distribute modified versions 115 Permission is granted to distribute modified versions
32 of this document, or of portions of it, 116 of this document, or of portions of it,
33 under the above conditions, provided also that they 117 under the above conditions, provided also that they
34 carry prominent notices stating who last changed them. 118 carry prominent notices stating who last changed them.
35 119
36Local variables: 120Local variables:
diff --git a/README b/README
index 8e68d6a..1917254 100644
--- a/README
+++ b/README
@@ -1,62 +1,86 @@
1Varnish-mib README 1Varnish-mib README
2Copyright (C) 2014-2015 Sergey Poznyakoff
3See the end of file for copying conditions. 2See the end of file for copying conditions.
4 3
5* Introduction 4* Introduction
6 5
7This file contains brief information about configuring, testing 6This file contains brief information about configuring, testing
8and using Varnish-mib. It is *not* intended as a replacement 7and using Varnish-mib. It is *not* intended as a replacement
9for the documentation, and is provided as a brief reference only. 8for the documentation, and is provided as a brief reference only.
10For a detailed documentation, please see the varnish-mib(8) 9For a detailed documentation, please see the varnish-mib(8)
11manpage. 10manpage.
12 11
12If you are building varnish-mib from Git repository, jump to
13the section GIT SOURCES, below.
14
13* Overview 15* Overview
14 16
15Varnish-mib is a dynamically loadable object module for net-snmp 17Varnish-mib is a dynamically loadable object module for net-snmp
16snmpd, that provides access to Varnish Cache statistics. It uses 18snmpd, that provides access to Varnish Cache statistics. It uses
17MIBs from varnishsnmp project (http://varnishsnmp.sourceforge.net). 19MIBs from varnishsnmp project (http://varnishsnmp.sourceforge.net).
18 20
21This and other versions of Varnish-mib is available for download from
22<http://download.gnu.org.ua/release/varnish-mib>. The following table
23describes the relation between the release number and the version
24of Varnish API version it is written for:
25
26 1.0 and up to 2.0 Varnish 4.0 and 4.1
27 2.0 (this release) Varnish 5.2.0
28 3.0 Varnish 5.2.1
29
19* Installation 30* Installation
20 31
21In order to compile the package you need to have Net-snmp and Varnish 32In order to compile the package you need to have Net-SNMP and Varnish
22installed. Only Varnish 4.x is supported. The installation sequence 33installed. The installation sequence is as usual:
23is as usual:
24 34
25 ./configure [options] 35 ./configure [options]
26 make 36 make
27 make install 37 make install
28 38
29(the last step normally requires root privileges). For generic 39(the last step normally requires root privileges). For generic
30options to configure, please see the file INSTALL. Package-specific 40options to configure, please see the file INSTALL. Package-specific
31options are: 41options are:
32