compact definition of multiple hosts or service groups?
Wilco Holdorp | iiyama
W.Holdorp at iiyama.com
Wed Sep 26 10:21:31 CEST 2012
Hi Justin,
As far as I know, each host/device in the network needs to be defined seperate.
Maybe you can break it up into seperate files, for customers/networks?
BR Wilco
-----Original Message-----
From: Justin T Pryzby [mailto:justinp at norchemlab.com]
Sent: woensdag 26 september 2012 0:54
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] compact definition of multiple hosts or service groups?
Hi Everyone,
I was never able to resolve this question I initially asked some 18 months ago.
Is there any way to define multiple hosts in a single stanza?
I currently have a 600 line long file with handsful of 50+ definitions
like:
define host {
use host0
host_name x
parents y
}
It seems to me, that it "should" be allowed to define all the hosts with the same parent (etc) in one stanza, rather than having 10 stanzas for that. That would reduce duplicated information, make the config file 5x shorter and comparably more maintainable. Is there really no implemented mechanism to defining multiple hosts having identical information without using a separate stanza for each?
Thanks,
Justin
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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
Disclaimer:This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of iiyama International.
If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone.
Please contact the sender if you believe you have received this email in error.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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