For When You Can't Have The Real Thing
[ start | index | login ]
start > nagios > check_disk_snmp

check_disk_snmp

Created by dave. Last edited by dave, 11 years and 113 days ago. Viewed 2,976 times. #4
[diff] [history] [edit] [rdf]
labels
attachments
check_disk_snmp (3976)
check_diskw_snmp (3858)
(28 November 2012)

check_disk_snmp
check_diskw_snmp

Check a given system via snmp v1; report if the passed filesystem has less than WARN or CRIT levels of space free.

Versions are supplied for Linux and Windows systems.

It requires the net-snmp command-line utilities.

This is based on >>check_hd which didn't do exactly what I wanted.

macros.m4 definition:

define(`DODISKSNMP',`define service{
    use                 generic-service
    host_name           $1
    service_description SPACE-$5
    check_command       check_disk_snmp!$2!$3!$4!$5
    normal_check_interval 5
} ')dnl
define(`DODISKWSNMP',`define service{
    use                 generic-service
    host_name           $1
    service_description SPACE-$5
    check_command       check_diskw_snmp!$2!$3!$4!$5
    normal_check_interval 5
} ')dnl

sample.m4 use:

DODISKSNMP(`gw-yum',`public',`90',`95',`/')
DODISKWSNMP(`gw-ad01',`public',`90',`95',`C')
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt