Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2006 19:25:09 +0100
From:      Thierry Lacoste <th.lacoste@wanadoo.fr>
To:        freebsd-questions@freebsd.org
Subject:   check_disk_smb: another nagios problem
Message-ID:  <200611221925.09621.th.lacoste@wanadoo.fr>

next in thread | raw e-mail | index | archive | help
There is something weird about check_disk_smb from nagios-plugins-1.4.3,1
on FreeBSD 6.1-RELEASE-p10.

=46rom 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=3D[MIAGE] OS=3D[Unix] Server=3D[Samba 3.0.22]
Disk ok - 396M (79%) free on \\194.214.13.140\public

One has the same result without the switches:
=2E/check_disk_smb 194.214.13.140 public guest ""
Domain=3D[MIAGE] OS=3D[Unix] Server=3D[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=20
guest -p ""
}

Is anybody else seeing this?
Have I done something wrong?

Regards,
Thierry.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611221925.09621.th.lacoste>