smb.monitor is a script for use with the mon package. It simply connects to a host and lists the shares to detect failures from name resolution or authentication.

Installation

To install the script simply download it to the mon scriptdir, usually set to '/usr/local/lib/mon/mon.d:/usr/lib/mon/mon.d'. Then add the settings for this to the mon.cf file.

Configuration

It configures like any other mon script, the specific parameters are -p and -u for password and username. A sample is provided below.

hostgroup smb_devices 192.168.42.2 192.168.42.22 192.168.42.222

watch smb_devices
  service smb
    interval 1m
    monitor smb.monitor -p secret -u jsmith
    period all_the_time: wd {Sun-Sat}
      alertafter 3 10m
      alert mail.alert someone@somewhere.tld

smb.monitor


Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/edoceo.com/www.edoceo.com/view/creo/perl-smb-monitor.php on line 34

Warning: file_get_contents(http://cdn.edoceo.com/bin/smb.monitor): failed to open stream: no suitable wrapper could be found in /var/www/edoceo.com/www.edoceo.com/view/creo/perl-smb-monitor.php on line 34

See Also

Add Comment or Note