|
|||||||||||||||||||
|
[Nagiosplug-help] Help with check_disk_smb
From: Tom Nail <tom.nail(at)amd.com>
Date: Wed Sep 19 2007 - 17:20:37 EDT
I'm having issues with the check_disk_smb plugin not working correctly from within Nagios. I am able to get valid answers from the command-line, but when enabled in Nagios, it errors with the message: "Invalid warning threshold: -H" Which leads me to believe that the host information isn't getting passed correctly. I've tried using the $HOSTADDRESS$ and $HOSTNAME$ macros, as well as passing the hostname in through the service check, but they all error with that message. Someone suggested it might be related to WINS lookups for the host, but I haven't been able to track that down, either. Here is the version info for the plugin and Nagios along with the service and checkcommand defs: (boober)--> /usr/lib64/nagios/plugins/check_disk_smb -V (boober)--> sudo /usr/bin/nagios -V
Nagios 2.7
define service {
use admin-service
host_name ldchome3
service_description SMB LDC home share check
check_command
check_smb!ldchome3!public!
# SMB protocol connection testing
command_name check_smb
command_line /usr/lib64/nagios/plugins/check_disk_smb -w 85%
- -c 95% -H $HOSTNAME$ -s $ARG2$ -u $ARG3$ -p $ARG4$
}
Here is the command-line equivalent (yes, I also ran it as the "nagios" user...same output): (boober)--> pwd Any ideas on what I'm doing wrong? Thanks,
iD8DBQFG8ZKl1zsLRjt/NQ0RAkSIAJwM0n1vj8MERJ9IIjQmgNjwWUmI5wCdFZeP
KQPkPVmonnK8fkkxUVAxiSw=
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ Nagiosplug-help mailing list Nagiosplug-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Received on Wed Sep 19 17:44:09 2007 This archive was generated by hypermail 2.1.8 : Mon Oct 08 2007 - 18:06:10 EDT |
||||||||||||||||||
|
|||||||||||||||||||