[Nagiosplug-devel] quoting authentication strings with nrpe_nt

Terry td3201 at gmail.com
Fri Aug 24 20:52:54 CEST 2007


Hello,

I am using nrpe_nt with wmi plugins.  I am passing some authentication
strings like:
/usr/lib/nagios/plugins/check_nrpe -H 10.0.1.127 -c get_service_auth
-a 10.0.1.5 msdtc 'asdfasdf' 'foo!bar'

Notice the password has an exclamation point (!) in it.  How can I
quote this properly?  I have tried:
"foo!bar"
'foo!bar'
"foo\!bar"
'foo\!bar'

All with no luck.  If I escape it with backslash (\), NRPE complains with:
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server
logs for error messages.

I cannot change this password so I must think of a work around.
Thanks!




More information about the Devel mailing list