module 12 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Module 12 PowerPoint Presentation
Download Presentation
Module 12

Loading in 2 Seconds...

play fullscreen
1 / 16

Module 12 - PowerPoint PPT Presentation


  • 158 Views
  • Uploaded on

Module 12. Performing Preventive Maintenance. Mon Overview. What is Mon? Mon is a general purpose service monitor Mon schedules monitors Mon provides a multitude of alert methods Mon is extensible SCO office Server uses Mon to monitor: HTTP LDAP FTP SMTP IMAP Pop3.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Module 12' - sine


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
module 12
Module 12
  • Performing Preventive Maintenance
mon overview
Mon Overview
  • What is Mon?
    • Mon is a general purpose service monitor
    • Mon schedules monitors
    • Mon provides a multitude of alert methods
    • Mon is extensible
  • SCOoffice Server uses Mon to monitor:
    • HTTP
    • LDAP
    • FTP
    • SMTP
    • IMAP
    • Pop3
mon monitor facilities
Mon Monitor facilities
  • Monitor scripts provided by Mon:
    • dns.monitor
    • ftp.monitor
    • http.monitor
    • imap.monitor
    • ldap.monitor
    • ping.monitor
    • pop3.monitor
    • smtp.monitor
    • tcp.monitor
    • telnet.monitor
  • Monitor scripts are stored in /opt/insight/mon/mon.d
mon alert methods
Mon Alert Methods
  • Alert scripts provided by Mon:
    • file.alert
    • mail.alert
    • remote.alert
  • Alert scripts are stored in /opt/insight/mon/alert.d
the mon configuration file
The MON configuration file

MON is configured in /opt/insight/mon/etc/mon.cf

  • maxprocs = 20
  • randstart = 60s
  • hostgroup building1 elm.example.com oak.example.com
  • hostgroup building2 spruce.example.com maple.example.com
  • watch building1
  • service ftp
  • interval 1m
  • monitor ftp.monitor
  • period wd {Sun-Sat}
  • alert file.alert /opt/insight/logs/mon_ftp.log
  • alert mail.alert admin@example.com
  • alertevery 1h
the mon configuration file cont
The MON configuration file (cont.)

MON is configured in /opt/insight/mon/etc/mon.cf

  • maxprocs = 20
  • randstart = 60s
  • hostgroup building1 elm.example.com oak.example.com
  • hostgroup building2 spruce.example.com maple.example.com
  • watch building1
  • service ftp
  • interval 1m
  • monitor ftp.monitor
  • period wd {Sun-Sat}
  • alert file.alert /opt/insight/logs/mon_ftp.log
  • alert mail.alert admin@example.com
  • alertevery 1h
the mon configuration file cont1
The MON configuration file (cont.)

MON is configured in /opt/insight/mon/etc/mon.cf

  • maxprocs = 20
  • randstart = 60s
  • hostgroup building1 elm.example.com oak.example.com
  • hostgroup building2 spruce.example.com maple.example.com
  • watch building1
  • service ftp
  • interval 1m
  • monitor ftp.monitor
  • period wd {Sun-Sat}
  • alert file.alert /opt/insight/logs/mon_ftp.log
  • alert mail.alert admin@example.com
  • alertevery 1h
the mon configuration file cont2
The MON configuration file (cont.)

MON is configured in /opt/insight/mon/etc/mon.cf

  • maxprocs = 20
  • randstart = 60s
  • hostgroup building1 elm.example.com oak.example.com
  • hostgroup building2 spruce.example.com maple.example.com
  • watch building1
  • service ftp
  • interval 1m
  • monitor ftp.monitor
  • period wd {Sun-Sat}
  • alert file.alert /opt/insight/logs/mon_ftp.log
  • alert mail.alert admin@example.com
  • alertevery 1h
managing disk space
Managing Disk Space
  • Strategies for managing disk space usage:
  • Setting maximum message size
  • Restricting attachments
  • Imposing quotas
  • Setting mailbox expire values
  • Setting logging levels
  • Pruning log files
managing disk space1
Managing Disk Space
  • Strategies for managing disk space usage:
  • Setting maximum message size
  • Restricting attachments
  • Imposing quotas
  • Setting mailbox expire values
  • Setting logging levels
  • Pruning log files
guarding backups
Guarding Backups
  • Backups are stored in /opt/insight/htdocs/is4web/tar
  • Protected by .htaccess in that directory
  • Beware of:
    • Missing .htaccess
    • Modified .htaccess
    • World writable .htaccess
configuration file sanity checks
Configuration File Sanity Checks
  • spamassassin --lint
  • postfix check
  • apachectl configtest
log files
Log Files
  • SCOoffice uses the following log files:
  • /var/adm/syslog
  • /opt/insight/logs/amavis.log
  • /opt/insight/logs/freshclam.log
  • /opt/insight/logs/access_log
  • /opt/insight/logs/error_log
log files2
Log Files

Where to specify logging levels:

  • /etc/syslog.conf
  • /opt/insight/etc/postfix/master.cf
  • /opt/insight/etc/postfix/main.cf
  • /opt/insight/etc/amavisd.conf
  • /opt/insight/etc/clamav.conf
  • /opt/insight/etc/freshclam.conf
  • /opt/insight/etc/apache/httpd.conf
log files3
Log Files

Events to monitor in syslog:

  • Monitor SMTPD connections:

egrep “[^s]connect from|client=“ /var/adm/syslog

  • Monitor bounced messages:

grep status=bounced /var/adm/syslog

  • Monitor deferred messages:

grep status=deferred /var/adm/syslog

  • Monitor address rewriting:

grep orig_to /var/adm/syslog

  • Monitor SASLAUTHD failures:

grep “auth failure” /var/adm/syslog