centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

plugin apps::protocols::imap::plugin --mode login

Open Rico29 opened this issue 4 years ago • 2 comments

Strange behavior sometimes with plugin apps::protocols::imap::plugin --mode login

when working correctly, centreon-plugin send a login, gets a OK, sends an EXPUNGE, gets an BAD invalid command, then send a LOGOUT.

But sometimes, centreon-plugin sends its LOGOUT before getting the response to EXPUNGE command (the BAD invalid command). In this case, the plugins does not exit before 60 seconds.

command used :

/usr/bin/perl /usr/lib64/centreon-plugins/centreon_plugins.pl --plugin apps::protocols::imap::plugin --mode login --hostname 10.4.0.23 --timeout 1

tcpdump capture (on imap server) when working correctly : https://file.io/Vn5cd5rA3edH tcpdump capture (on imap server) when problkem occurs : https://file.io/6J7IihcDw8q4

Regards Cédric

Rico29 avatar May 31 '21 07:05 Rico29

There is an expunge it seems: https://metacpan.org/release/Net-IMAP-Simple/source/lib/Net/IMAP/Simple.pm#L878 I don't know why..

Maybe i should use that library now: https://metacpan.org/pod/Mail::IMAPClient

garnier-quentin avatar May 31 '21 08:05 garnier-quentin

@garnier-quentin do you plan to make changes to the plugin and use this lib ?

Rico29 avatar Jun 02 '21 11:06 Rico29

It should be ok now: https://github.com/centreon/centreon-plugins/pull/3924

garnier-quentin avatar Sep 26 '22 12:09 garnier-quentin