Line Limit for a Nagios Configuration
Brian E. Seppanen
seppy at chartermi.net
Wed Jun 9 23:02:45 CEST 2004
On Wed, 9 Jun 2004, Brian E. Seppanen wrote:
> Hi Folks:
>
> Is there some sort of line limit for nagios when it reads in a
> configuration file.
>
> The reason I ask is I have to create daily a configuration file that
> monitors about 3952 hosts, and growing each day. When I create my
> configuration I get an error when doing the syntax check.
>
> Error: Could not add object property in file
> '/usr/local/nagios/etc/devic.cfg' on line 27670.
>
> Line 27670 is the last line of my hostgroup defintion.
>
> the hostgroup definition is
> define hostgroup{
> use mygroup
> hostgroup_name MACS
> alias DEVICES
> members 00_00_ca_24_4f_24,00_00_ca_30_24_7c,00_00_ca_30_24_7d,00_00_ca_30_24_b4,00_00_ca_30_24_b5,00_00_ca_30_25_24,00_00_ca_30_25_25,00_00_ca_30_25_28,00_00_ca_30_25_29,00_00_ca_30_25_38,00_00_ca_30_25_39,00_00_ca_30_3a_f1,00_00_ca_30_3a_f5,00_00_ca_30_3a_f9,00_00_ca_30_3a_fd,00_00_ca_30_3b_01,00_00_ca_30_3b_05,00_00_ca_30_3b_09,00_00_ca_30_3b_0d,00_00_ca_30_3b_19,00_00_ca_30_3b_1d,00_00_ca_30_3b_25,00_00_ca_30_3b_29,00_00_ca_30_3b_39,00_00_ca_30_3b_3d,00_00_ca_30_3b_45,00_00_ca_30_3b_49,00_00_ca_30_3b_55,00_00_ca_30_3b_59,00_00_ca_30_3b_65,00_00_ca_30_3b_71,00_00_ca_30_3b_79,00_00_ca_30_3b_81,00_00_ca_30_3b_89,00_00_ca_30_3b_91,00_00_ca_30_3b_95,00_00_ca_30_3b_99,00_00_ca_30_3b_9d,00_00_ca_30_3b_b1,00_00_ca_30_3b_b5,00_00_ca_30_3b_b9,00_00_ca_30_3b_bd,00_00_ca_30_3b_c1,00_00_ca_30_3b_c5,00_00_ca_30_3b_c9,00_00_ca_30_3b_cd,00_00_ca_30_3b_d1,00_00_ca_30_3b_d5,00_00_ca_30_3b_d9,00_00_ca_30_3b_dd,00_00_ca_30_3b_e1,00_00_ca_30_3b_e5,00_00_ca_30_3b_e9,00_00_ca_30_3b_f5,00_00_ca_30_3b_f9
> }
>
> The members line includes the inforamtion for all 3952 devices, and so is
> one long line of 3953 ids seperated by a comma. Where would the
> limitation be in what I'm doing that doesn't allow it to read the
> configuration option.
>
> Thanks for the assistance.
>
>
I've tried a loop that would take each 500 devices and seperate them it
into a new hostgroup.
Here's what I got,
with 500 devices per hostgroup I got the same error as above Error: Could
not add object property in file
If I tried seperating 250 devices per hostgroup, I would get a
segmentation fault when attempting to do a syntax check.
So it appears I've run into a file size limitation in one case, and in
another case run up against a buffer or line size limitation. Do I have
any way around this?
Anyone else with a large configuration file that they can attest works
that would at least encourage me that I'm not trying to accomplish the
impossible, or at least extremely difficult. Say a config file about
548K?
Thanks,
Brian Seppanen
seppy at chartermi.net
906-475-0107 ext 1040
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
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