[Top][All Lists]

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

Re: Variables in MONIT config file?

From: Eric Pailleau
Subject: Re: Variables in MONIT config file?
Date: Fri, 20 May 2011 09:19:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5


Sorry did a mistake in variable assigment, read instead :


HOST = $(shell hostname)

all :
        @echo "check host $(HOST) with address $(HOST)" > monitrc
        @echo " if failed url http://user:address@hidden(HOST):8080/?querystring" 
>> monitrc
        @echo " then alert " >> monitrc

Note that the Makefile can be the same for all,
but the 'make all' should be done before monit start,
generally in the /etc/init.d/monit script ...


reply via email to

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