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
License
GPL
Hits
21014
Files:
FileDescription
box293_check_mbox.zipbox293_check_mbox.zip
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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
Version Notes:
2014-07-08
* First release of the plugin