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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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?
Last edited by dlukinski on Thu Oct 22, 2015 12:13 pm, edited 2 times in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Go to the CCM->Services-><problem service>->View Text Config and copy/paste the config on the forum.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
#
###############################################################################
Last edited by dlukinski on Tue Oct 27, 2015 7:35 am, edited 1 time in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post 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!!!!!!!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

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

Post 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
Locked