Google Apps

check_gmailunread.py

Description:

Simple imap python script to check the number of unread emails in a gmail account and alert based on the specified WARN and CRIT parameters.

Current Version

v0.1.0

Last Release Date

2012-08-01

Compatible With

  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

Owner

License

GPL


Project Files
Project Photos
Project Notes
peter@blackbird:~/Code/nagiosplugins$ ./check_gmailunread.py Error: no gmail user specified. Usage: check_gmailunread.py -u email_user -p email_password -w warn_unread -c crit_unread check_gmailunread.py -h for detailed help check_gmailunread.py -V for version information peter@blackbird:~/Code/nagiosplugins$ ./check_gmailunread.py -h Nagios plugin to check how many unread emails are in a gmail account Usage: check_gmailunread.py -u email_user -p email_password -w warn_unread -c crit_unread check_gmailunread.py -h for detailed help check_gmailunread.py -V for version information Options: -h Print this help message. -V Print version information then exit. -u gmail_user User name of the gmail account. For google enterprise accounts use the full email address: eg, your.email@yourcompany.com -p gmail_password Password of the gmail account. -w warn_count Warning threshold count for unread emails. -c crit_count Critical threshold count for unread emails. EXAMPLES: Use full gmail email address: peter@blackbird:~/Code/nagiosplugins$ ./check_gmailunread.py -u joe.smith@gmail.com -p secretpassword -w 150 -c 350 Unread email count for joe.smith@gmail.com is 238: WARNING peter@blackbird:~/Code/nagiosplugins$ Use only gmail account name: peter@blackbird:~/Code/nagiosplugins$ ./check_gmailunread.py -u joe.smith -p secretpassword -w 150 -c 350 Unread email count for joe.smith is 238: WARNING peter@blackbird:~/Code/nagiosplugins$
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (1)
Favorites
0
Views
59,764