Question on services configuration.

Marc Powell marc at ena.com
Thu Feb 28 16:42:02 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Luis Fernando Lacayo
> Sent: Thursday, February 28, 2008 9:13 AM
> To: nagios-users
> Subject: [Nagios-users] Question on services configuration.
> 
> Good Day everyone,
> 
> I have been struggling with a configuration issue. I trying to
configure
> a service to check an samba share.  I am using the check_disk_smb
> plug-in, I have several shares and I have been able to successfully
> configure all but one.  The problem is that the password has an "!".
> When I try the command from the command line it works fine, but not
> within Nagios, because the ! is a field delimiter within the service
> configuration.  I have tried using $! and putting the password in
single
> and double quotes. I am not able to change the password because the
> share is used by many manual and automated processes.

Newly added feature in Nagios-3 --

"Escaped command arguments - You can now pass bang (!) characters in
your command arguments by escaping them with a backslash (\). If you
need to include backslashes in your command arguments, they should also
be escaped with a backslash."

In nagios-2 I believe you'll need to create a dedicated command{}
definition with that hard-coded in the command_line.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list