Page 1 of 2

Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Tue Oct 20, 2015 1:15 pm
by dlukinski
Version 5.2.0
SNMP checking Windows 2008 R2

Receive "Unknown storage : ^X: : ERROR" (where x is the drive) in GUI.
- same service used with and works for another two servers (same drive) / created in CCM
- "test check command" against the same server and drive actually works and produces correct result
- other SNMP checks(CPU, RAM, another drive) also work for this server

Why would Nagios XI error in this case and what to check for?

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Tue Oct 20, 2015 5:02 pm
by lmiltchev
Go to the CCM->Services-><problem service>->View Text Config and copy/paste the config on the forum.

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Thu Oct 22, 2015 12:13 pm
by dlukinski
lmiltchev wrote:Go to the CCM->Services-><problem service>->View Text Config and copy/paste the config on the forum.
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.0
# Date: 2015-10-27 08:36:12
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
host_name fihp-rep02.res.kcg.global,fihp-rep03.res.kcg.global,sghp-sin-fs01.res.kcg.global
service_description DISK H Usage 93 warning / 95 critical
use xiwizard_windowssnmp_storage
check_command check_xi_service_snmp_win_storage! -C HP_private --v2c -m ^H: -w 93 -c 95 -f!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 10
notification_period xi_timeperiod_24x7
_xiwizard windowssnmp
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Thu Oct 22, 2015 3:25 pm
by lmiltchev
I am a bit confused - this is NOT a SNMP check. Are you sure you are looking at the correct config? The "Drive H: Disk Usage 90 Warning / 95 Critical" service was created by the "Windows Server" monitoring wizard. This check uses NSClient++ agent. Do you see the correct output when you run the following command from the command line?

Code: Select all

/usr/local/nagios/libexec/check_nt -H cnhp-sccmps01.res.kcg.global -s "nagiosxi162" -p 12489 -v USEDDISKSPACE -l H -w 90 -c 95

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Tue Oct 27, 2015 7:36 am
by dlukinski
lmiltchev wrote:I am a bit confused - this is NOT a SNMP check. Are you sure you are looking at the correct config? The "Drive H: Disk Usage 90 Warning / 95 Critical" service was created by the "Windows Server" monitoring wizard. This check uses NSClient++ agent. Do you see the correct output when you run the following command from the command line?

Code: Select all

/usr/local/nagios/libexec/check_nt -H cnhp-sccmps01.res.kcg.global -s "nagiosxi162" -p 12489 -v USEDDISKSPACE -l H -w 90 -c 95
My bad as I have it both ways: copy/paste problem.
Now there is a right one (one that was always assigned and attempted)

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Tue Oct 27, 2015 4:48 pm
by rkennedy
Just to verify, from the windows machine can you please run this in an elevated prompt -
fsutil fsinfo drives

Additionally, Is this a physical partition or a mapped drive? How large is the drive X: partition?

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Fri Oct 30, 2015 12:50 pm
by dlukinski
rkennedy wrote:Just to verify, from the windows machine can you please run this in an elevated prompt -
fsutil fsinfo drives

Additionally, Is this a physical partition or a mapped drive? How large is the drive X: partition?
This is an H drive (listed after fsutil command) / 1.46 TB in size (SAN LUN)
- we monitor many servers with supposedly same type of drive and no issues.

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Fri Oct 30, 2015 2:12 pm
by ssax
Is that ^ before the H: supposed to be there or is it a copy paste error?

check_command check_xi_service_snmp_win_storage! -C HP_private --v2c -m ^H: -w 93 -c 95 -f!!!!!!!

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Fri Oct 30, 2015 2:55 pm
by dlukinski
ssax wrote:Is that ^ before the H: supposed to be there or is it a copy paste error?

check_command check_xi_service_snmp_win_storage! -C HP_private --v2c -m ^H: -w 93 -c 95 -f!!!!!!!
This is how XI SNMP Wizard generates this command:
-C HP_private --v2c -m ^G: -w 93 -c 95 -f
- another working example / so is H is working for all servers but that one in question

Re: Unknown storage : ^x: : ERROR in SNMP for Windows

Posted: Mon Nov 02, 2015 2:49 pm
by jdalrymple
Let's see the raw command line output:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage.pl -H <winhost> -C <community string> --v2c -m ^X -w 93 -c 95 -f