trouble installing monit!

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
Arkie
Posts: 38
Joined: Tuesday 03 December 2013 15:24
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: The Netherlands
Contact:

trouble installing monit!

Post 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
Synology DS412+
Philips Hue
Fibaro
Logitech Hamony elite
Foscam 9804 ip cam
RFXtrx433E USB 433.92MHz
ZXT 120 eu AC controller
Heatmiser NEO stat thermostats and Hub
jackslayter
Posts: 59
Joined: Tuesday 07 October 2014 11:00
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: France RA
Contact:

Re: trouble installing monit!

Post by jackslayter »

Try with

Code: Select all

sudo monit reload
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
User avatar
Arkie
Posts: 38
Joined: Tuesday 03 December 2013 15:24
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: The Netherlands
Contact:

Re: trouble installing monit!

Post by Arkie »

ok that works 8-) 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
Synology DS412+
Philips Hue
Fibaro
Logitech Hamony elite
Foscam 9804 ip cam
RFXtrx433E USB 433.92MHz
ZXT 120 eu AC controller
Heatmiser NEO stat thermostats and Hub
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: trouble installing monit!

Post 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.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
User avatar
Arkie
Posts: 38
Joined: Tuesday 03 December 2013 15:24
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: The Netherlands
Contact:

Re: trouble installing monit!

Post by Arkie »

thanx for the help it works, very happy :D
Synology DS412+
Philips Hue
Fibaro
Logitech Hamony elite
Foscam 9804 ip cam
RFXtrx433E USB 433.92MHz
ZXT 120 eu AC controller
Heatmiser NEO stat thermostats and Hub
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: trouble installing monit!

Post by gizmocuz »

Did you got the email notifications to work ?
I had some trouble with it, can post my config
Quality outlives Quantity!
User avatar
Arkie
Posts: 38
Joined: Tuesday 03 December 2013 15:24
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: The Netherlands
Contact:

Re: trouble installing monit!

Post 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 :lol:

regards
Synology DS412+
Philips Hue
Fibaro
Logitech Hamony elite
Foscam 9804 ip cam
RFXtrx433E USB 433.92MHz
ZXT 120 eu AC controller
Heatmiser NEO stat thermostats and Hub
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: trouble installing monit!

Post 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 ~ $
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: trouble installing monit!

Post by bizziebis »

Try

sudo service monit start
LJ80
Posts: 20
Joined: Wednesday 14 January 2015 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: trouble installing monit!

Post 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?
LJ80
Posts: 20
Joined: Wednesday 14 January 2015 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: trouble installing monit!

Post by LJ80 »

who can help me please...
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: trouble installing monit!

Post 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?
LJ80
Posts: 20
Joined: Wednesday 14 January 2015 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: trouble installing monit!

Post 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.... :x
Wing
Posts: 1
Joined: Tuesday 26 January 2016 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: trouble installing monit!

Post 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
Flitske
Posts: 5
Joined: Monday 12 November 2018 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: trouble installing monit!

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests