Monit service name error

If the hostname of the server is 'apache' then the conflict is with the default rule for monitoring the system load.

Monit seems to have the implicit rule of 'check system hostname', where the hostname is the output of hostname command.

You can overwrite that by adding just a line like:

check system newhostname

For example:

check system localhost

I saw this error when I forgot to comment out the line:

include /etc/monit/conf.d/*

in a custom /etc/monit/conf.d/myprogram.conf file, so it was recursively including that file.