monit-general
[Top][All Lists]
Advanced

[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:08:21 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5

Hello,

Using a Makefile is more usefull

Example :

----------------------------------------------

HOST = `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
----------------------------------------------
then
$> make all



reply via email to

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