Page 2 of 2
Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 8:26 am
by djohansen
Thanks for the clarification !
I am also assuming if I backup/copy/restore, I need to change to passive, PLUS change the service hostname as well to the remote host's hostname correct? Both hosts have "localhost" as the service on their respective systems? This is what the wizard seems to do.
I can send events via "http://<server>/nrdp" just fine, just haven't gotten A to send to B yet... no gotchas like hosts.allow entries are there?
Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 8:31 am
by eloyd
Sorry, my assumption was that you were monitoring hosts other than localhost (the Nagios server). If that's the case, you'll likely want to switch from "localhost" to the actual hostname in your Server A config, so that when that data gets sent to Server B, the hostname makes more sense.
As for /etc/hosts.allow, no, nothing like that, though you will need to do Inbound Transfer work in Server B's Nagios Admin page, and I can't remember if it automatically opens a firewall port or not (via /etc/sysconfig/iptables).
Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 9:44 am
by ssax
On
Server A go to
Admin > Inbound Transfers:
- On the
NRDP tab, set the
Authentication Token (you can use one per line if you want to use multiple)
- Click the
Update Settings button
On
Server B go to
Admin > Outbound Transfers:
- On the
Global Options tab, check the box next to
Enable outbound check transfers
- On the
NRDP tab:
>>> Check the box next to
Enable NRDP outbound check transfers
>>> Type the IP address or DNS name of
Server A in the
IP Address field
>>> Select
HTTP or
HTTPS for the
Method
>>> Type in the
Authentication Token from
Admin > Inbound Transfers on
Server A
>>> Click the
Update Settings button
Now it should be set up to work.
If they are still not coming through, SSH into
Server B, run this command, and send us the full output:
- Change X.X.X.X to the IP or DNS name of
Server A
Thank you
Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 9:48 am
by eloyd
@ssax has it backwards from what I was using. I assume you want to send from server A to server B, but his instructions are for B -> A.

Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 10:43 am
by djohansen
Thanks for all the great info so far.. I'm diving back into it in a few here.. I caught that the approaches were reversed, but still valid..
I understand the concepts, but being new to Nagios, I have run across quite a few "gotchas" either based on how we build our systems or certain assumptions as to system configuration that
I am not fully familiar with yet. (I worked with HPOV for 20 years)
One quick, sorta related topic...
All the servers seem to default to "localhost" for local monitoring on each server..
At first it was confusing, but I blindly grew to accept that as the way to do it. Can I
rename my templates to the hostname instead of using "localhost"? I have brainwashed myself to only do it that way..

Re: Message forwarding (primary to backup)
Posted: Tue Jul 18, 2017 2:33 pm
by dwhitfield
djohansen wrote:Can I rename my templates to the hostname instead of using "localhost"? I
Yes, but make sure you change it in the CCM, not the template file. Also, I'm not sure you mean template since that's the first place anyone uses templates in the thread, but if you mean host and services, the answer is yes.
Re: Message forwarding (primary to backup)
Posted: Wed Jul 19, 2017 12:07 am
by djohansen
My term of template (policy later on) is a holdover from my Openview days.. I changed everything in the CCM in hosts and services. Upon realization template has an entirely different meaning in Nagios. All part of the learning curve
Re: Message forwarding (primary to backup)
Posted: Wed Jul 19, 2017 12:34 pm
by tgriep
After you use the system, it will become easier.
Let us know if you have any more questions on this subject or that it is alright to close the post.