monit service failed to start

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

monit service failed to start

vikas ga
Hi,

Getting below mention error message while starting the monit, please assist.

itsupport@xxx:/etc/monit$ sudo /etc/init.d/monit start
 * Starting daemon monitor monit                                                monit: The control file '/etc/monit/monitrc' must be owned by you.
                                                                         [fail]

itsupport@xxx:/etc/monit$ ls -ltr
total 24
-rwx------ 1 itsupport itsupport 10753 Nov 17  2013 monitrc
drwxr-xr-x 2 root      root       4096 Nov 17  2013 conf.d
drwxr-xr-x 2 root      root       4096 May 24 12:47 templates
drwxr-xr-x 2 root      root       4096 May 24 12:47 monitrc.d

itsupport@xxxx:~$ ls -la .monitrc
-rwx------ 1 itsupport itsupport 56 May 24 13:37 .monitrc
itsupport@parthiban-Lenovo-G580:~$ who
itsupport :0           2018-05-24 14:08 (:0)
itsupport pts/1        2018-05-24 14:10 (:0)

Regards,Vikas



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: monit service failed to start

Guillaume François
Hello,

File owner is  itsupport:itsupport, as explained in the error message, it as to be owned by the one running Monit, so here root:root

2018-05-24 10:52 GMT+02:00 vikas ga <[hidden email]>:
Hi,

Getting below mention error message while starting the monit, please assist.

itsupport@xxx:/etc/monit$ sudo /etc/init.d/monit start
 * Starting daemon monitor monit                                                monit: The control file '/etc/monit/monitrc' must be owned by you.
                                                                         [fail]

itsupport@xxx:/etc/monit$ ls -ltr
total 24
-rwx------ 1 itsupport itsupport 10753 Nov 17  2013 monitrc
drwxr-xr-x 2 root      root       4096 Nov 17  2013 conf.d
drwxr-xr-x 2 root      root       4096 May 24 12:47 templates
drwxr-xr-x 2 root      root       4096 May 24 12:47 monitrc.d

itsupport@xxxx:~$ ls -la .monitrc
-rwx------ 1 itsupport itsupport 56 May 24 13:37 .monitrc
itsupport@parthiban-Lenovo-G580:~$ who
itsupport :0           2018-05-24 14:08 (:0)
itsupport pts/1        2018-05-24 14:10 (:0)

Regards,Vikas



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



--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?*
------END GEEK CODE BLOCK------

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