IPV6 only???

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
parkprimus
Posts: 10
Joined: Fri May 29, 2015 3:33 pm

IPV6 only???

Post by parkprimus »

Fresh install of CentOS7, Fresh install of Nagios Log server ( demo version ) and only listening ports are tcp6 5544 and udp6 5544. There are no tcp 5544 or udp 5544 ports listening so it will never work until I get this sorted.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: IPV6 only???

Post by jolson »

Please try the following commands out.

Code: Select all

export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"
systemctl restart elasticsearch
systemctl restart logstash
If this works for you, we'll need to set the _JAVA_OPTIONS variable permanently.

Code: Select all

echo "_JAVA_OPTIONS='-Djava.net.preferIPv4Stack=true'" >> /etc/environment
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
parkprimus
Posts: 10
Joined: Fri May 29, 2015 3:33 pm

Re: IPV6 only???

Post by parkprimus »

Sorry. Did not work.
This really sucks because I am so close to getting this project underway but I can seem to get nagios to use ipv4. That is pretty lame and irritating.

etc/services has been edited. I have tried several ports and nagios does touch ipv4. Not sure what else to do except through nagios away and not buy it and get another log solutions that works. Any suggestions?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: IPV6 only???

Post by jolson »

The most likely fix would be to use our pre-built VM instead of rolling your own CentOS 7 box. If you would prefer using CentOS 7, are you certain that you cannot access to ports in question via IPV4?

From a remote box:

Code: Select all

telnet <NLS IPV4 address> 5544
If not, we can try disabling IPV6 entirely at the system level:

Code: Select all

echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
Apply the above changes:

Code: Select all

sysctl -p
Restart services:

Code: Select all

service elasticsearch restart
service logstash restart
It's quite possible that IPV4 -> IPV6 translation is being done on the Linux side of things, please test whether or not you can send logs to Nagios Log Server via IPV4 already before implementing the above.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
parkprimus
Posts: 10
Joined: Fri May 29, 2015 3:33 pm

Re: IPV6 only???

Post by parkprimus »

So I reinstalled OS and Nagios Log server.

Same results. Very strange! ipv4 works perfectly for other things, http,ssh and what not but for some reason I can not get nagios to listen on ipv4.

I don't get it
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: IPV6 only???

Post by jolson »

Did you try sending logs to the IPV4 address/ports? If that didn't work, did you attempt the procedure I mentioned above?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
parkprimus
Posts: 10
Joined: Fri May 29, 2015 3:33 pm

Re: IPV6 only???

Post by parkprimus »

jolson wrote:Did you try sending logs to the IPV4 address/ports? If that didn't work, did you attempt the procedure I mentioned above?
I did try the procedure mentioned above, on both attempts. I am going to scratch trying to do a manual install and am going to attempt using the ova.

I did try sending to those ports even thought they were not listening and it made no difference.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: IPV6 only???

Post by jolson »

Let us know how the template goes for you - the IPV6 problem you faced is concerning. What were the installation steps that you used so that I might reproduce the issue?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
parkprimus
Posts: 10
Joined: Fri May 29, 2015 3:33 pm

Re: IPV6 only???

Post by parkprimus »

I installed using the OVA and it works perfectly now.

The previous attempts I was using the manual setup and I used the instructions on the website (https://library.nagios.com/library/prod ... structions )
I downloaded the lastet 64-bit OS from CentOS and downloaded the latestest version of Nagios Log server.

Thanks for you help
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: IPV6 only???

Post by jolson »

Is there any chance you disabled SELinux before performing the installation?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked