[Nagiosplug-help] Nagios and plugin check_disk_smb

Cyrille Rousseaux crousseaux at ib-group.com
Thu Mar 25 08:56:10 CET 2004


Hi,

I try Nagios with plugin.

I create service.cfg with :

define service {
        use                             generic-service
        host_name                       serveur01
        service_description             d: Free Space
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  localhost-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command
check_smb_disk!serveur01!d$!administrateur!xxxx
}

And checkcommnand.cfg with :

# 'check_smb_disk' command definition
define command{
        command_name    check_smb_disk
        command_line    $USER1$/check_disk_smb -H $ARG1$ -s $ARG2$ -u
$ARG3$ -p $ARG4$
        }

But in http interface I have this  :

Host 		Service Status Last Check Duration Attempt Status Information

serveur01 d: Free Space CRITICAL 03-25-2004 15:03:29  0d 4h 39m 21s 3/3 (No
output!)

If I try this script in command line, it's ok.
./check_disk_smp -H serveur01 -s c$ -u administrateur -p xxxx

Disk ok - 8.8G (52%) free on \\serveur01\c$

Thank for your help,


Cyrille (-.:





More information about the Help mailing list