aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,3 +1,3 @@
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#
diff --git a/NEWS b/NEWS
index f12c539..e447533 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,2 @@
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.
@@ -6,2 +5,87 @@ Please 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)
@@ -23,3 +107,3 @@ Initial release.
23 107
24Copyright (C) 2014-2016 Sergey Poznyakoff 108Copyright (C) 2014-2018 Sergey Poznyakoff
25 109
diff --git a/README b/README
index 8e68d6a..1917254 100644
--- a/README
+++ b/README
@@ -1,3 +1,2 @@
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.
@@ -12,2 +11,5 @@ manpage.
12 11
12If you are building varnish-mib from Git repository, jump to
13the section GIT SOURCES, below.
14
13* Overview 15* Overview
@@ -18,7 +20,15 @@ MIBs 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
@@ -42,2 +52,16 @@ installed in $prefix/share/snmp.
42 52
53* GIT SOURCES
54
55If you cloned the sources from GIT, you will need the following
56additional tools in order to bootstrap the package:
57
58 + Perl
59 + mib2c
60 + Perl module Inline::C
61 + Flex
62
63Make sure to check out the branch corresponding to the version of
64Varnish you are using. Run ./bootstrap. Then, proceed as discussed
65above.
66
43* Bug reporting 67* Bug reporting
@@ -49,3 +73,3 @@ Send bug reports and suggestions to <gray@gnu.org>
49 73
50Copyright (C) 2014 Sergey Poznyakoff 74Copyright (C) 2014-2018 Sergey Poznyakoff
51 75
diff --git a/configure.ac b/configure.ac
index 84544b2..917bab5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,3 +17,3 @@
17AC_PREREQ(2.69) 17AC_PREREQ(2.69)
18AC_INIT([varnish-mib], 1.1.90, [gray@gnu.org]) 18AC_INIT([varnish-mib], 2.0, [gray@gnu.org])
19AC_CONFIG_SRCDIR(src/varnish_mib.mib2c) 19AC_CONFIG_SRCDIR(src/varnish_mib.mib2c)
@@ -47,6 +47,6 @@ PKG_CHECK_MODULES([VARNISHAPI], [varnishapi >= 5.0])
47 47
48varnishapi_version() { 48check_minor_number() {
49 AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$1],[Varnish API major version number]) 49 if [ "$2" -gt 1 ]; then
50 AC_DEFINE_UNQUOTED([VARNISHAPI_MINOR],[$2],[Varnish API minor version number]) 50 AC_MSG_ERROR([Unsupported Varnish API version; please try varnish_mib 3.0 or newer])
51 AC_DEFINE_UNQUOTED([VARNISHAPI_PATCH],[$3],[Varnish API patchlevel]) 51 fi
52} 52}
@@ -57,3 +57,3 @@ if test -n "$v"; then
57 IFS='.' 57 IFS='.'
58 varnishapi_version $v 58 check_minor_number $v
59 IFS=$save_IFS 59 IFS=$save_IFS
diff --git a/lib/VarnishMib/HashTable.pm b/lib/VarnishMib/HashTable.pm
index 1faef96..00224ac 100644
--- a/lib/VarnishMib/HashTable.pm
+++ b/lib/VarnishMib/HashTable.pm
@@ -1 +1,17 @@
1# This file is part of varnish-mib -*- automake -*-
2# Copyright (C) 2018 Sergey Poznyakoff
3#
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
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# varnish-mib is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with varnish-mib. If not, see <http://www.gnu.org/licenses/>.
16
1package VarnishMib::HashTable; 17package VarnishMib::HashTable;
diff --git a/lib/VarnishMib/MIBTable.pm b/lib/VarnishMib/MIBTable.pm
index 6aa959f..da0ca19 100644
--- a/lib/VarnishMib/MIBTable.pm
+++ b/lib/VarnishMib/MIBTable.pm
@@ -1 +1,17 @@
1# This file is part of varnish-mib -*- automake -*-
2# Copyright (C) 2018 Sergey Poznyakoff
3#
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
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# varnish-mib is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with varnish-mi