monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax error


From: Martin Pala
Subject: Re: Syntax error
Date: Wed, 25 Jun 2014 23:25:25 +0200

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 <address@hidden> wrote:

> I did not set up a group. Can I just use the start stop command?
> 
> Bruce
> address@hidden
> 
> 
> 
> On Jun 25, 2014, at 1:36 PM, Martin Pala <address@hidden> wrote:
> 
>> Does the group exist? (grep mmonit /etc/group)
>> 
>> 
>> 
>> On 25 Jun 2014, at 22:34, Bruce MacKenzie <address@hidden> wrote:
>> 
>>> Thanks for your reply. Now I get this;
>>> Requested group not found on the system ''mmonit''
>>> Bruce
>>> address@hidden
>>> 
>>> 
>>> 
>>> On Jun 25, 2014, at 12:05 PM, Martin Pala <address@hidden> 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 <address@hidden> 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
>>>>> address@hidden
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]