SeisComP3

Table Of Contents

Previous topic

System

Next topic

kernel

This Page

diskmon

Monitors a disk and sends notifications.

Description

Diskmon is a SeisComP3 init script that checks on each call to seiscomp check the filesystem by running the following command:

df | awk -v max="%d" \'{ if ( $5 > max ) print $0 }\'

where "%d" is replaced by the configured threshold. If there are lines in the output (which means some filesystem exceed the usage threshold) it sends the output along with a description line to all configured receipients using the mail command.

To make diskmon work it is important that mail is working on the shell.

Configuration

Note

diskmon is a standalone module and does not inherit global options.

etc/defaults/diskmon.cfg
etc/diskmon.cfg
~/.seiscomp3/diskmon.cfg
threshold

Type: int

Disk usage threshold in percent. Each time when the disk usage exceeds this level, an alert e-mail is send to the user. Note that disk usage is only checked when a cron job of seiscomp check is installed or seiscomp check is called regularly by other means. Default is 95.

emails

Type: list:string

Comma-separated list of e-mail addresses to notify when disk usage threshold is exceeded.