resource.cfg file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
marge
Posts: 1
Joined: Sun Jun 27, 2010 12:55 pm

resource.cfg file

Post by marge »

I would like to modify resource.cfg file.
Is-it possible with nagiosxi through the graphical interface
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: resource.cfg file

Post by mmestnik »

This my be of interest to you,
http://www.nagiosql.org/forum/5-general ... ition.html

Off the top of my head I say put it into a versioning system so if/when it gets clobbered by an upgrade you can merge in your changes.
I used to use rcs all the time, but lately we have been using bzr.
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: resource.cfg file

Post by hhlodge »

I looked for this today as I want to add some user-definable macros but couldn't find it anywhere within XI. So I manually edited the file and then did a "Write config files" and this file wasn't overwritten, nor was ndo2db.cfg, ndomod.cfg, nrpe.cfg, nsca.cfg or send_nsca.cfg. Is these truly maintained externally from the XI interface and if so, why? Thanks.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: resource.cfg file

Post by mguthrie »

You can define custom macros at the host, service, and contact level. I haven't actually tried defining new global macros in the resource.cfg file, but I'm guessing that would probably work.

The below files are not managed by the Core Config Manager:
ndo2db.cfg, ndomod.cfg, nrpe.cfg, nsca.cfg or send_nsca.cfg.

The Core Config Manager is for maintaining object configuration files (hosts, services, contacts, etc), and all of the above configs are for Nagios Addons/Components that are integrated with XI.
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: resource.cfg file

Post by hhlodge »

Yes, I've confirmed it works with a macro set in resources.cfg and referenced by a service maintained via XI. I am using this for our WMI account password that will be used by hundreds of hosts and services and this way, if we need to change the password in AD, I only need to change it in one place in Nagios.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: resource.cfg file

Post by mguthrie »

Awesome! We haven't had a whole lot of requests about that, but that's a handy thing to know. Thanks for the update.
Locked