monit-general
[Top][All Lists]
Advanced

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

[monit] monit reminder issue


From: Abdellah Tantan
Subject: [monit] monit reminder issue
Date: Mon, 7 Dec 2009 15:34:00 -0600

Dear Monit Users, 

I am searching for a light open source tool that will replace tripwire. I
was told that Monit can monitor directories and files and report any
changes. I installed the latest monit on SLESE 11 I need a small example or
documentation about file system monitoring.

Thanks.
Abdellah

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Stephen Nelson-Smith
Sent: Monday, December 07, 2009 6:49 AM
To: address@hidden
Subject: [monit] Monitoring ssh tunnel

I want to use monit to keep an ssh tunnel up.

I ssh from inside a broadband network to an external server, so I can
then ssh back down the tunnel.  However, I wish to keep that
connection up.

I'm setting up the tunnel with the following arguments:

PORT_FWD="-R 127.0.0.1:40022:127.0.0.1:22 -L 127.0.0.1:40001:127.0.0.1:40001
-N"
My first try was to try an http get down the tunnel from the broadband
machine (and make it available down the tunnel), but this doesn't seem
to return a 200 - perhaps because I'm using virtual hosts, so monit
restarts itself regularly.

I then tried just running netcat on a high port on the external
machine (40001 as above), and testing for that, but if I kill netcat,
monit doesn't seem to notice, and doesn't restart.

Here's my config;

check process atalanta-tunnel with pidfile /var/run/atalanta-tunnel.pid
    start program  = "/etc/init.d/atalanta-tunnel start"
    stop program  = "/etc/init.d/atalanta-tunnel stop"
# For use on remote systems
    if failed host 127.0.0.1 port 40001
       then restart

What am I missing?  How should I go about achieving this?

S.

-- 
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com


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






reply via email to

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