[Nagiosplug-help] Check_disk_smb - How to do c$?

John Hyde jhyde at mcgarrybowen.com
Tue Nov 14 17:41:14 CET 2006


Hello all,

Sorry if this is a nubile question, but I¹m pretty new to the Linux
environment and Nagios, so I¹m not sure where my problem lies, but was
hoping to get some help.
I¹m going to put more info than necessary, but I hope it¹ll be every
question.

I have Nagios v2.4 up and running, and it¹s working like a champ! I am
focusing at the moment on just one Windows 2003 Server and getting all the
plugins and configurations correct. I am running Nagios on a Fedora Core 5
dist on an Intel Mac Mini (intel). I have not changed from the default bash
terminal.

I am trying to obtain the amount of free space on the primary hard drive of
said server (in this case, as is with many vanilla Microsoft installs, it is
the c$ share.)

My problem is that after defining the following command set in
checkcommands.cfg;
Define command{
    command_name    check_disk_smb
    command_line    $USER1$/check_disk_smb ­H $HOSTADDRESS$ -W MCGARRYBOWEN
­u gfreeman ­p (censored) -s $ARG1$
    }

And defining the service in my hydeMin.cfg;
Define service{
    **Edited the boring stuff**
    check_command   check_disk_smb!c$
    }

And double checking here by using;
./check_disk_smb ­H 192.168.1.2 ­W MCGARRYBOWEN ­u gfreeman ­p (censored) -s
c$

I receive a Critical from nagios, so through trouble shooting procedure
(using the ./check_disk_smb) I received the error ³Result from smbclient not
suitable.² I assume this is because the $ isn¹t being pushed to the windows
box...

I assume that this is not being carried forward because the $ character is
tripping up either Nagios, the system, or both.
I¹ve tried running the last command with the following ³c/$², ³c\$², ³c\ $²
all to no avail.

So, assuming noob as I may be I¹d love some help. :) Thanks in advance,
John Hyde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061114/64ebe612/attachment.html>


More information about the Help mailing list