resource.cfg and check_disk_smb

Subhendu Ghosh sghosh at sghosh.org
Fri Aug 8 05:14:15 CEST 2003


On Thu, 7 Aug 2003 Frank.Langanke at RSBICK.rohde-schwarz.com wrote:

> Hello.
> 
> If I define a service for check_disk_smb like the following, everything works
> fine:
> "check_command      check_disk_smb!host01!myshare!admin!12345!95!98"
> 
> I tried to set the user und password in the resource.cfg like this,
> 
> $USER2$=admin
> $USER3$=12345
> 
> and redefined the command to
> 
> "check_command check_disk_smb!host01!myshare!$USER2$!$USER3$!95!98"
> 
> Unfortunately this service stays in status unknown:  "Status Information:
> Invalid user: $".
> 
> Any ideas ?
> Frank.
> 

Create a new command definition as follows:

command[check_disk_smb_hostx]=$USER1$/check_disk_smb -H $ARG1$ -s $ARG2$ 
-u $USER2$ -p $USER3$ -w 95 -c 98


The use the command as follows:

"check_command check_disk_smb!host01!myshare!95!98"



The USERx macros are meant to be used in the command definitions not the 
instances.

-- 

-sg



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/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