Read number of mails unread
Posted: Fri Sep 25, 2020 2:41 am
Hello,
Can you explain me how this plugin works. How to open an SSL connection and IMAP session.
Main functions :
1 - Open a SSL connection with the mail server
2 - Open an IMAPS connection to the mail server with uer,password
3 - Check connection establishment time and, if necessary, raise an appropriate alarm
4 - For each folder given as input parameter, count mails (unseen or present) and raise an appropriate alarm is necessary.
Each mesure and count is treated as a nagios performance value.
Input parameters
-u : this user must be present in the file /usr/local/nagios/libexec/mdp.txt. The associated password is stored encrypted in the same file
-l : comma separated list of folders to analyze
-w : in number of unread mails
-c : in number of unread mails
-D [P|U] P: count mails present in the folder
U: count unseen mails in the folder
A specific option allows the creation of the user,password file
./check_unread_mails.pl -u -g
Thanks and Regards
Can you explain me how this plugin works. How to open an SSL connection and IMAP session.
Main functions :
1 - Open a SSL connection with the mail server
2 - Open an IMAPS connection to the mail server with uer,password
3 - Check connection establishment time and, if necessary, raise an appropriate alarm
4 - For each folder given as input parameter, count mails (unseen or present) and raise an appropriate alarm is necessary.
Each mesure and count is treated as a nagios performance value.
Input parameters
-u : this user must be present in the file /usr/local/nagios/libexec/mdp.txt. The associated password is stored encrypted in the same file
-l : comma separated list of folders to analyze
-w : in number of unread mails
-c : in number of unread mails
-D [P|U] P: count mails present in the folder
U: count unseen mails in the folder
A specific option allows the creation of the user,password file
./check_unread_mails.pl -u -g
Thanks and Regards