check_disk_smb problems

mardin at comcast.net mardin at comcast.net
Tue Sep 12 00:18:52 CEST 2006


Hi,

I am using the latest nagios-2.5-1.el4.rf.i386.rpm and nagios-plugins-1.4.2-1.2.el4.rf.i386.rpm. I can run check_disk_smb on the command lline:

# /usr/lib/nagios/plugins/check_disk_smb -H 192.15.2.3 -s c$ -u nagios -p 1234 -w 50 -c 60
Domain=[NTDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
WARNING: Only 16.72G (44%) free on \\192.15.x.x\c$

# /usr/lib/nagios/plugins/check_disk_smb -H 192.15.2.3 -s c$ -u nagios -p 1234 -w 50 -c 55
Domain=[NTDOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
CRITICAL: Only 16.72G (44%) free on \\192.15.x.x\c$

Then I change the configure files:
# vi checkcommands.cfg
# 'check_disk_smb' command definition
define command{
        command_name   check_disk_smb
        command_line      $USER1$/check_disk_smb -H $ARG1$ -s $ARG2$ -u $ARG3$ -p $ARG4$ -w $ARG5$ -c $ARG6$
        }

# vi service.cfg
# Service check_disk_smb definition
define service{
        use                                generic-service         ; Name of service template to use
        host_name                    192.15.2.3
        service_description        C: Free Space
        ......
        notification_options        w,u,c,r
        check_command              check_disk_smb!192.15.2.3!C$!nagios!1234!80!90
        }

Since I set "-w=80%" and "-c=90%" in service.cfg. I should not get any warning message.  But I still received the problem e-mail from Nagios:

   Subject: ** PROBLEM alert - Windows Workstations, 192.15.2.3 - C: Free Space CRITICAL **
   Notification Type: PROBLEM
   State: CRITICAL
   Additional Info: Invalid share name z.15.2.3\C
--

It looked that check_disk_smb didn't work with service.cfg. Why I got "Invalid share name z.15.2.3\C"? Does anyone knows how to resolve this problem and set up the check_disk_smb correctly on nagios 2.5-1 with nagios-plugins1.4.2-1.2?

Thanks for your help!
Mardin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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