monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] FTP monitoring


From: Martin Pala
Subject: Re: [monit] FTP monitoring
Date: Tue, 28 Jul 2009 21:53:43 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Hello,

please can you provide output of ftp session beginning?

It is sufficient to use for example wireshark to catch the data or telnet to mimic the session:

1.) telnet 10.201.56.42 21 (monit expects "220 ...")
2.) type: "quit" (monit expects "221 ...")

and copy the output.

I think the error could be caused by multiline greeting, we can fix it if it will be the case.


Thanks,
Martin



Giovanni D'Cristina wrote:
I want to monitor whether I can reach a FTP server on a remote host.

So I have added the following

check host QTCP with address 10.201.56.42
      if failed port 21 protocol ftp for 1 cycles then alert
alert address@hidden <mailto:address@hidden> with mail-format {
         subject: FTP Unreachable from  Server
      } with reminder on 30 cycles

But in the syslog I get

Jul 27 15:45:58 mdsg monit[3132]: FTP error: 220 Connection will close if idle more than 10 minutes. Jul 27 15:45:58 mdsg monit[3132]: 'QTCP' failed protocol test [FTP] at INET[10.201.56.42:21 <http://10.201.56.42:21>] via TCP

and monit sets the alert.

My understanding is that internally monit should see the 220 message as a good thing, but it seems to see it
as a failure.
Am I doing something wrong?

Regards,
   John


------------------------------------------------------------------------

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]