From owner-freebsd-questions@FreeBSD.ORG  Thu Nov 23 10:52:16 2006
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
X-Original-To: freebsd-questions@freebsd.org
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 081C916A407
	for <freebsd-questions@freebsd.org>;
	Thu, 23 Nov 2006 10:52:16 +0000 (UTC)
	(envelope-from th.lacoste@wanadoo.fr)
Received: from ultra1.univ-paris12.fr (ultra1.univ-paris12.fr [193.51.100.100])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 24F8343D6E
	for <freebsd-questions@freebsd.org>;
	Thu, 23 Nov 2006 10:51:39 +0000 (GMT)
	(envelope-from th.lacoste@wanadoo.fr)
Received: from st-simon.miage.univ-paris12.fr (localhost [127.0.0.1])
	by ultra1.univ-paris12.fr (8.13.8/8.13.8) with ESMTP id kANAq6Nu027019; 
	Thu, 23 Nov 2006 11:52:07 +0100 (MET)
Received: from sirius.miage.univ-paris12.fr (sirius.miage.univ-paris12.fr
	[194.214.13.28])
	by st-simon.miage.univ-paris12.fr (Postfix) with ESMTP id 95D2347281A; 
	Thu, 23 Nov 2006 11:52:06 +0100 (CET)
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
To: Jeremy Johnston <jeremy@stormy.smart-serv.net>
Date: Thu, 23 Nov 2006 11:52:05 +0100
User-Agent: KMail/1.9.4
References: <200611221925.09621.th.lacoste@wanadoo.fr>
	<4564A6F9.4020501@stormy.smart-serv.net>
In-Reply-To: <4564A6F9.4020501@stormy.smart-serv.net>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200611231152.06093.th.lacoste@wanadoo.fr>
Cc: freebsd-questions@freebsd.org
Subject: Re: check_disk_smb: another nagios problem
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Nov 2006 10:52:16 -0000

I tried that:
define command{
        command_name    check_disk_smb
        command_line    $USER1$/check_disk_smb -H $HOSTADDRESS$ -s public -w 
85% -c 95%
        }

But I still have a CRITICAL error in nagios (Access Denied)

On the samba server I have this in log.smbd:
[2006/11/23 11:34:26, 0] auth/auth_domain.c:domain_client_validate(242)
  domain_client_validate: unable to validate password for user -H in domain 
MIAGE to Domain controller CASTOR. Error was NT_STATUS_NO_SUCH_USER.

On Wednesday 22 November 2006 20:37, Jeremy Johnston wrote:
> I had problems with this at first then I added -w 85% -c 95% to the
> command_line and it works great now.
>
> Thierry Lacoste wrote:
> > There is something weird about check_disk_smb from nagios-plugins-1.4.3,1
> > on FreeBSD 6.1-RELEASE-p10.
> >
> > From the command line (pwd is /usr/local/libexec/nagios) the switches
> > work as expected:
> > # ./check_disk_smb -H 194.214.13.140 -s public -u guest -p ""
> > Domain=[MIAGE] OS=[Unix] Server=[Samba 3.0.22]
> > Disk ok - 396M (79%) free on \\194.214.13.140\public
> >
> > One has the same result without the switches:
> > ./check_disk_smb 194.214.13.140 public guest ""
> > Domain=[MIAGE] OS=[Unix] Server=[Samba 3.0.22]
> > Disk ok - 396M (79%) free on \\194.214.13.140\public
> >
> > But the second form is the only way I can make it work within nagios
> >
> > define command{
> > command_name    check_disk_smb
> > command_line    $USER1$/check_disk_smb $HOSTADDRESS$ public guest ""
> > }
> >
> > If I introduce the switches (e.g like below) I have all sorts of errors
> > (invalid warning threshold, Access denied, etc ...) depending on
> > the order of the arguments.
> >
> > define command{
> > command_name    check_disk_smb
> > command_line    $USER1$/check_disk_smb -H $HOSTADDRESS$ -s public -u
> > guest -p ""
> > }
> >
> > Is anybody else seeing this?
> > Have I done something wrong?
> >
> > Regards,
> > Thierry.
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@freebsd.org"