how to use multiple lines for hosts enumeration...
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Thu May 15 06:07:23 CEST 2003
Dear Sir,
I am writing to thank you for your letter and say,
On Wed, May 14, 2003 at 08:14:23PM -0400, Francois Meehan wrote:
> Hi all,
>
> In entering info in hostgroups.cfg, I have a group that will contain 40
> servers, how can I spread the servers into multiple lines?
>
perhaps like this
define hostgroup{
hostgroup_name Canberra Data
alias Canberra LAN
contact_groups network-admins
members
tsitc,networks2,wins,DH5000,Sir5000,Sir_29_3,Sir_29_4,Sir_29_8,Sir_29_160,Sir_29_161,Disc_NG_10,Disc_NG_11,Disc_S
G_15,Disc_SG_16,Disc_SG_17,Disc_N1_20,Disc_N1_21,Disc_N1_22,Disc_N1_23,Disc_S1_25,Disc_S1_26,Disc_S1_27,Disc_N2_30,Disc_N2_31,Disc_N2_32,Disc_N2_
33,Disc_S2_35,Disc_S2_36,Disc_S2_37,Disc_N3_40,Disc_N3_41,Disc_N3_42,Disc_S3_45,Disc_S3_46,Disc_S3_47,Disc_N4_50,Disc_N4_51,Disc_N4_52,Disc_S4_55
,Disc_S4_56,Disc_S4_57,Sir_C1_60,Sir_C1_61,Sir_C1_62,Sir_C1_63,Sir_C1_64,Sir_C1_65,Sir_C1_66,Sir_C1_67,Sir_C1_68,Sir_B1_70,Sir_B1_71,Sir_B1_72,Si
r_B1_73,Sir_B1_75,Sir_B1_76,Sir_A1_80,Sir_A1_81,Sir_A1_82,Sir_A1_83,Sir_A1_84,Sir_A1_85,Sir_A1_86,Sir_A1_87,Sir_A1_88,Sir_A1_89,Sir_A1_180,Sir_A1
_185,Sir_A1_186,Sir_A1_187,Sir_B3_90,Sir_B3_91,ServerIron,VirtualDNS,Sir_29_9,Sir_29_162,Disc_N3_43,Sir_C1_69,Disc_SG_18,Disc_S1_28,Sir_A1_92,Sir
_A1_93,Sir_A1_94,dc-ups-snmp,FastIronII
}
The only limits are the length of the hostgroup buffers defined in the
headers (search the arhives on gmane for discussion about extending
those limits).
It is only shells that interpret "\n" specially. To a C program like
Nag, "\n" is only another character from 'type char'. Nag interprets it
as white space.
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
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