[Top][All Lists]

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

Re: Is there any way to specify the hostname in the monit config file?

From: Tomas Nunez
Subject: Re: Is there any way to specify the hostname in the monit config file?
Date: Thu, 10 May 2012 11:52:21 +0200

Tested, and it works like a charm!

Thank you very much, it has been a very useful addition.

On Wed, May 9, 2012 at 8:04 PM, Martin Pala <address@hidden> wrote:
Hi Tomas,

currently the hostname is based only on the name assigned to the host (should equal to output of "hostname" utility, expanded to FQDN if found).

We have implemented the support for custom hostname configuration … if the "check system <name>" is defined in the monit configuration file, then the name will be used as hostname. If the given Monit is configured with M/Monit, this hostname will be also used as the initial name of the host entry in M/Monit. If the "check system <name>" is missing, then the hostname defaults to system hostname.

You can get the snapshot of the development source code from here (it's basically 5.4 + the mentioned change):


On May 8, 2012, at 1:18 PM, Tomas Nunez wrote:

> Hi
> Some times you have servers which you refer to with a different name than their host name (host in AWS, for example). If I want monit to report with a different hostname than "hostname -f", can I explicitly specify the host name in the config file? Is there any workaround?
> I've found no such option in the config file or the documentation...
> Thanks!
> --
> To unsubscribe:

To unsubscribe:

Tomàs Núñez
IT Production Systems

Tel. + 34 93 553 18 06 (Ext. 932)
Fax. + 34 93 396 18 52
LLull 113-119 - 08005 Barcelona
Skype: tomas.nunez.groupalia

reply via email to

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