resource.cfg and check_disk_smb

Brian Snead BSnead at infosysnetworks.com
Thu Aug 7 16:22:48 CEST 2003


Looks like you are trying to pass the variables $USER2$ and $USER3$ as parameters from the service check command. I would not expect this to work. The $USER2$ and $USER3$ need to be defined in the actual check_command syntax in the checkcommands.cfg file.

Hope this helps.

Brian.

-----Original Message-----
From: Frank.Langanke at RSBICK.rohde-schwarz.com
[mailto:Frank.Langanke at RSBICK.rohde-schwarz.com]
Sent: Thursday, August 07, 2003 9:42 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] resource.cfg and check_disk_smb


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.








-------------------------------------------------------
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


-------------------------------------------------------
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