monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Manually running monit


From: Martin Pala
Subject: Re: [monit] Manually running monit
Date: Tue, 1 Dec 2009 21:34:01 +0100

Hi,

you can use "monit validate" to run test from command line, but it will test all services => you can create second config file which will contain only the service which you want to check and pass it to monit validate like this:

  monit -c /path/to/monitrc_abc validate > /path/to/output 2>&1

Martin


On Dec 1, 2009, at 9:40 AM, Paras Fadte wrote:

Hi,

Is it possible to run monit from command line to test only  a particular service for a particular host at a given instance and have the result/output of it directed to a file  ?

Example:

Host to check : abc.com
Service to check: ICMP


Thank you.

-Paras



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


reply via email to

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