View Full Version : [OK]check_imap[le port interrogé doit être ouvert ;)]
jigot
11th May 2006, 17:06
Bonjour,
Après quelque test peu concluant, est ce que quelqu'un pourait m'expliquer comment utiliser le plugin check_imap et surtout quoi mettre en option?
Car check_imap -H $HOSTADDRESS$ ne suffit pas dommage ;)
ssoubie
11th May 2006, 17:41
Si en mode console tu lances la commande suivante:
#./check_imap -h
check_imap (nagios-plugins 1.3.1) 1.13.2.3
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)
This plugin tests IMAP connections with the specified host.
Usage: check_imap -H host -p port [-w warn_time] [-c crit_time] [-s send_string]
[-e expect_string] [-q quit_string] [-m maxbytes] [-d delay]
[-t to_sec] [-v]
Options:
-H, --hostname=ADDRESS
Host name argument for servers using host headers (use numeric
address if possible to bypass DNS lookup).
-p, --port=INTEGER
Port number
-s, --send=STRING
String to send to the server
-e, --expect=STRING
String to expect in server response
-q, --quit=STRING
String to send server to initiate a clean close of the connection
-m, --maxbytes=INTEGER
Close connection once more than this number of bytes are received
-d, --delay=INTEGER
Seconds to wait between sending string and polling for response
-w, --warning=DOUBLE
Response time to result in warning status (seconds)
-c, --critical=DOUBLE
Response time to result in critical status (seconds)
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
-v, --verbose Show details for command-line debugging (do not use with nagios server)
-h, --help
Print detailed help screen
-V, --version
Print version information
Donc à mon avis, dans un premier temps(car je n'ai pas encore eu le temps de le mettre en place)
./check_imap -H @IP -p 143
et voir ce que ca donne
ssoubie
11th May 2006, 17:43
Chez moi voici le résultat:
./check_imap -H xxx.xxx.xxx.xxx -p 143
IMAP OK - 0.006 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] mail.toto.a.la.plage IMAP4rev1 2001.315mdk at Thu, 11 May 2006 16:34:40 +0200 (CEST)]|time= 0.006
Après je pense que l'on peut avoir nettement plus cklair comme réponse mais bon...
Sauron De Mordor
11th May 2006, 17:43
et bien ca devrais suffir.
sauf si le port du serveur n est pas 143
qu est ce qui se passe quand tu fait telnet hostname 143
jigot
11th May 2006, 18:08
Ok merci pour les conseils.
Après un petit test il s'avère effectivement le port n'est pas 143.
Celà explique donc mon problème. Je vais me renseigner dans mon équipe "Qui a installé ce serveur????". ;)
Merci bcp.