I would like to modify resource.cfg file.
Is-it possible with nagiosxi through the graphical interface
resource.cfg file
Re: resource.cfg file
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.
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.
Re: resource.cfg file
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
Re: resource.cfg file
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.
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.
Re: resource.cfg file
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
Re: resource.cfg file
Awesome! We haven't had a whole lot of requests about that, but that's a handy thing to know. Thanks for the update.