Install nrds agent from nas

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Install nrds agent from nas

Post by grenley »

Hi.

I'm trying to build a scripted nrds agent install package from a nas drive rather than using wget from an XI server.
I understand the implications with respect to the token and the XI server address and will accommodate that in the script.
I've looked for a similar question on the forums, but have had no luck.
Do you have a procedure you can point me to for this?
I can pore through the php scripts and deconstruct what the nrdsgetclient function is doing, but I'm hoping you can spare me the effort.

Thanks very much,
Rick
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: Install nrds agent from nas

Post by grenley »

In thinking more about this, I'm wondering if I could just tar up the /usr/local/nagios and /usr/local/nrdp directories from my installed agent and just put them on the nas. I could then make the appropriate nrds.cfg change, from my install script, to point to a passed XI server name and add the cron to run nrds.pl.
Seem reasonable?
It can't really be that simple, can it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Install nrds agent from nas

Post by scottwilkerson »

grenley wrote:In thinking more about this, I'm wondering if I could just tar up the /usr/local/nagios and /usr/local/nrdp directories from my installed agent and just put them on the nas. I could then make the appropriate nrds.cfg change, from my install script, to point to a passed XI server name and add the cron to run nrds.pl.
Seem reasonable?
It can't really be that simple, can it?
You don't need all that. The easiest way would be to make a NRDS configuration from the UI, then click the disk icon in the UI to download the tarball you can place this on your NAS.

The only real changes you will need to make are in fact in the nrds.cfg

Once those changes are make run

Code: Select all

./installnrds HOSTNAME INTERVAL
To have the cron set.

The biggest thing is going to be making sure you have the correct token, XI server address and config name (needs to match a config on the server)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: Install nrds agent from nas

Post by grenley »

Much better approach.
Thanks very much Scott.
Locked