M/Monit doesn't need to run as root => adding group is better practice, but if you don't want to add it, you can remove the "gid" option (M/Monit will then start with the same group as Monit is running)
Regards, Martin On 25 Jun 2014, at 23:21, Bruce MacKenzie <[email protected]> wrote: > I did not set up a group. Can I just use the start stop command? > > Bruce > [email protected] > > > > On Jun 25, 2014, at 1:36 PM, Martin Pala <[email protected]> wrote: > >> Does the group exist? (grep mmonit /etc/group) >> >> >> >> On 25 Jun 2014, at 22:34, Bruce MacKenzie <[email protected]> wrote: >> >>> Thanks for your reply. Now I get this; >>> Requested group not found on the system ''mmonit'' >>> Bruce >>> [email protected] >>> >>> >>> >>> On Jun 25, 2014, at 12:05 PM, Martin Pala <[email protected]> wrote: >>> >>>> "mmonit" is reserved word (for "set mmonit" statement) ... you need to >>>> quote it when used in the uid/gid options: >>>> >>>> --8<-- >>>> check process mmonit with pidfile /usr/local/mmonit/logs/mmonit.pid >>>> start program = "/usr/local/mmonit/bin/mmonit" as uid "mmonit" and gid >>>> "mmonit" >>>> stop program = "/usr/local/mmonit/bin/mmonit stop" as uid "mmonit" and gid >>>> "mmonit" >>>> --8<-- >>>> >>>> Regards, >>>> Martin >>>> >>>> >>>> On 25 Jun 2014, at 20:06, Bruce MacKenzie <[email protected]> wrote: >>>> >>>>> I’m trying to monitor mmonit. I set up monitrc as so; >>>>> check process mmonit with pidfile /usr/local/mmonit/logs/mmonit.pid >>>>> start program = "/usr/local/mmonit/bin/mmonit" as uid mmonit and gid >>>>> mmonit >>>>> stop program = "/usr/local/mmonit/bin/mmonit stop" as uid mmonit and gid >>>>> mmonit >>>>> When I check monit -t I get; >>>>> >>>>> /root/monit-5.8.1/monitrc:224: syntax error ‘mmonit' >>>>> >>>>> Anyone have any ideas? >>>>> >>>>> Bruce >>>>> [email protected] >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> To unsubscribe: >>>>> https://lists.nongnu.org/mailman/listinfo/monit-general >>>> >>>> >>>> -- >>>> To unsubscribe: >>>> https://lists.nongnu.org/mailman/listinfo/monit-general >>> >>> >>> -- >>> To unsubscribe: >>> https://lists.nongnu.org/mailman/listinfo/monit-general >> >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
