Upgrade to 1.1 - max length 63 characters
Mark Waterhouse
mwaterho at sgi.com
Tue Jun 17 13:43:17 CEST 2003
Hi
My services.cfg file was beginning to grow very large and so I decided to
employ some of the tricks as detailed at
http://nagios.sourceforge.net/docs/1_0/templatetricks.html#hostgroup
Basically, all hosts in one hostgroup can be checked for the same service at
the same time.
Now, this seemed like a good idea but gave me strange errors. I therefore
decided to upgrade to version 1.1
However, there seems to be a hard limit set on the length of the hostname
when nagios does its preflight checks.
The relevant configs are as follows;
services.cfg
============
default service{
service_description Description to be added
contact_groups nagios-admin
service_description Check Ping Status
check_command check_ping!500!1000
name service_template
register 0
}
define service{
hostgroup_name MailServers
contact_groups nagios-admin
use service_template
}
hostgroups.cfg
==============
define hostgroup{
hostgroup_name MailServers
alias All Mail Servers
contact_groups nagios-admin
members <snip> a list of 21 mail servers with a FQDN
</snip>
}
When I run 'nagios -v ../etc/nagios.cfg', I get the following output
Nagios 1.1
Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
Last Modified: 06-02-2003
License: GPL
Reading configuration data...
Error: Host name '<snip> List of all mail servers </snip>' for service
'Check Ping Status' exceeds maximum length of 63 characters
Error: Could not register service (config file
'/usr/local/nagios/etc/services.cfg', line 11)
***> One or more problems was encountered while processing the config
files...
I suspect that this is a coded limit and wondered if someone could post a
diff to remove it.
Thanks
Mark
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
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