[Nagiosplug-help] Help with check_disk_smb
Ralph.Grothe at itdz-berlin.de
Ralph.Grothe at itdz-berlin.de
Thu Sep 20 09:30:19 CEST 2007
As a Nagios user who never used this plugin (as I lack any
Samba/CIFS servers to monitor)
I am also curious why you pass in four arguments where you only
use three of them?
To me it looks as if ldchome3 in the service definition is
somewhat redundant.
Also, wouldn't use of the macro $HOSTADDRESS$ avoid name
resolutions instead of $HOSTNAME$?
But as said, I may not understand the working of this plugin.
> -----Original Message-----
> From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net]On Behalf
Of
> tom.welsh at bt.com
> Sent: Wednesday, September 19, 2007 11:34 PM
> To: tom.nail at amd.com; nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] Help with check_disk_smb
>
>
> Hi Tom,
>
> I may be barking up the wrong tree but your snippet shows 2
> minus signs
>
> # SMB protocol connection testing
> define command {
> 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$
> }
>
> It should be
>
> # SMB protocol connection testing
> define command {
> 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$
> }
>
> Like I say I may be wrong or perhaps it's a typo on your part
>
> Regards
>
> Tom
>
>
>
> -----Original Message-----
> From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net] On
> Behalf Of Tom
> Nail
> Sent: 19 September 2007 22:21
> To: nagiosplug-help at lists.sourceforge.net
> Subject: [Nagiosplug-help] Help with check_disk_smb
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
check_disk_smb
> (nagios-plugins 1.4.5) 1.13 ...snip...
>
> (boober)--> sudo /usr/bin/nagios -V
>
> Nagios 2.7
> ...snip...
>
> define service {
> use admin-service
> host_name ldchome3
> service_description SMB LDC home share check
> check_command
> check_smb!ldchome3!public!<some_user>!<some_pass>
> }
>
> # SMB protocol connection testing
> define command {
> 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
> /usr/lib64/nagios/plugins
> (boober)--> ./check_disk_smb -H ldchome3 -s public -u
<some_user> -p
> <some_pass> Domain=[AMD] OS=[Unix] Server=[Samba 3.0.22] Disk
ok -
> 278.68G (54%) free on \\ldchome3\public
>
>
> Any ideas on what I'm doing wrong?
>
> Thanks,
>
> - -=Tom Nail
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>
iD8DBQFG8ZKl1zsLRjt/NQ0RAkSIAJwM0n1vj8MERJ9IIjQmgNjwWUmI5wCdFZeP
> KQPkPVmonnK8fkkxUVAxiSw=
> =oV1W
> -----END PGP SIGNATURE-----
>
>
>
> --------------------------------------------------------------
> ----------
> -
> 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 at 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
>
> --------------------------------------------------------------
> -----------
> 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 at 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
>
More information about the Help
mailing list