monit-general
[Top][All Lists]
Advanced

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

Re: Testing connectivity to a SMPP-server (Pratap: log file)


From: Martin Pala
Subject: Re: Testing connectivity to a SMPP-server (Pratap: log file)
Date: Wed, 14 Sep 2011 16:11:04 +0200

Pratap,

please *don't* post completely different questions as response to other user's question (in this case even twice - memory report and SMPP) - send standalone mail and do not mix the threads.


Regarding the log file … you can set the logfile in the monit configuration file using the "set logfile <path>" (no "-l" is then necessary). The command line option "-l" can be used as well, it makes however sense only when you start Monit daemon - the output which you provided shows, that Monit is running already and if it was not started with the "-l" and the "set logfile" is missing in monitrc, then it is not configured to log to this file (you can verify this by check the monit arguments with "ps -ef | grep monit").

Possible solutions:
1.) either add the "set logfile ..." to monitrc and restart monit
2.) or stop monit daemon and start it again with the "-l …" option


Regards,
Martin


On Sep 14, 2011, at 2:06 PM, Pratap Kumar wrote:

Hi ,


I am using monit5.3.Monit not able to write logs to a specified file.

ex.#monit -l /var/monit.log
[IST Sep 14 15:40:35] info     : monit daemon at 18712 awakened
[IST Sep 14 15:41:29] info     : monit daemon at 18712 awakened

could you please help me out.

Thanks in advance for your precious support.


Thanks
Pratap

On Wed, Sep 14, 2011 at 5:19 PM, Jan-Henrik Haukeland <address@hidden> wrote:

On Sep 14, 2011, at 1:14 PM, Marcus Mülbüsch wrote:

>   How do I write a statement that will do one test after the other; and only if the first test succeeded?

This cannot (yet) be expressed in the config language. If-tests are separate statements without an 'else if' part. This will be changed in a later release, though not optimal, maybe you can use the new check program statement and put the test in a script executed by Monit?

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


reply via email to

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