Diskspace monitoring using SNMP
Jeremy Kister
argus-02 at jeremykister.com
Tue Jul 22 09:50:36 EDT 2008
On 7/22/2008 7:12 AM, Scott Hiemstra wrote:
> Does anyone use this information for storage monitoring instead of the
> snippet additions to snmpd.conf using df? Do you have a config sample?
because you want a percent, you'll have to either tell argus how big your
disk is or else you can tell it to ask the server how big the disk is.
asking the server how big the disk is seems silly, as argus will have to
keep asking and the answer will rarely change.
this should work - but not tested:
Group "machine" {
hostname: machine.example.com
Service UDP/SNMP {
# data for behind the scenes
hidden: yes
oid: .1.3.6.1.2.1.25.2.3.1.6.2
uname: disk_used_c
}
Service Compute {
# n.b. the 10000000000, below, is total disk size in bytes
expr: ( %{Top:Servers:machine:disk_used_c} / 10000000000 ) * 100
gr_range: 0-100
ylabel: percent used
graph: yes
label: disk usage on C:
uname: disk_usage_c
maxvalue: 90
messagedn: disk usage percent at %v on %o{ip::hostname} C:
messageup: disk usage better on %o{ip::hostname} C:
}
}
--
Jeremy Kister
http://jeremy.kister.net./
More information about the Arguslist
mailing list