Documentation forServer & Application Monitor
Monitoring your applications and environment is a key capability of SolarWinds Observability Self-Hosted (formerly Hybrid Cloud Observability) and is available in the Essentials edition. Server & Application Monitor (SAM) is also available in a standalone module.

Linux Sendmail Monitoring Perl

This SAM application monitor 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.

If Perl is installed in a location different from /usr/bin/perl, edit paths in the first line of the field ”script body” (#!/usr/bin/perl) for component monitors, or create a symbolic link to Perl with ln command.

To determine where Perl is installed, use the following command: which perl

Credentials:

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. To learn more, see 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\$"