[Pkg-nagios-devel] check_disk_smb_* Problems?

Jan Wagner waja at cyconet.org
Fri Jan 5 16:24:17 CET 2007


Hi there,

if i use the following (default) template:

# 'check_disk_smb_user' command definition
define command{
        command_name    check_disk_smb_user
        command_line    /usr/lib/nagios/plugins/check_disk_smb -H "$ARG1$" -s 
$ARG2$ -u $ARG3$ -p $ARG4$
        }

with this service definition:

define service{
        use                             generic-service         ; Name of 
service template to use
        host_name                       pdc.xxx.xx
        service_description             Samba Test
        check_command                   
check_disk_smb_user!PDC!public!nagios!OoKie8aE
        }

I get the following Status Information: "Invalid warning threshold: -H"

But:

# /usr/lib/nagios/plugins/check_disk_smb -H "PDC" -s public -u nagios -p 
OoKie8aE
Domain=[XXX.XX] OS=[Unix] Server=[Samba 3.0.14a-Debian]
Disk ok - 276.96G (48%) free on \\PDC\public

Changing the command_line 
to "command_line    /usr/lib/nagios/plugins/check_disk_smb -H "$ARG1$" -s 
$ARG2$ -u $ARG3$ -p $ARG4$ -w 80 -c 90" works like a charme.

But "# /usr/lib/nagios/plugins/check_disk_smb --help" states:

[...]
Usage: check_disk_smb -H <host> -s <share> -u <user> -p <password>
      -w <warn> -c <crit> [-W <workgroup>] [-P <port>] [-a <IP>]
[...]
-w, --warning=INTEGER or INTEGER[kMG]
   Percent of used space at which a warning will be generated (Default: 85%)

-c, --critical=INTEGER or INTEGER[kMG]
   Percent of used space at which a critical will be generated (Defaults: 95%)
[...]

So anything is strange there. Looking at the "Usage", -w and -c is required, 
but lower there are defaults quoted.

Does anybody also notice this? Should we add "-w" and "-c" to the default 
templates of check_disk_smb* ?

With kind regards, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20070105/84074925/attachment.pgp


More information about the Pkg-nagios-devel mailing list