Page 1 of 1
trouble installing monit!
Posted: Sunday 26 October 2014 15:38
by Arkie
I'm trying to install monit, but i cannot start it!
Code: Select all
pi@domoticzpi ~ $ monit reload
monit: The control file '/etc/monit/monitrc' must be owned by you.
[code#
set httpd port 2812 and
use address 192.168.0.184 # only accept connection from localhost
allow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
# allow @monit # allow users of group 'monit' to connect (rw)
# allow @users readonly # allow users of group 'users' to connect readonly
][/code]
What am i doing wrong, i first made a ramdisk with the wiki
So i changed "var/log/monit.log" to var/tmp/log/monit.log"
regards
Re: trouble installing monit!
Posted: Sunday 26 October 2014 15:45
by jackslayter
Re: trouble installing monit!
Posted: Sunday 26 October 2014 16:06
by Arkie
ok that works
but now i get the next fault:
Code: Select all
monit: Error opening the log file '/var/tmp/log/monit.log' for writing -- No such file or directory
I changed this to the RAM space i made with the wiki :var/tmp or should this be different?
regards
Re: trouble installing monit!
Posted: Sunday 26 October 2014 16:15
by simonrg
It looks like the directory /var/tmp/log doesn't exist as monit will create the monit.log files, so either go into /var/tmp and mkdir log or just change occurences of /var/tmp/log/monit.log to /var/tmp/monit.log.
Re: trouble installing monit!
Posted: Sunday 26 October 2014 17:20
by Arkie
thanx for the help it works, very happy
Re: trouble installing monit!
Posted: Sunday 26 October 2014 17:28
by gizmocuz
Did you got the email notifications to work ?
I had some trouble with it, can post my config
Re: trouble installing monit!
Posted: Sunday 26 October 2014 17:39
by Arkie
I don't have a gmail account, so did not config it.
When domoticz restarts after a crash i'm glad it restarts, don't have to know it
regards
Re: trouble installing monit!
Posted: Saturday 20 June 2015 12:32
by Heisenberg
sorry for bringing up this old thread, but I get the same error message. Hope someone can point me into the right direction?
Code: Select all
pi@domoticzpi ~ $ sudo monit reload
pi@domoticzpi ~ $ monit status
monit: The control file '/etc/monit/monitrc' must be owned by you.
pi@domoticzpi ~ $
Re: trouble installing monit!
Posted: Saturday 20 June 2015 15:18
by bizziebis
Try
sudo service monit start
Re: trouble installing monit!
Posted: Monday 20 July 2015 21:14
by LJ80
Oke trying to install monit because domoticz keeps going offline.
I thought maybe with monit see what happens, because also now we complete new install domoticz goes offline manytimes.
When trying to install monit, after i changed seconds to 300 and madeup ipadress.
In putty I get these messages:
Code: Select all
pi@raspberrypi ~ $ monit
monit: The control file '/etc/monit/monitrc' must be owned by you.
pi@raspberrypi ~ $ monit status
monit: The control file '/etc/monit/monitrc' must be owned by you.
pi@raspberrypi ~ $ sudo monit
/etc/monit/monitrc:119: Error: syntax error '192.168.1.55'
pi@raspberrypi ~ $ sudo monit status
/etc/monit/monitrc:119: Error: syntax error '192.168.1.55'
pi@raspberrypi ~ $
What am i doing wrong?
Re: trouble installing monit!
Posted: Tuesday 21 July 2015 11:35
by LJ80
who can help me please...
Re: trouble installing monit!
Posted: Tuesday 21 July 2015 14:09
by bizziebis
I think you made a mistake in this part:
Code: Select all
set httpd port 2812
use address 12.34.56.789 # only accept connection from localhost
allow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
Can you post the part where you put "192.168.1.55" in?
Re: trouble installing monit!
Posted: Tuesday 21 July 2015 20:14
by LJ80
I have now this :
Code: Select all
use address localhost 192.168.1.1 # only accept connection from localhost
allow localhost 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
admin @monit # allow users of group 'monit' to connect (rw)
allow @users readonly # allow users of group 'users' to connect readonly
And after checking status in putty I get this:
Code: Select all
pi@raspberrypi ~ $ sudo service monit start
[ ok ] Starting daemon monitor: monit.
pi@raspberrypi ~ $ sudo monit status
/etc/monit/monitrc:119: Error: syntax error '192.168.1.1'
So i still did not get this work....
Re: trouble installing monit!
Posted: Friday 18 March 2016 17:58
by Wing
try this:
Code: Select all
set httpd port 2812
use address 192.168.1.1 # only accept connection from localhost
allow localhost 192.168.1.1/255.255.255.0 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
# admin @monit # allow users of group 'monit' to connect (rw)
# allow @users readonly # allow users of group 'users' to connect readonly
Re: trouble installing monit!
Posted: Thursday 15 November 2018 22:45
by Flitske
Hi guys,
Just pulling an old thread out from the attic
I'm trying to get Monit to work. Followed the wiki on domoticz but i get to the part of setting up the webserver which doesn't work on my computer.
I'm trying to open the webpage but it doesn't load, i get the "ERR_CONNECTION_REFUSED" message.
So i tried to see if Monit was running and the reply that i got from my command: "Monit status" was "Cannot open the control file '/etc/monit/monitrc' -- Permission denied" Anyone know what i'm doing wrong here??
Tried setting up the permission using: "sudo chmod 777 /etc/monit/monitrc" command. That didn't fix the problem, it only mad it worse because now i got the message "/etc/monit/monitrc:58: syntax error '!'
The control file '/etc/monit/monitrc' must have permissions no more than -rwx------ (0700); right now permissions are -rwxrwxrwx (0777)."
Please help. Thanks in advance