summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2014-11-24 16:55:34 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2014-11-24 16:55:34 (GMT)
commit2301256beda8480560c6e8053dc209989c8afeb8 (patch) (side-by-side diff)
tree4948f1a759e09eba9eac0860cc13d2dd7b0e1e6d
parent02b329d67dd593ddc8d41b52372fc7beb8c79f70 (diff)
downloadvarnish-mib-2301256beda8480560c6e8053dc209989c8afeb8.tar.gz
varnish-mib-2301256beda8480560c6e8053dc209989c8afeb8.tar.bz2
Add MIB subtree for bans
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/VARNISH-MIB.txt135
-rw-r--r--src/varnish_mib.mib2c18
2 files changed, 150 insertions, 3 deletions
diff --git a/src/VARNISH-MIB.txt b/src/VARNISH-MIB.txt
index eff533b..cde935a 100644
--- a/src/VARNISH-MIB.txt
+++ b/src/VARNISH-MIB.txt
@@ -15,12 +15,12 @@ IMPORTS
FROM SNMPv2-CONF;
varnishMIB MODULE-IDENTITY
- LAST-UPDATED "201411241627Z"
+ LAST-UPDATED "201411241848Z"
ORGANIZATION "Shared Autonomous sYstems"
CONTACT-INFO "mhe@say.no"
DESCRIPTION
"This MIB module defines objects for Varnish reverse web proxy."
- REVISION "201411241627Z"
+ REVISION "201411241848Z"
DESCRIPTION
"Initial version."
::= { varnish 0 }
@@ -32,6 +32,7 @@ total OBJECT IDENTIFIER ::= { varnish 3 }
master OBJECT IDENTIFIER ::= { varnish 4 }
session OBJECT IDENTIFIER ::= { varnish 5 }
threads OBJECT IDENTIFIER ::= { varnish 6 }
+bans OBJECT IDENTIFIER ::= { varnish 7 }
clientAcceptedConnections OBJECT-TYPE
SYNTAX Counter64
@@ -398,6 +399,136 @@ threadsQueueLength OBJECT-TYPE
"Length of session queue waiting for threads"
::= { threads 7 }
+bansTotal OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Total number of bans"
+ ::= { bans 1 }
+
+bansCompleted OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Count of completed bans"
+ ::= { bans 2 }
+
+bansObj OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans using obj.*"
+ ::= { bans 3 }
+
+bansReq OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans using req.*"
+ ::= { bans 4 }
+
+bansAdded OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans added"
+ ::= { bans 5 }
+
+bansDeleted OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans deleted"
+ ::= { bans 6 }
+
+bansTested OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans tested against objects (lookup)"
+ ::= { bans 7 }
+
+bansObjectsKilled OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of objects killed by bans (lookup)"
+ ::= { bans 8 }
+
+
+bansLurkerTested OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bans tested against objects (lurker)"
+ ::= { bans 9 }
+
+bansTestTested OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of ban tests tested against objects (lookup)"
+ ::= { bans 10 }
+
+bansLurkerTestTested OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of ban tests tested against objects (lurker)"
+ ::= { bans 11 }
+
+bansLurkerObjKilled OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of objects killed by bans (lurker)"
+ ::= { bans 12 }
+
+bansDups OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of ans superseded by other bans"
+ ::= { bans 13 }
+
+bansLurkerContention OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of times lurker gave way for lookup"
+ ::= { bans 14 }
+
+bansPersistedBytes OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of bytes used by the persisted ban lists"
+ ::= { bans 15 }
+
+bansPersistedFragmentation OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Extra bytes in persisted ban lists due to fragmentation"
+ ::= { bans 17 }
+
+
--
-- Groups and Compliance
--
diff --git a/src/varnish_mib.mib2c b/src/varnish_mib.mib2c
index 6da2487..9825728 100644
--- a/src/varnish_mib.mib2c
+++ b/src/varnish_mib.mib2c
@@ -101,8 +101,24 @@ $vars{'varnish_translate'} = sub {
threadsCreated => [ 'MAIN', 'threads_created'],
threadsDestroyed => [ 'MAIN', 'threads_destroyed'],
threadsFailed => [ 'MAIN', 'threads_failed'],
- threadsQueueLength => [ 'MAIN', 'thread_queue_len']
+ threadsQueueLength => [ 'MAIN', 'thread_queue_len'],
+ bansTotal => [ 'MAIN', 'bans' ],
+ bansCompleted => [ 'MAIN', 'bans_completed' ],
+ bansObj => [ 'MAIN', 'bans_obj' ],
+ bansReq => [ 'MAIN', 'bans_req' ],
+ bansAdded => [ 'MAIN', 'bans_added' ],
+ bansDeleted => [ 'MAIN', 'bans_deleted' ],
+ bansTested => [ 'MAIN', 'bans_tested' ],
+ bansObjectsKilled => [ 'MAIN', 'bans_obj_killed' ],
+ bansLurkerTested => [ 'MAIN', 'bans_lurker_tested' ],
+ bansTestTested => [ 'MAIN', 'bans_tests_tested' ],
+ bansLurkerTestTested => [ 'MAIN', 'bans_lurker_tests_tested' ],
+ bansLurkerObjKilled => [ 'MAIN', 'bans_lurker_obj_killed' ],
+ bansDups => [ 'MAIN', 'bans_dups' ],
+ bansLurkerContention => [ 'MAIN', 'bans_lurker_contention' ],
+ bansPersistedBytes => [ 'MAIN', 'bans_persisted_bytes' ],
+ bansPersistedFragmentation => [ 'MAIN', 'bans_persisted_fragmentation' ],
);

Return to:

Send suggestions and report system problems to the System administrator.