aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
@@ -12,29 +12,30 @@ IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises, Counter64, TimeTicks
FROM SNMPv2-SMI
OBJECT-GROUP, MODULE-COMPLIANCE
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 }
varnish OBJECT IDENTIFIER ::= { enterprises 33043 6 1 }
client OBJECT IDENTIFIER ::= { varnish 1 }
backend OBJECT IDENTIFIER ::= { varnish 2 }
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
MAX-ACCESS read-only
STATUS current
DESCRIPTION
@@ -395,12 +396,142 @@ threadsQueueLength OBJECT-TYPE
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"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
--
varnishConfs OBJECT IDENTIFIER ::= { varnish 100 }
varnishGroups OBJECT IDENTIFIER ::= { varnishConfs 1 }
varnishCompl OBJECT IDENTIFIER ::= { varnishConfs 2 }
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
@@ -98,14 +98,30 @@ $vars{'varnish_translate'} = sub {
threadsPools => [ 'MAIN', 'pools'],
threadsTotal => [ 'MAIN', 'threads'],
threadsLimitHits => [ 'MAIN', 'threads_limited'],
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' ],
);
my $r = $trans{$name};
if (!defined($r)) {
print STDERR "no translation for $name!\n";

Return to:

Send suggestions and report system problems to the System administrator.