Monitoring Windows Mount Points
Monitoring Windows Mount Points
We have several DB servers that have mount points with vaious volumes, and I need to be able to monitor them similar to drives! I have nsclienttpp on the windows servers (this is working for all other checks).
I tried commands similar to this:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=H:\ FilterType=REMOTE ShowAll MaxWarnUsed=90%
but the error is:
UNKNOWN: Could not get free space for: H: FilterType=REMOTE H: FilterType=REMOTE reason: 3: The system cannot find the path specified.
Any insight on how to accomplish this would be helpful
Redhat 5x
NagiosXI
nsclientpp
I tried commands similar to this:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=H:\ FilterType=REMOTE ShowAll MaxWarnUsed=90%
but the error is:
UNKNOWN: Could not get free space for: H: FilterType=REMOTE H: FilterType=REMOTE reason: 3: The system cannot find the path specified.
Any insight on how to accomplish this would be helpful
Redhat 5x
NagiosXI
nsclientpp
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitoring Windows Mount Points
Drive letters are user specific mapping, try the UNC path without the filter
Try this
Try this
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a 'Drive=\\<SERVER>\<SHARENAME> ShowAll MaxWarnUsed=90%'Re: Monitoring Windows Mount Points
Im just not getting it too work with the following other nrpe checks are still working
command used
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a 'Drive=\\dbw049\data01 ShowAll MaxWarnUsed=90 MaxCritUsed=95'
results
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
command used
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a 'Drive=\\dbw049\data01 ShowAll MaxWarnUsed=90 MaxCritUsed=95'
results
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Re: Monitoring Windows Mount Points
What does the log say?
Can you try using this command and see if this is going to work?
Can you try using this command and see if this is going to work?
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=\\\\dbw049\\data01\\ ShowAll MaxWarnUsed=90% MaxCritUsed=95%Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring Windows Mount Points
This is from the log
2012-04-18 19:07:31: error:.\NRPEListener.cpp:374: Request arguments contained illegal metachars!
2012-04-18 19:07:31: error:.\NRPEListener.cpp:336: NRPEException: Request command contained illegal metachars
2012-04-18 19:07:31: error:.\NRPEListener.cpp:374: Request arguments contained illegal metachars!
2012-04-18 19:07:31: error:.\NRPEListener.cpp:336: NRPEException: Request command contained illegal metachars
Re: Monitoring Windows Mount Points
Try editing the NSC.ini file so that you will have:
[/code]
After this, restart the nsclient++ service:
From DOS Command Prompt:
See if this is going to make a difference.
Code: Select all
[code];# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_meta_chars=1After this, restart the nsclient++ service:
From DOS Command Prompt:
Code: Select all
net stop nsclientpp
net start nsclientppBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring Windows Mount Points
reults are as follows
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
from the log file
2012-04-23 14:17:17: error:.\NRPEListener.cpp:374: Request arguments contained illegal metachars!
2012-04-23 14:17:17: error:.\NRPEListener.cpp:336: NRPEException: Request command contained illegal metachars!
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
from the log file
2012-04-23 14:17:17: error:.\NRPEListener.cpp:374: Request arguments contained illegal metachars!
2012-04-23 14:17:17: error:.\NRPEListener.cpp:336: NRPEException: Request command contained illegal metachars!
Re: Monitoring Windows Mount Points
I just noticed that my previous post didn't print out correctly - sorry about that. In the NSC.ini file, you should have:
Then you have to restart nsclient++ service.
Code: Select all
;# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_meta_chars=1Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring Windows Mount Points
ok first mistake I didnt change the 0 to 1 for meta data
recycled the service
entries from the log file
2012-04-23 15:04:20: message:CACHE.\NSClient++.cpp:370: Attempting to start NSCLient++ - 0.3.5.1 2008-09-24
2012-04-23 15:04:20: message:CACHE.\FileLogger.cpp:93: Log path is: C:\Program Files (x86)\NSClient++\\nsclient.log
2012-04-23 15:04:20: message:.\NSClient++.cpp:476: NSCLient++ - 0.3.5.1 2008-09-24 Started
and now I get the following in nagios
UNKNOWN: Could not get free space for: \\xx.xx.xx.xx\data01\ \\xx.xx.xx.xx\data01\ reason: 67: The network name cannot be found.
I removed the ips and replaced xx to show the error
OK let me try to clear this up abit We have a MS 2008 server that has a network mount point with several volumes on it
I have ben able to monitor the mount point but I also need to be able to monitor the volumes (similar to drives)
We are using the following version of NSCLient++ - 0.3.5. If I need to change I am open to some insight
I Need to get this resolved as soon as posible to get the clusters monitored
recycled the service
entries from the log file
2012-04-23 15:04:20: message:CACHE.\NSClient++.cpp:370: Attempting to start NSCLient++ - 0.3.5.1 2008-09-24
2012-04-23 15:04:20: message:CACHE.\FileLogger.cpp:93: Log path is: C:\Program Files (x86)\NSClient++\\nsclient.log
2012-04-23 15:04:20: message:.\NSClient++.cpp:476: NSCLient++ - 0.3.5.1 2008-09-24 Started
and now I get the following in nagios
UNKNOWN: Could not get free space for: \\xx.xx.xx.xx\data01\ \\xx.xx.xx.xx\data01\ reason: 67: The network name cannot be found.
I removed the ips and replaced xx to show the error
OK let me try to clear this up abit We have a MS 2008 server that has a network mount point with several volumes on it
I have ben able to monitor the mount point but I also need to be able to monitor the volumes (similar to drives)
We are using the following version of NSCLient++ - 0.3.5. If I need to change I am open to some insight
I Need to get this resolved as soon as posible to get the clusters monitored
Re: Monitoring Windows Mount Points
Every "\" in the path should be escaped with another "\" character. Most probably your command should be:
instead of
Can you try this and post the output?
Code: Select all
./check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=\\\\dbw049\\data01\\ ShowAll MaxWarnUsed=90% MaxCritUsed=95%Code: Select all
./check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=\\dbw049\data01\ ShowAll MaxWarnUsed=90% MaxCritUsed=95%Be sure to check out our Knowledgebase for helpful articles and solutions!