Home Directory Plugins Operating Systems Windows Check Disk Win2k3 - SNMP

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Disk Win2k3 - SNMP

Rating
3 votes
Favoured:
0
Hits
106462
Files:
FileDescription
check_disk_snmpCheck Disk Win2k3 - SNMP
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Plugin Nagios via SNMP to check the use of disk in Windows 2003 Server
Plugin via SNMP to check the use of disk in Windows 2003 Server

MIBs used: HOST-RESOURCES-MIB:: hrStorageSize, HOST-RESOURCES-MIB:: hrStorageUsed, HOST-RESOURCES-MIB:: hrStorageAllocationUnits.

Depends: net-snmp and net-snmp-utils

Usage: check_disk_snmp IP COMMUNITY DISK_MIB WARNING CRITICAL

IP - IP of Host

COMMUNITY of SNMP - public, private e etc...

DISK_MIB - information from the command snmpwalk -v 1 -c communty IP, for the MIB HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:. The DISK_MIB is the last number, after the "."

WARNING - Value of Warn in percentage, there is no need to insert "%"

CRITICAL - Value of Crit in percentage, there is no need to insert "%"



Example: check_disk_snmp 192.168.1.1 public 1 80 90
Cheking the C: of Windows

Exemple 2: check_disk_snmp 192.168.1.1 public 2 80 90
Cheking the D: of Windows

**** Note the value of changing DISK_MIB ***



Example Nagios Configuration:

#### commands.cfg #####

# SNMP - Check Disk
define command{
command_name check_disk_snmp
command_line /usr/local/nagios/libexec/check_disk_snmp $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

##### services.cfg #####

# Check D:
define service{
use generic-service
host_name Server-2k3
service_description Status D:
check_command check_disk_snmp!public!2!80!90
}

# Check C:
define service{
use generic-service
host_name Server-2k3
service_description Status C:
check_command check_disk_snmp!public!1!80!90
}


André Luiz Facina
Reviews (1)
Hi..

I applied to windows 7 but it gave me the error;

CRITICAL hrStorageAllocationUnits.1: Unknown Object Identifier (Sub-id not found: (top) -> hrStorageAllocationUnits)