Page 1 of 1

Disk Monitoring Error

Posted: Wed Oct 11, 2017 4:50 am
by keerthiprashanths
Hello Team,

We are facing unknown error while configuring few drives into monitoring.

Case 1:
Monitoring of drives with drive letter like C:, D: drive etc

Error we are facing:-

COMMAND: /usr/local/nagios/libexec/check_nt -H GEO-W-WISVCL11P -s "umnagios123" -p 12489 -v USEDDISKSPACE -l N -w 90 -c 95
OUTPUT: NSClient - ERROR: Invalid return from command: check_drivesize
Attaching the screenshot in the document. ( Screenshot 1)

Case 2:-
Monitoring of drives without drive letter

Error we are facing :-

COMMAND: /usr/local/nagios/libexec/check_nrpe -H GEO-W-WISVCL11P -c CheckDriveSize -a Drive='F:\\3PAR_Citrix_SystemDB' MinCritFree=15% MinWarnFree=20%
OUTPUT: Filter processing failed: Error: Failed to get size for: 3: The system cannot find the path specified
Attaching the screenshot in the document. ( Screenshot 2)

As this is impacting our infrastructure would request you to please provide us a suggestions as soon as possible.

Re: Disk Monitoring Error

Posted: Wed Oct 11, 2017 4:51 am
by keerthiprashanths
Just to update the version of nsclient :- 0.4.4.19

Re: Disk Monitoring Error

Posted: Wed Oct 11, 2017 12:37 pm
by dwasswa
Hi @keerthiprashanths ,

Sorry,what version were you using and what version did you update to?

Re: Disk Monitoring Error

Posted: Wed Oct 11, 2017 1:01 pm
by mcapra
Be sure to test your command via the command line since the GUI method for testing check commands is limited by a few different factors.

Your syntax looks a bit dated for 0.4.4. Give this a try:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H GEO-W-WISVCL11P -c check_drivesize -a drive='F:\\3PAR_Citrix_SystemDB'  'warning=free<20%' 'critical=free<15%'
To be clear, F:\\3PAR_Citrix_SystemDB represents a logical disk mounted as a folder right? It's not just some regular system folder?

Re: Disk Monitoring Error

Posted: Wed Oct 11, 2017 1:07 pm
by dwasswa
Thanks @mcapra.

Re: Disk Monitoring Error

Posted: Thu Oct 12, 2017 7:46 am
by keerthiprashanths
Hello Team,

We checked the command testing via cli and found that we are still facing the same issue. Attached the screenshot.

As per the other query from your end
F:\\3PAR_Citrix_SystemDB represents a logical disk mounted as a folder right? It's not just some regular system folder? :- It's a regular system folder.

Please let us know in case if any more clarifications are required.

Re: Disk Monitoring Error

Posted: Thu Oct 12, 2017 1:00 pm
by tacolover101
I believe this plugin is looking for an actual mounted disk at that location, not a folder. probably why it's not working.

take a look at https://exchange.nagios.org to see if you can find a plugin that will work for you.

Re: Disk Monitoring Error

Posted: Thu Oct 12, 2017 3:48 pm
by mcapra
keerthiprashanths wrote:It's a regular system folder.
Verifying that what @tacolover101 said mirrors what I was getting at earlier. check_drivesize only works with logical and physical volumes in Windows. If it's just a regular system folder, and you want to know how "big" it is in terms of bytes, you'd need to use something like check_files.

Re: Disk Monitoring Error

Posted: Thu Oct 12, 2017 4:00 pm
by dwasswa
Thanks @mcapra.