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
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
