References > Template Reference > Linux > Linux Sendmail Monitoring Perl

Linux Sendmail Monitoring Perl

This template assesses the Linux sendmail status and performance. This template uses Perl scripts for monitoring performance.

Prerequisites

SSH and Perl installed on the target server.

Perl should be found in: /usr/bin/perl. You can find where Perl is installed by using the following command: which perl

If Perl is installed in another location, you should correct all components in the first line of the field ”script body” (#!/usr/bin/perl), or you can create a symbolic link to Perl (refer to the documentation for the ln command).

Operating Systems

The following operating system versions may cause issues with certain counters in this template:

  • SUSE Linux Enterprise Server 9, 10, 11
  • OpenSUSE 11.3
  • Ubuntu Server 10.10

Credentials

Root credentials on the target server.

The counters and services in this template are based on the following information:

Monitoring sendmail: http://opensmart.sourceforge.net/docs/documentation/userguide/appmon_sendmail.html

Monitored Components

For details on monitors, see SAM Component Monitor Types.

Components without predetermined threshold values have guidance such as "use the lowest threshold possible" or "use the highest threshold possible" to help you find a threshold appropriate for your application.

Sendmail instances running

This shows how many instances of sendmail daemon are currently started.

  • 0 – Sendmail is stopped. Run sendmail manually.
  • >1 – Sendmail is up and running.

Daemon: syslogd

This shows the status of syslogd daemon (Syslog is a standard for logging program messages).

  • 0 – Syslog daemon is stopped. Run syslogd manually.
  • 1 – Syslog daemon is up and running.

Disk space usage (kB) of mail folder

This shows the disk space in kB used by the user mailboxes in /var/mail.

Set thresholds according to your requirements.

Disk space usage (kB) of mail queue folder

This shows the disk space in kB used by queued mail in /var/spool/mqueue.

Set thresholds according to your requirements.

Mail queue length

This shows the mail queue length (how many items are in the queue for delivery).

This should be as low as possible. If the mail queue value is constantly rising, it may indicate problems with delivering messages.

Set thresholds according to your requirements.

Available space on partition with /var/spool (MB)

This shows the available space on the partition with /var/spool folder in MB.

By default it checks available space on the root (/) partition. If you have created a separate partition /var or /var/spool you need change it in the script (grep "/\$"). You can investigate what partitions you have by using the following command: df

For the /var partition, you should make the following change: change grep "/\$" to grep "/var\$"

For the /var/spool partition, you should make the following change: change grep "/\$" to grep "/var/spool\$"

Set thresholds according to your requirements.