Time-Wasting Tricks
Dirk Westfal
dirk.westfal at frankfurter-verein.de
Fri Mar 18 17:42:32 CET 2005
Marc Powell schrieb:
...
>
>>to implement a single service for all hosts in a hostgroup. This would
>>indeed save me a lot of time. However, I get the following error when
>>starting Nagios:
>>
>> Error: Host name 'prod.aidworld.org www1.loband.org
>> mail.aidworld.org www3.loband.org www4.loband.org
>> www5.loband.org www6.loband.org' for service 'ssh' exceeds
>> maximum length of 63 characters
>>
>>Is there some way to increase the limit of 63 characters, or make this
>>"trick" useful in some way, apart from splitting my hostgroups which
>>will break all of my configuration?
>
....
> On the off chance that doesn't work for you, you could try increasing
> 'common/objects.h:#define MAX_HOSTNAME_LENGTH' but I am not personally
> aware of anyone that's done that so I can't say what the consequences
> would be. The preferred solution would then be to use the hostgroup_name
> directive as follows --
I`ve done exactly this to autocreate all required nagios config files
via a perl parser from an csv file.
This way i can easely put 10 or more hosts into one service check.
(I`m monitoring 96 systems and 180 services)
This works very well in 1.x and 2.x versions (nagios-2.0b2 actually).
It also helps to use shorter symbolic names, eg. prod-1 instead of
prod.aidworld.org. (or fvvpn-xxx instead of the fqdn)
Best Regards,
Dirk Westfal
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list