macro + check_disk_smb

Steve Freegard steve.freegard at lbsltd.co.uk
Tue May 27 12:36:29 CEST 2003


Thomas,
 
I would guess that you first should try escaping the dollar for the -s 
parameter e.g. -s c\$ and try again.  If you still don't have any luck
try escaping the values inside the macro e.g. $USER4$=Joop23\$ to see
if that helps.

Kind regards,
Steve

--
Steve Freegard
Systems Manager
Littlehampton Book Services Ltd.


________________________________

From: Wiesner, Thomas [mailto:Thomas.Wiesner at dbla.com] 
Sent: 26 May 2003 14:44
To: 'nagios-users at lists.sourceforge.net'



Dear all,

I have a problem with the check_disk_smb command and macros.

Resource.cfg:

$USER3$=0202020

$USER4$=Joop23$        

0202020 is the username and

Joop23$ is the password.

Checkcommands.cfg

# 'Check_DiskC' command definition

define command{

        command_name    check_DiskC

        command_line    $USER1$/check_disk_smb -H $HOSTADDRESS$ -p
$USER4$ -u $USER3$ -W Domain -s c$

}

Errormessage:

Result from smbclient not suitable

I change the check_disk_smb command and write the parameter to a simple
textfile:

-H

host

-p

Joop23$

-u

0202020

-W

Domain

-s

-H0

System:

RedHat 9

If I use the correct username and password direct in the
checkcommands.cfg file everything is ok. With the macro I have the
problem that the program doesn't get the correct sharename (C$),
username or password. Are there any limitations like only 9 parameters
or there must not be a '$' in the password or in the sharename.

Thanks in advanced.

Best regards,

Thomas Wiesner


--
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender and delete the message from your mailbox.

This footnote also confirms that this email message has been swept by
MailScanner (www.mailscanner.info) for the presence of computer viruses.



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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