Hi guys,
I am monitoring all our shares on a server and I can not seem to list them all. Here is my code.
smb
define service{
use generic-service
host_name linuxdev1
service_description SMB
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups bssadmins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_disk_smb!public!guest
check_command check_disk_smb!backups!guest
}
code for commands.cfg
‘check_disk_smb’ command definition
define command{
command_name check_disk_smb
command_line $USER1$/check_disk_smb --hostname="$HOSTADDRESS$" --share="$ARG1$" -u “$ARG2$” -p “’’” -w 85 -c 95
}
It only displays the backups share and not the public, how can I set this up to view both shares and more of them?