Page 1 of 1

Check_drivesize UNC PATH

Posted: Mon Oct 09, 2023 2:18 am
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

Re: Check_drivesize UNC PATH

Posted: Mon Oct 09, 2023 2:40 am
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

Re: Check_drivesize UNC PATH

Posted: Mon Oct 09, 2023 5:40 am
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?