summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@nxc.no>2018-02-05 19:56:59 (GMT)
committer Sergey Poznyakoff <gray@nxc.no>2018-02-05 19:56:59 (GMT)
commitf7677f32b90eea37e54b39a3e26e5437924a2ada (patch) (unidiff)
tree4112eecd0acecd664e613fd1b66dd177b7ab87ba
parent027e83b6f5dc6a63ed9c69e534c0b994041df14f (diff)
downloadvarnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.gz
varnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.bz2
Version 2.0
Diffstat (more/less context) (ignore whitespace changes)
-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,5 +1,5 @@
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
diff --git a/NEWS b/NEWS
index f12c539..e447533 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,93 @@
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
@@ -21,7 +105,7 @@ Initial release.
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
diff --git a/README b/README
index 8e68d6a..1917254 100644
--- a/README
+++ b/README
@@ -1,5 +1,4 @@
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
@@ -10,17 +9,28 @@ for 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
@@ -40,6 +50,20 @@ $PREFIX/lib/snmp, where $PREFIX stands for the installation prefix.
40Install MIBs (the file VARNISH-MIB.txt in DIR. By default it is 50Install MIBs (the file VARNISH-MIB.txt in DIR. By default it is
41installed in $prefix/share/snmp. 51installed 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
44 68
45Send bug reports and suggestions to <gray@gnu.org> 69Send bug reports and suggestions to <gray@gnu.org>
@@ -47,7 +71,7 @@ Send bug reports and suggestions to <gray@gnu.org>
47 71
48* Copyright information: 72* Copyright information:
49 73
50Copyright (C) 2014 Sergey Poznyakoff 74Copyright (C) 2014-2018 Sergey Poznyakoff
51 75
52 Permission is granted to anyone to make or distribute verbatim copies 76 Permission is granted to anyone to make or distribute verbatim copies
53 of this document as received, in any medium, provided that the 77 of this document as received, in any medium, provided that the
diff --git a/configure.ac b/configure.ac
index 84544b2..917bab5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@
15# along with Varnish-mib. If not, see <http://www.gnu.org/licenses/>. 15# along with Varnish-mib. If not, see <http://www.gnu.org/licenses/>.
16 16
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)
20AM_CONFIG_HEADER(config.h) 20AM_CONFIG_HEADER(config.h)
21AC_CONFIG_AUX_DIR([build-aux]) 21AC_CONFIG_AUX_DIR([build-aux])
@@ -45,17 +45,17 @@ PKG_PROG_PKG_CONFIG
45# Checks for Varnish 45# Checks for Varnish
46PKG_CHECK_MODULES([VARNISHAPI], [varnishapi >= 5.0]) 46PKG_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}
53 53
54v=$($PKG_CONFIG --modversion varnishapi) 54v=$($PKG_CONFIG --modversion varnishapi)
55if test -n "$v"; then 55if test -n "$v"; then
56 save_IFS=$IFS 56 save_IFS=$IFS
57 IFS='.' 57 IFS='.'
58 varnishapi_version $v 58 check_minor_number $v
59 IFS=$save_IFS 59 IFS=$save_IFS
60fi 60fi
61 61
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,3 +1,19 @@
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;
2use strict; 18use strict;
3use warnings; 19use warnings;
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,3 +1,19 @@
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::MIBTable; 17package VarnishMib::MIBTable;
2use strict; 18use strict;
3use warnings; 19use warnings;
diff --git a/src/Makefile.am b/src/Makefile.am
index 55cdb85..5c79dfc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@
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
diff --git a/src/VARNISH-MIB.txt b/src/VARNISH-MIB.txt
index 6b03f21..b7e77f1 100644
--- a/src/VARNISH-MIB.txt
+++ b/src/VARNISH-MIB.txt
@@ -20,14 +20,14 @@ IMPORTS
20 FROM SNMPv2-CONF; 20 FROM SNMPv2-CONF;
21 21
22varnishMIB MODULE-IDENTITY 22varnishMIB MODULE-IDENTITY
23 LAST-UPDATED "201802020845Z" 23 LAST-UPDATED "201802052024Z"
24 ORGANIZATION "Shared Autonomous sYstems" 24 ORGANIZATION "Shared Autonomous sYstems"
25 CONTACT-INFO "Morten Hermanrud <mhe@say.no> 25 CONTACT-INFO "Morten Hermanrud <mhe@say.no>
26 Sergey Poznyakoff <gray@gnu.org> 26 Sergey Poznyakoff <gray@gnu.org>
27 " 27 "
28 DESCRIPTION 28 DESCRIPTION
29 "This MIB module defines objects for Varnish reverse web proxy." 29 "This MIB module defines objects for Varnish reverse web proxy."
30 REVISION "201802020845Z" 30 REVISION "201802052024Z"
31 DESCRIPTION 31 DESCRIPTION
32 "Second revision." 32 "Second revision."
33 ::= { varnish 0 } 33 ::= { varnish 0 }
@@ -854,7 +854,7 @@ objectsPurges OBJECT-TYPE
854 MAX-ACCESS read-only 854 MAX-ACCESS read-only
855 STATUS current 855 STATUS current
856 DESCRIPTION 856 DESCRIPTION
857 "Number of purge operations executed" 857 "Number of purge operations executed."
858 ::= { objects 8 } 858 ::= { objects 8 }
859 859
860objectsObjPurged OBJECT-TYPE 860objectsObjPurged OBJECT-TYPE
diff --git a/src/auth.c b/src/auth.c
index e9abbe4..2ff6aba 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -1,5 +1,5 @@
1/* This file is part of varnish-mib -*- c -*- 1/* This file is part of varnish-mib -*- c -*-
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
diff --git a/src/backend.h b/src/backend.h
index d60f613..b13e644 100644
--- a/src/backend.h
+++ b/src/backend.h
@@ -5,8 +5,7 @@ typedef struct be_string {
5 5
6typedef void (*regfun_t)(be_string_t *, be_string_t *, be_string_t *, void *); 6typedef void (*regfun_t)(be_string_t *, be_string_t *, be_string_t *, void *);
7 7
8void read_defs(const char *str, size_t len, regfun_t regfun, void *d); 8struct vsm;
9void varnish_backend_table_timeout_parser(const char *token, char *line);
10struct VSC_point; 9struct VSC_point;
11void backend_register(char const *name, size_t len, char const *param, 10void backend_register(char const *name, size_t len, char const *param,
12 const struct VSC_point *vpt); 11 const struct VSC_point *vpt);
diff --git a/src/ban.c b/src/ban.c
index 1f4583b..a50b5a3 100644
--- a/src/ban.c
+++ b/src/ban.c
@@ -1,5 +1,5 @@
1/* This file is part of varnish-mib -*- c -*- 1/* This file is part of varnish-mib -*- c -*-
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
diff --git a/src/belex.l b/src/belex.l
index f35f114..bc0bfc0 100644
--- a/src/belex.l
+++ b/src/belex.l
@@ -1,3 +1,20 @@
1/* This file is part of varnish-mib
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*/
17
1%option nounput 18%option nounput
2%option noinput 19%option noinput
3 20
diff --git a/src/modconf.c b/src/modconf.c
index 85b2582..64177c1 100644
--- a/src/modconf.c
+++ b/src/modconf.c
@@ -1,3 +1,20 @@
1/* This file is part of varnish-mib
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*/
17
1#include "varnish_mib.h" 18#include "varnish_mib.h"
2#include <ctype.h> 19#include <ctype.h>
3 20
diff --git a/src/varnish-mib.8 b/src/varnish-mib.8
index 8d86f18..77912af 100644
--- a/src/varnish-mib.8
+++ b/src/varnish-mib.8
@@ -1,5 +1,5 @@
1.\" This file is part of Varnish-mib -*- nroff -*- 1.\" This file is part of Varnish-mib -*- nroff -*-
2.\" Copyright (C) 2014-2016 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
@@ -13,9 +13,9 @@
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
15.\" along with Varnish-mib. If not, see <http://www.gnu.org/licenses/>. 15.\" along with Varnish-mib. If not, see <http://www.gnu.org/licenses/>.
16.TH VARNISH-MIB 8 "February 2, 2018" "varnish-mib" 16.TH VARNISH-MIB 8 "February 5, 2018" "varnish-mib"
17.SH NAME 17.SH NAME
18varnish\-mib \- net-snmp module for obtaining Varnish Cache statistics 18varnish\-mib \- Net-SNMP module for Varnish Cache monitoring
19.SH SYNOPSIS 19.SH SYNOPSIS
20In \fBsnmpd.conf\fR(5): 20In \fBsnmpd.conf\fR(5):
21.PP 21.PP
@@ -27,23 +27,49 @@ that provides access to Varnish Cache statistics. The module is
27loaded into 27loaded into
28.BR snmpd (8) 28.BR snmpd (8)
29as shown above (actual path can of course differ, depending on how 29as shown above (actual path can of course differ, depending on how
30the package was configured). The module is written for Varnish 30the package was configured). This version is written for Varnish
31version \fB5.\fIX\fR. 31\fB5.2.0\fR.
32.PP 32.PP
33The module obtains most of the data using Varnish API, and \fBvarnishd\fR 33The values in the OID branches
34administrative interface. You should make sure that \fBsnmpd\fR is 34.BR client ,
35able to access both data sources. 35.BR total ,
36.BR master ,
37.BR session ,
38.BR threads ", and "
39.B objects
40are obtained from Varnish API.
36.PP 41.PP
37The user \fBsnmpd\fR runs as should be able to read contents of the 42The OID branches
38\fB/var/lib/varnish/\fIHOSTNAME\fB/_.vsm_mgt\fR directory and read 43.BR backend ,
39files located in it. It must also have read permission on the varnish 44.BR bans ", and "
40secret file. 45.B vcl
46are obtained using \fBvarnishd\fR administrative interface (similar
47to
48.BR varnishadm (8)).
49.PP
50To retrieve this information, the module must
51have enough permissions to scan the Varnish management directory and
52read files located in it. This directory is normally named
53\fB/var/lib/varnish/\fIHOSTNAME\fB/_.vsm_mgt\fR, where \fIHOSTNAME\fR
54stands for the server's hostname. Unless
55.BR snmpd (8)
56is run as root, special measures should be undertaken in order to
57grant access rights. For example, if the daemon runs as user
58\fBsnmp\fR, running the following two commands after starting
59\fBvarnishd\fR will do the trick:
60
61.EX
62 setfacl -m u:snmp:rx /var/lib/varnish/$(hostname)/_.vsm_mgt
63 setfacl -m u:snmp:r /var/lib/varnish/$(hostname)/_.vsm_mgt/*
64.EE
65.PP
66
41.SH CONFIGURATION OPTIONS 67.SH CONFIGURATION OPTIONS
42Configuration statements specific to 68Configuration statements specific to
43.B varnish\-mib 69.B varnish\-mib
44must appear in the 70must appear in the
45.B snmpd.conf 71.B snmpd.conf
46file below the 72file, after the
47.B dlmod 73.B dlmod
48statement that loads the module. 74statement that loads the module.
49.PP 75.PP
@@ -64,36 +90,38 @@ Update interval for \fBbackendTable\fR. Default is 5 seconds.
64Sets timeout for I/O operations with Varnish administrative port. 90Sets timeout for I/O operations with Varnish administrative port.
65Default is 5 seconds. 91Default is 5 seconds.
66.PP 92.PP
67The following two statements are not normally needed, since 93The following two statements are not normally needed, but are
68\fBvarnish-mib\fR obtains this information automatically. 94provided for completeness sake:
69.TP 95.TP
70\fBvarnishCLISocket\fR \fIADDRESS\fR[:\fIPORT\fR] 96\fBvarnishCLISocket\fR \fIADDRESS\fR[:\fIPORT\fR]
71Sets the address of Varnish administrative interface 97Sets the address of Varnish administrative interface
72socket. 98socket.
73.TP 99.TP
74\fBvarnishCLISecretFile\fR \fIFILE\fR 100\fBvarnishCLISecretFile\fR \fIFILE\fR
75Pathname of the Varnish secret file. 101Sets the pathname of the Varnish secret file.
76.SH DEBUGGING 102.SH DEBUGGING
77The module defines the following debugging tokens: 103The module defines the following debugging tokens:
78.TP 104.TP
79.B varnish_mib 105.B varnish_mib
80General debugging information. 106Produces general debugging information.
81.TP 107.TP
82.B varnish_mib:ban 108.B varnish_mib:ban
83Debug ban table loading. 109Outputs verbose report about loading th ban table.
84.TP 110.TP
85.B varnish_mib:vcli 111.B varnish_mib:vcli
86Varnish 112Displays additional information regarding varnish
87.B CLI 113.B CLI
88interaction. 114interaction.
89.TP 115.TP
90.B varnish_mib:vcli:transcript 116.B varnish_mib:vcli:transcript
91Enables full transcript of CLI interaction. 117Enables full transcript of varnish CLI session.
92.TP 118.TP
93.B varnish_mib:backend 119.B varnish_mib:backend
94Debug loading the backend information. 120Outputs verbose information about loading the backend information.
95.SH OIDS 121.SH OIDS
96The following OIDs are defined: 122The following OIDs are defined in the
123.B VARNISH-MIB.txt
124file:
97.SS Branch \(dqclient\(dq 125.SS Branch \(dqclient\(dq
98.TP 126.TP
99.B clientAcceptedConnections 127.B clientAcceptedConnections
@@ -122,9 +150,9 @@ A write-only OID. When set, invalidates the cache using the supplied
122value as argument to ban. When read, returns an empty string. E.g., 150value as argument to ban. When read, returns an empty string. E.g.,
123to invalidate caches of all \fBpng\fR images: 151to invalidate caches of all \fBpng\fR images:
124 152
125.EE
126snmpset \fBhostname\fR VARNISH\-MIB::clientBan.0 s 'req.url ~ \(dq\\.png$\(dq'
127.EX 153.EX
154snmpset \fIhostname\fR VARNISH\-MIB::clientBan.0 s 'req.url ~ \(dq\\.png$\(dq'
155.EE
128.SS Branch \(dqbackend\(dq 156.SS Branch \(dqbackend\(dq
129.TP 157.TP
130.B backendConnSuccess 158.B backendConnSuccess
@@ -258,7 +286,8 @@ Number of sessions dropped because session queue was full.
258Number of sessions closed. 286Number of sessions closed.
259.TP 287.TP
260.B sessPipeline 288.B sessPipeline
261Session pipeline. This variable is available only in Varnish version \fR4.0\fR. 289This OID was used in Varnish \fR4.1\fR, but disappeared from version
290\fB5.0\fR.
262.TP 291.TP
263.B sessReadAhead 292.B sessReadAhead
264Session read-ahead. 293Session read-ahead.
@@ -273,8 +302,8 @@ Number of sessions dropped for thread.
273Number of session accept failures. 302Number of session accept failures.
274.TP 303.TP
275.B sessPipeOverflow 304.B sessPipeOverflow
276Number of session pipe overflows. This variable is available only in 305This OID was used in Varnish \fR4.1\fR, but disappeared in version
277Varnish version \fR4.0\fR. 306\fB5.0\fR.
278.SS Branch \(dqthreads\(dq 307.SS Branch \(dqthreads\(dq
279.TP 308.TP
280.B threadsPools 309.B threadsPools
@@ -367,7 +396,7 @@ of \fBbansTotal\fR variable. The default update interval is 60
367seconds. It can be configured in the \fBsnmpd.conf\fR file 396seconds. It can be configured in the \fBsnmpd.conf\fR file
368(see the \fBvarnishBanTableTimeout\fR statement above). 397(see the \fBvarnishBanTableTimeout\fR statement above).
369.SS Branch \(dqagent\(dq 398.SS Branch \(dqagent\(dq
370The \fBagent\fR branch is reserved for OIDs for 399The \fBagent\fR branch is reserved for
371implementation-specific management. It is not used currently. 400implementation-specific management. It is not used currently.
372.SH NOTES 401.SH NOTES
373The following OIDs were used in Varnish 4. They are no longer 402The following OIDs were used in Varnish 4. They are no longer
diff --git a/src/vcli.c b/src/vcli.c
index 7d6c2b9..94f0eef 100644
--- a/src/vcli.c
+++ b/src/vcli.c
@@ -1,5 +1,5 @@
1/* This file is part of varnish-mib -*- c -*- 1/* This file is part of varnish-mib -*- c -*-
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

Return to:

Send suggestions and report system problems to the System administrator.