Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
box293_check_mbox
Current Version
2014-07-08
Last Release Date
2014-07-08
Compatible With
- Nagios 3.x
- Nagios 4.x
Owner
License
GPL
Hits
19810
Files:
File | Description |
---|---|
box293_check_mbox.zip | box293_check_mbox.zip |
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
Version Notes:
2014-07-08
* First release of the plugin
Reviews (0)
Be the first to review this listing!