Current time: 12-24-2024, 02:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
[How-to] Configure MONIT to monitorize your server
Author Message
tioan Offline
Junior Member
*

Posts: 22
Joined: Dec 2006
Reputation: 0
Post: #21
RE: [How-to] Configure MONIT to monitorize your server
BeNe Wrote:Everybody can write in the Wiki - you need no Account --> Feel free to edit our manuals.

If have see it now, great^^
I add it today or tomorrow
(This post was last modified: 06-27-2007 04:05 AM by tioan.)
06-27-2007 04:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #22
RE: [How-to] Configure MONIT to monitorize your server
is there's a way to monitor fail2ban with monit?
There is only a socket in /tmp no pid file ...
12-04-2007 02:45 AM
Find all posts by this user Quote this message in a reply
truzone Offline
Newbie
*

Posts: 7
Joined: May 2008
Reputation: 0
Post: #23
RE: [How-to] Configure MONIT to monitorize your server
Hello

to monitor fail2ban with monit:

First you must have the last fail2ban last version (0.8.2) If you have debian etch your fail2ban version is 0.7.5 To install fail2ban 0.8.2 in debian etch: http://www.isp-control.net/forum/howto-i...-3340.html

Now open /etc/monit/monitrc

Code:
# vi /etc/monit/monitrc

Add at the end

Code:
# fail2ban
check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
   group services
   start program = "/etc/init.d/fail2ban start"
   stop  program = "/etc/init.d/fail2ban stop"
   if 5 restarts within 5 cycles then timeout
(This post was last modified: 05-20-2008 05:57 PM by truzone.)
05-20-2008 05:45 PM
Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #24
RE: [How-to] Configure MONIT to monitorize your server
Thanks - very nice :-)

truzone Wrote:Hello

to monitor fail2ban with monit:

First you must have the last fail2ban last version (0.8.2) If you have debian etch your fail2ban version is 0.7.5 To install fail2ban 0.8.2 in debian etch: http://www.isp-control.net/forum/howto-i...-3340.html

Now open /etc/monit/monitrc

Code:
# vi /etc/monit/monitrc

Add at the end

Code:
# fail2ban
check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
   group services
   start program = "/etc/init.d/fail2ban start"
   stop  program = "/etc/init.d/fail2ban stop"
   if 5 restarts within 5 cycles then timeout
05-20-2008 05:53 PM
Find all posts by this user Quote this message in a reply
brafi Offline
Junior Member
*

Posts: 11
Joined: Aug 2007
Reputation: 0
Post: #25
RE: [How-to] Configure MONIT to monitorize your server
What is the login-password and username for this script?
01-04-2009 08:33 AM
Find all posts by this user Quote this message in a reply
r3r3 Offline
Junior Member
*

Posts: 20
Joined: Dec 2008
Reputation: 0
Post: #26
RE: [How-to] Configure MONIT to monitorize your server
Hey guys, i folowed this monit tutorial but i can get the web interface to show
I don't understand what's wrong.

i run debian etch with ispcp rc7

all seems fine, monit is running it checks for services, restart them etc but no webgui
04-05-2009 12:00 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #27
RE: [How-to] Configure MONIT to monitorize your server
Check the right Port, is the Port open ?

Greez BeNe
04-06-2009 02:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
server801 Offline
Moderator
*****
Moderators

Posts: 349
Joined: Mar 2009
Reputation: 1
Post: #28
RE: [How-to] Configure MONIT to monitorize your server
here is the issues with the creation of certificates
Code:
openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /etc/monit/monit.pem -keyout /etc/monit/monit.pem
error on line -1 of ./monit.cnf
25537:error:02001002:system library:fopen:No such file or directory:bss_file.c:122:fopen('./monit.cnf','rb')
25537:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:125:
25537:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:197:
Debian Lenny
(This post was last modified: 04-19-2009 05:42 PM by server801.)
04-19-2009 05:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #29
RE: [How-to] Configure MONIT to monitorize your server
Code:
./monit.cnf
Sure this is right ? This file does not exits!
Code:
fopen:No such file or directory
Try to change in the directory of this file and use it without the "./"

Greez BeNe
04-19-2009 08:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
server801 Offline
Moderator
*****
Moderators

Posts: 349
Joined: Mar 2009
Reputation: 1
Post: #30
RE: [How-to] Configure MONIT to monitorize your server
thanks!
04-20-2009 12:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)