diff options
author | Sergey Poznyakoff <gray@nxc.no> | 2018-02-05 20:56:59 +0100 |
---|---|---|
committer | Sergey Poznyakoff <gray@nxc.no> | 2018-02-05 20:56:59 +0100 |
commit | f7677f32b90eea37e54b39a3e26e5437924a2ada (patch) | |
tree | 4112eecd0acecd664e613fd1b66dd177b7ab87ba | |
parent | 027e83b6f5dc6a63ed9c69e534c0b994041df14f (diff) | |
download | varnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.gz varnish-mib-f7677f32b90eea37e54b39a3e26e5437924a2ada.tar.bz2 |
Version 2.0
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | NEWS | 90 | ||||
-rw-r--r-- | README | 34 | ||||
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | lib/VarnishMib/HashTable.pm | 16 | ||||
-rw-r--r-- | lib/VarnishMib/MIBTable.pm | 16 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/VARNISH-MIB.txt | 6 | ||||
-rw-r--r-- | src/auth.c | 2 | ||||
-rw-r--r-- | src/backend.h | 3 | ||||
-rw-r--r-- | src/ban.c | 2 | ||||
-rw-r--r-- | src/belex.l | 17 | ||||
-rw-r--r-- | src/modconf.c | 17 | ||||
-rw-r--r-- | src/varnish-mib.8 | 85 | ||||
-rw-r--r-- | src/vcli.c | 2 |
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 |
@@ -1,36 +1,120 @@ | |||
1 | Varnish-mib NEWS -- history of user-visible changes. 2016-04-27 | 1 | Varnish-mib NEWS -- history of user-visible changes. 2018-02-05 |
2 | Copyright (C) 2014-2016 Sergey Poznyakoff | ||
3 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
4 | 3 | ||
5 | Please send Varnish-mib bug reports to <gray@gnu.org> | 4 | Please send Varnish-mib bug reports to <gray@gnu.org> |
6 | 5 | ||
6 | Version 2.0, 2018-02-05 | ||
7 | |||
8 | This version is written for Varnish 5.2.0. It will definitely not | ||
9 | compile with Varnish 5.2.1 and later. You'll have to use version 3.0 | ||
10 | for that. | ||
11 | |||
12 | Most important changes: | ||
13 | |||
14 | New 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 | |||
87 | Several OIDs have been withdrawn due to changes in the Varnish API. | ||
88 | These are: clientRequests411, clientRequests413, and backendConnUnused. | ||
89 | |||
90 | |||
7 | Version 1.1.90 (Git) | 91 | Version 1.1.90 (Git) |
8 | 92 | ||
9 | * Support for Varnish 4.1 | 93 | * Support for Varnish 4.1 |
10 | 94 | ||
11 | 95 | ||
12 | Version 1.1, 2015-02-25 | 96 | Version 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 | ||
17 | Version 1.0, 2014-11-28 | 101 | Version 1.0, 2014-11-28 |
18 | 102 | ||
19 | Initial release. | 103 | Initial release. |
20 | 104 | ||
21 | 105 | ||
22 | * Copyright information: | 106 | * Copyright information: |
23 | 107 | ||
24 | Copyright (C) 2014-2016 Sergey Poznyakoff | 108 | Copyright (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 | ||
36 | Local variables: | 120 | Local variables: |
@@ -1,62 +1,86 @@ | |||
1 | Varnish-mib README | 1 | Varnish-mib README |
2 | Copyright (C) 2014-2015 Sergey Poznyakoff | ||
3 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
4 | 3 | ||
5 | * Introduction | 4 | * Introduction |
6 | 5 | ||
7 | This file contains brief information about configuring, testing | 6 | This file contains brief information about configuring, testing |
8 | and using Varnish-mib. It is *not* intended as a replacement | 7 | and using Varnish-mib. It is *not* intended as a replacement |
9 | for the documentation, and is provided as a brief reference only. | 8 | for the documentation, and is provided as a brief reference only. |
10 | For a detailed documentation, please see the varnish-mib(8) | 9 | For a detailed documentation, please see the varnish-mib(8) |
11 | manpage. | 10 | manpage. |
12 | 11 | ||
12 | If you are building varnish-mib from Git repository, jump to | ||
13 | the section GIT SOURCES, below. | ||
14 | |||
13 | * Overview | 15 | * Overview |
14 | 16 | ||
15 | Varnish-mib is a dynamically loadable object module for net-snmp | 17 | Varnish-mib is a dynamically loadable object module for net-snmp |
16 | snmpd, that provides access to Varnish Cache statistics. It uses | 18 | snmpd, that provides access to Varnish Cache statistics. It uses |
17 | MIBs from varnishsnmp project (http://varnishsnmp.sourceforge.net). | 19 | MIBs from varnishsnmp project (http://varnishsnmp.sourceforge.net). |
18 | 20 | ||
21 | This and other versions of Varnish-mib is available for download from | ||
22 | <http://download.gnu.org.ua/release/varnish-mib>. The following table | ||
23 | describes the relation between the release number and the version | ||
24 | of 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 | ||
21 | In order to compile the package you need to have Net-snmp and Varnish | 32 | In order to compile the package you need to have Net-SNMP and Varnish |
22 | installed. Only Varnish 4.x is supported. The installation sequence | 33 | installed. The installation sequence is as usual: |
23 | is 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 |
30 | options to configure, please see the file INSTALL. Package-specific | 40 | options to configure, please see the file INSTALL. Package-specific |
31 | options are: | 41 | options are: |
32 |