Check_drivesize UNC PATH

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
alex24
Posts: 2
Joined: Fri Aug 27, 2021 1:54 am

Check_drivesize UNC PATH

Post by alex24 »

Dear nagios forum,

i need your help. I 'm using Nagios XI(5.6.10).
I'm already monitoring a few servers(mainly services, applications and local drives).
Now i'm trying to check network shares(check_nrpe with check_drivesize).
I've found something in here viewtopic.php?f=16&t=11745 and in here viewtopic.php?t=37151
But i'm not getting anywhere with it, i'm mainly using the GUI btw :

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H 100.100.100.100 -t 30 -c check_drivesize -a drive='\\\\server\\share$'\
Exception processing request: Request command contained illegal metachars!
I would appreciate any ideas!

Cheers Alex
You do not have the required permissions to view the files attached to this post.
kg2857
Posts: 500
Joined: Wed Apr 12, 2023 5:48 pm

Re: Check_drivesize UNC PATH

Post by kg2857 »

I'd guess it's the escaping of the UNC/windows paths. I'd first remove the escaping and use single quotes and if that fails change the escaping. Yes, it's a pain
alex24
Posts: 2
Joined: Fri Aug 27, 2021 1:54 am

Re: Check_drivesize UNC PATH

Post by alex24 »

I also believe the windows path is the culprit, removed the escaping and used single quotes:

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H 100.100.100.100 -t 30 -c check_drivesize -a drive='\\server\share'
Exception processing request: Request command contained illegal metachars!
What do you mean by change the escaping? Is there another escape character besides "\"?
Or is it becouse of nrpe as stated in here viewtopic.php?t=41191&start=10?
Post Reply