Large hostgroups?
Dr John Hearns
jhearns at tuls.pauken.co.uk
Fri Dec 5 12:31:08 CET 2003
I'm trying to configure Nagios to monitor a large cluster of
Linux machines.
I've made a little script which will add a host definition for
each node to the hosts.cfg file (there may be hundreds of nodes).
I create a hostgroup called nodes:
define hostgroup{
hostgroup_name nodes
alias Compute Nodes
contact_groups cluster-admins
members node01 node02 node03 node04 node05 node06 node07 node08
node09 node10
}
The problem is that I can't get all the nodes in the members.
nagios -v returns:
Error: Host name 'node01 node02 node03 node04 node05 node06 node07
node08 node09 node10' for service 'SENSORS-NODES' exceeds maximum length
of 63 characters
Help!
Is there an elegant way to get 100's of nodes in the members,
without having a huge long string?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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