On 20.01.2014 17:07, Mark Haney wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/20/2014 11:01 AM, Michael Friedrich wrote:


Icinga 2 doesn't care as long as it's included. The config parser
reads all objects into memory and then tries to find relationships
- so the order of inclusion doesn't matter, as long as it's
included.

If you happen to have a file named "commands.conf" where you'll add
all your commands, it's a possible strategy.

Others then to create directories with file names based on
services, such as nrpe.conf and add all commands and host/services
over there.

That's actually something you should design / decide. But probably
some more best practices are needed.

ding-dong: https://dev.icinga.org/issues/5505

I didn't think it mattered, but was curious to what others typically
do.  I know I has a commands.cfg file with Nagios, but with the syntax
differences I wasn't sure if the SOP was the same or not.

Call it "schnitzel.conf" - will also work. If you want to compare it with Nagios/Icinga 1.x - the config parser works quite the same (but actually in a way that's reasonable to maintain and easy to extend). In regards of reading the files there's additional stuff available, like pattern matching and wildcards, and also _relative_ paths.


include all *.conf files in a dir (non recursive)

include "foo/*.conf"

include all *.conf pattern matches recursively in directory "conf.d"

include_recursive "conf.d" "*.conf"




- --
Mark Haney
Network Administrator/IT Support
Practichem
W:919-714-8428
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS3UnDAAoJEDgEuzPE0JQvZQIIANdAZ3zde1vSfkV8KzpYFaVe
XfcsvWoIJSizEaT4Poyw3ckfs3DWl6ZYWkLY2z+rObKRzuN1wgNX1SBHFGy5P6h2
yRsFpBb+ygWSyv7i6LcyqzEIQxf/Qvk+n4lNgGNR+JN8aiBwRoNJkuvnA1YLV1W/
HO57tdCbg9Ti0RyyRgsCUW9HypDxcKOsPiQaG+J+SeWp4AxZFBqWQFBK8dwSFpNL
m4PaLO9EzXNneRMoLikhj6Rl26+BDi+U9BjZ1bwmPWTZmttduZ1HDJFTyuPW91sk
US9M4ezyJ434R/nMeOIlCb1zaSNSSZJl30EWCUCtUNFcXKVWs/4ID+SuXuiumvw=
=fHdT
-----END PGP SIGNATURE-----

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users



--
DI (FH) Michael Friedrich

mail:     michael.friedr...@gmail.com
twitter:  https://twitter.com/dnsmichi
jabber:   dnsmi...@jabber.ccc.de
irc:      irc.freenode.net/icinga dnsmichi

icinga open source monitoring
position: lead core developer
url:      https://www.icinga.org
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to