summaryrefslogtreecommitdiffabout
path: root/src
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) (unidiff)
tree4948f1a759e09eba9eac0860cc13d2dd7b0e1e6d /src
parent02b329d67dd593ddc8d41b52372fc7beb8c79f70 (diff)
downloadvarnish-mib-2301256beda8480560c6e8053dc209989c8afeb8.tar.gz
varnish-mib-2301256beda8480560c6e8053dc209989c8afeb8.tar.bz2
Add MIB subtree for bans
Diffstat (limited to 'src') (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
15 FROM SNMPv2-CONF; 15 FROM SNMPv2-CONF;
16 16
17varnishMIB MODULE-IDENTITY 17varnishMIB MODULE-IDENTITY
18 LAST-UPDATED "201411241627Z" 18 LAST-UPDATED "201411241848Z"
19 ORGANIZATION "Shared Autonomous sYstems" 19 ORGANIZATION "Shared Autonomous sYstems"
20 CONTACT-INFO "mhe@say.no" 20 CONTACT-INFO "mhe@say.no"
21 DESCRIPTION 21 DESCRIPTION
22 "This MIB module defines objects for Varnish reverse web proxy." 22 "This MIB module defines objects for Varnish reverse web proxy."
23 REVISION "201411241627Z" 23 REVISION "201411241848Z"
24 DESCRIPTION 24 DESCRIPTION
25 "Initial version." 25 "Initial version."
26 ::= { varnish 0 } 26 ::= { varnish 0 }
@@ -32,6 +32,7 @@ total OBJECT IDENTIFIER ::= { varnish 3 }
32 master OBJECT IDENTIFIER::= { varnish 4 } 32 master OBJECT IDENTIFIER::= { varnish 4 }
33 session OBJECT IDENTIFIER::= { varnish 5 } 33 session OBJECT IDENTIFIER::= { varnish 5 }
34 threads OBJECT IDENTIFIER::= { varnish 6 } 34 threads OBJECT IDENTIFIER::= { varnish 6 }
35 bans OBJECT IDENTIFIER::= { varnish 7 }
35 36
36clientAcceptedConnections OBJECT-TYPE 37clientAcceptedConnections OBJECT-TYPE
37 SYNTAX Counter64 38 SYNTAX Counter64
@@ -398,6 +399,136 @@ threadsQueueLength OBJECT-TYPE
398 "Length of session queue waiting for threads" 399 "Length of session queue waiting for threads"
399 ::= { threads 7 } 400 ::= { threads 7 }
400 401
402bansTotal OBJECT-TYPE
403 SYNTAX Counter64
404 MAX-ACCESS read-only
405 STATUS current
406 DESCRIPTION
407 "Total number of bans"
408 ::= { bans 1 }
409
410bansCompleted OBJECT-TYPE
411 SYNTAX Counter64
412 MAX-ACCESS read-only
413 STATUS current
414 DESCRIPTION
415 "Count of completed bans"
416 ::= { bans 2 }
417
418bansObj OBJECT-TYPE
419 SYNTAX Counter64
420 MAX-ACCESS read-only
421 STATUS current
422 DESCRIPTION
423 "Number of bans using obj.*"
424 ::= { bans 3 }
425
426bansReq OBJECT-TYPE
427 SYNTAX Counter64
428 MAX-ACCESS read-only
429 STATUS current
430 DESCRIPTION
431 "Number of bans using req.*"
432 ::= { bans 4 }
433
434bansAdded OBJECT-TYPE
435 SYNTAX Counter64
436 MAX-ACCESS read-only
437 STATUS current
438 DESCRIPTION
439 "Number of bans added"
440 ::= { bans 5 }
441
442bansDeleted OBJECT-TYPE
443 SYNTAX Counter64
444 MAX-ACCESS read-only
445 STATUS current
446 DESCRIPTION
447 "Number of bans deleted"
448 ::= { bans 6 }
449
450bansTested OBJECT-TYPE
451 SYNTAX Counter64
452 MAX-ACCESS read-only
453 STATUS current
454 DESCRIPTION
455 "Number of bans tested against objects (lookup)"
456 ::= { bans 7 }
457
458bansObjectsKilled OBJECT-TYPE
459 SYNTAX Counter64
460 MAX-ACCESS read-only
461 STATUS current
462 DESCRIPTION
463 "Number of objects killed by bans (lookup)"
464 ::= { bans 8 }
465
466
467bansLurkerTested OBJECT-TYPE
468 SYNTAX Counter64
469 MAX-ACCESS read-only
470 STATUS current
471 DESCRIPTION
472 "Number of bans tested against objects (lurker)"
473 ::= { bans 9 }
474
475bansTestTested OBJECT-TYPE
476 SYNTAX Counter64
477 MAX-ACCESS read-only
478 STATUS current
479 DESCRIPTION
480 "Number of ban tests tested against objects (lookup)"
481 ::= { bans 10 }
482
483bansLurkerTestTested OBJECT-TYPE
484 SYNTAX Counter64
485 MAX-ACCESS read-only
486 STATUS current
487 DESCRIPTION
488 "Number of ban tests tested against objects (lurker)"
489 ::= { bans 11 }
490
491bansLurkerObjKilled OBJECT-TYPE
492 SYNTAX Counter64
493 MAX-ACCESS read-only
494 STATUS current
495 DESCRIPTION
496 "Number of objects killed by bans (lurker)"
497 ::= { bans 12 }
498
499bansDups OBJECT-TYPE
500 SYNTAX Counter64
501 MAX-ACCESS read-only
502 STATUS current
503 DESCRIPTION
504 "Number of ans superseded by other bans"
505 ::= { bans 13 }
506
507bansLurkerContention OBJECT-TYPE
508 SYNTAX Counter64
509 MAX-ACCESS read-only
510 STATUS current
511 DESCRIPTION
512 "Number of times lurker gave way for lookup"
513 ::= { bans 14 }
514
515bansPersistedBytes OBJECT-TYPE
516 SYNTAX Counter64
517 MAX-ACCESS read-only
518 STATUS current
519 DESCRIPTION
520 "Number of bytes used by the persisted ban lists"
521 ::= { bans 15 }
522
523bansPersistedFragmentation OBJECT-TYPE
524 SYNTAX Counter64
525 MAX-ACCESS read-only
526 STATUS current
527 DESCRIPTION
528 "Extra bytes in persisted ban lists due to fragmentation"
529 ::= { bans 17 }
530
531
401-- 532--
402-- Groups and Compliance 533-- Groups and Compliance
403-- 534--
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 {
101 threadsCreated => [ 'MAIN', 'threads_created'], 101 threadsCreated => [ 'MAIN', 'threads_created'],
102 threadsDestroyed => [ 'MAIN', 'threads_destroyed'], 102 threadsDestroyed => [ 'MAIN', 'threads_destroyed'],
103 threadsFailed => [ 'MAIN', 'threads_failed'], 103 threadsFailed => [ 'MAIN', 'threads_failed'],
104 threadsQueueLength => [ 'MAIN', 'thread_queue_len'] 104 threadsQueueLength => [ 'MAIN', 'thread_queue_len'],
105 105
106 bansTotal => [ 'MAIN', 'bans' ],
107 bansCompleted => [ 'MAIN', 'bans_completed' ],
108 bansObj => [ 'MAIN', 'bans_obj' ],
109 bansReq => [ 'MAIN', 'bans_req' ],
110 bansAdded => [ 'MAIN', 'bans_added' ],
111 bansDeleted => [ 'MAIN', 'bans_deleted' ],
112 bansTested => [ 'MAIN', 'bans_tested' ],
113 bansObjectsKilled => [ 'MAIN', 'bans_obj_killed' ],
114 bansLurkerTested => [ 'MAIN', 'bans_lurker_tested' ],
115 bansTestTested => [ 'MAIN', 'bans_tests_tested' ],
116 bansLurkerTestTested => [ 'MAIN', 'bans_lurker_tests_tested' ],
117 bansLurkerObjKilled => [ 'MAIN', 'bans_lurker_obj_killed' ],
118 bansDups => [ 'MAIN', 'bans_dups' ],
119 bansLurkerContention => [ 'MAIN', 'bans_lurker_contention' ],
120 bansPersistedBytes => [ 'MAIN', 'bans_persisted_bytes' ],
121 bansPersistedFragmentation => [ 'MAIN', 'bans_persisted_fragmentation' ],
106 122
107 ); 123 );
108 124

Return to:

Send suggestions and report system problems to the System administrator.