From ec0d36ee55709f1df76f977823722a4b53cf27ed Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 3 May 2008 02:36:31 +0000 Subject: A whole bunch of changes including: * Measure disk space * Support mulitple IPs per jail. --- doc/JAILS-MIB.txt | 14 ++++++++++++++ doc/bsnmp-jails.8 | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/JAILS-MIB.txt b/doc/JAILS-MIB.txt index f5fa26c..6fac74f 100644 --- a/doc/JAILS-MIB.txt +++ b/doc/JAILS-MIB.txt @@ -122,4 +122,18 @@ jailProcesses OBJECT-TYPE DESCRIPTION "Number of processes running in this jail." ::= { jailEntry 20 } +jailDiskSpace OBJECT-TYPE + SYNTAX Counter64 + MAX-ACCESS read-only + STATUS current + DESCRIPTION "Amount of disk space taken by this jail. Zero means unknown." + ::= { jailEntry 30 } + +jailDiskFiles OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS read-only + STATUS current + DESCRIPTION "Number of files (inodes) in this jail. Zero means unknown." + ::= { jailEntry 31 } + END diff --git a/doc/bsnmp-jails.8 b/doc/bsnmp-jails.8 index 0cd5e07..daaf2db 100644 --- a/doc/bsnmp-jails.8 +++ b/doc/bsnmp-jails.8 @@ -79,9 +79,12 @@ The number of processes running in the jail. .It Ar jails.jailNetworkFilter A tcpdump style filter for the network traffic. Only matched traffic is counted in the jail statistics. -.It Ar jails.jailRefreshRate +.It Ar jails.jailRefreshInterval The interval (in SNMP time ticks) between refreshing the jail process statistics and checking which jails are running. +.It Ar jails.jailMeasureInterval +The interval (in SNMP time ticks) between measuring the amount of +files and disk space used by the jail. .El .Sh OPTIONS To activate the @@ -101,6 +104,7 @@ The following would be added to begemotSnmpdModulePath."jails" = "/usr/local/lib/snmp_jails.so" %jails jailNetworkFilter = "not net 10.0.0.0/8" +jailMeasureInterval = 360000 .Ed .Sh SEE ALSO .Xr bsnmpd 1, -- cgit v1.2.3