check_disk_smb

Marc Powell marc at ena.com
Tue Jan 16 20:09:04 CET 2007


Please use text/plain when posting to the list.

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis
> Sent: Tuesday, January 16, 2007 9:21 AM
> To: nagios-users
> Subject: [Nagios-users] check_disk_smb
> 
> I am trying to set up monitoring on more than one share on our file
server
> - here is my script
> 
> 
> 
> # smb
> 
> define service{
> 
>  use                            generic-service
> 
> 
> 
>  host_name                      linuxdev1
> 
>  service_description            SMB
> 

[chop]
 
>  check_command                  check_disk_smb!public!guest
> 
>  check_command                  check_disk_smb!backups!guest
> 
> }
> 
> 
> 
> However it only is monitoring the backups - is their a way to set it
up so
> it can monitor all shares on this server?

Multiple check_commands per service is not supported. Create a new
service{} entry for each share or create a wrapper script that runs
check_disk_smb for each share you pass to it and summarizes the results.
That wrapper script would need to follow the Plugin Guidelines.

--
Marc

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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