useddiskspace errors
Posted: Thu Apr 20, 2017 9:11 am
Recently upgraded and moved Nagios core to new server having problems checking useddiskspace on drive letters higher than "D". Under status I get "UNKNOWN" and under status information I get "Usage:" drives "C and D' are working fine here is the code for d and e drives cut from the config file.
# Create a service for monitoring D:\ disk usage
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name ETSQL1
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -d 90
}
# Create a service for monitoring E:\ disk usage
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name ETSQL1
service_description E:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l e -w 80 -e 90
}
# Create a service for monitoring D:\ disk usage
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name ETSQL1
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -d 90
}
# Create a service for monitoring E:\ disk usage
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name ETSQL1
service_description E:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l e -w 80 -e 90
}