Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

box293_check_mbox

Rating
0 votes
Favoured:
0
Current Version
2014-07-08
Last Release Date
2014-07-08
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
20509
Files:
FileDescription
box293_check_mbox.zipbox293_check_mbox.zip
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
box293_check_mbox.pl is used to keep an eye on a local mbox account.
Without manually checking the mbox reguarly, important system messages can go undetected.
"You have new mail in /var/spool/mail/root" = this is an mbox

OPTIONS
--help Display the help message.

--mbox_user
The username on the system whose mbox you want to check. By default the plugin will check the mbox of the user running the plugin (normally this is the 'nagios' user, because this is the user account that executes plugins).

Because system messages are more commonly logged to the root user's mbox, it is this mbox you will want to monitor.

To monitor an mbox for another user, you will need to grant permission. For example, to allow the nagios user to read the root user's mbox you will need to apply the following permission:
setfacl -m u:nagios:r-- /var/spool/mail/root

--warning
Generate a WARNING state if the mbox message count is >= the threshold supplied

--critical
Generate a CRITICAL state if the mbox message count is >= the threshold supplied

--license
Display the license

--version
Display the version

EXAMPLES
Check the mbox for the user root
box293_check_mbox.pl --mbox_user root

Supply a warning threshold
box293_check_mbox.pl --mbox_user root --warning 20

Supply a critical threshold
box293_check_mbox.pl --mbox_user root --critical 50

Supply a warning and critical threshold
box293_check_mbox.pl --mbox_user root --warning 20 --critical 50
Twitter: @Box293

Version Notes:
2014-07-08
* First release of the plugin