Documentation forServer & Application Monitor

Linux Sendmail Monitoring Perl

This SAM template uses Perl scripts to monitor the Linux sendmail status and performance on a Linux system.

Prerequisites

SSH and Perl are installed on the target server.

Perl is installed in: /usr/bin/perl. Use the following command to locate Perl: which perl.

If Perl is installed in another location, update components in the first line of the field ”script body” (#!/usr/bin/perl), or create a symbolic link to Perl with the ln command.

Root credentials on the target server.

Note that some counters may not work properly with the following legacy OS versions:

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

Component monitors

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. See also Manage thresholds in SAM.

Sendmail instances running

The number of instances of a sendmail daemon that are currently started.

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

Daemon: syslogd

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

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

Disk space usage (kB) of mail queue folder

The disk space in kB used by queued mail in /var/spool/mqueue.

Mail queue length

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.

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

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

By default, it checks available space on the root (/) partition. If you created a separate partition /var or /var/spool update the script (grep "/\$").

To check for partitions, use the df command.

For the /var partition, change grep "/\$" to grep "/var\$"

For the /var/spool partition, change grep "/\$" to grep "/var/spool\$"