Page 1 of 1
IPV6 only???
Posted: Fri May 29, 2015 3:56 pm
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.
Re: IPV6 only???
Posted: Mon Jun 01, 2015 9:33 am
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
Re: IPV6 only???
Posted: Tue Jun 02, 2015 9:32 am
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?
Re: IPV6 only???
Posted: Tue Jun 02, 2015 10:21 am
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:
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:
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.
Re: IPV6 only???
Posted: Tue Jun 02, 2015 2:53 pm
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
Re: IPV6 only???
Posted: Tue Jun 02, 2015 3:08 pm
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?
Re: IPV6 only???
Posted: Wed Jun 03, 2015 9:47 am
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.
Re: IPV6 only???
Posted: Wed Jun 03, 2015 11:05 am
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?
Re: IPV6 only???
Posted: Wed Jun 03, 2015 2:19 pm
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
Re: IPV6 only???
Posted: Wed Jun 03, 2015 2:23 pm
by jolson
Is there any chance you disabled SELinux before performing the installation?