Hello,

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:password@$(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 ...

Regards.


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

Reply via email to