> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Assaf Flatto > Sent: 20 August 2008 13:13 > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk_smb question > > > > did you define the command to go with it ? > > Some thing like this ? > > define command{ > command_name check_disk_samba > command_line $USER1$/check_disk_smb -H > $HOSTADDRESS$ -s Company -u foo -p bar -w > $ARG1$ -c $ARG2$ > > See if you have it in the commands or checkcommands file.
The way nagios works 1) You define a host 2) You define a command 3) You define a service, which belongs to a host, and has a command In this case you'd want something like this. This will allow you to monitor any share on any host, with a username/password of foo/bar Commands.cfg: define command{ command_name check_disk_samba command_line $USER1$/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -u foo -p bar -w $ARG2$ -c $ARG3$ } Host.cfg: define service { use generic-service host_name harrold service_description SMB check_command check_disk_smb!Company!80!90! } (as an aside, the version of check_disk_smb I have (or rather the version of smbclient) seems to fail once the file share goes over about 2TB, so I have to use snmp in those cases, however that's fairly irellevent.) http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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