IPV6 only???
-
parkprimus
- Posts: 10
- Joined: Fri May 29, 2015 3:33 pm
IPV6 only???
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???
Please try the following commands out.
If this works for you, we'll need to set the _JAVA_OPTIONS variable permanently.
Code: Select all
export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"
systemctl restart elasticsearch
systemctl restart logstashCode: Select all
echo "_JAVA_OPTIONS='-Djava.net.preferIPv4Stack=true'" >> /etc/environment-
parkprimus
- Posts: 10
- Joined: Fri May 29, 2015 3:33 pm
Re: IPV6 only???
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?
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???
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:
Apply the above changes:
Restart services:
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.
From a remote box:
Code: Select all
telnet <NLS IPV4 address> 5544Code: 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.confCode: Select all
sysctl -pCode: Select all
service elasticsearch restart
service logstash restart-
parkprimus
- Posts: 10
- Joined: Fri May 29, 2015 3:33 pm
Re: IPV6 only???
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
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???
Did you try sending logs to the IPV4 address/ports? If that didn't work, did you attempt the procedure I mentioned above?
-
parkprimus
- Posts: 10
- Joined: Fri May 29, 2015 3:33 pm
Re: IPV6 only???
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.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 sending to those ports even thought they were not listening and it made no difference.
Re: IPV6 only???
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?
-
parkprimus
- Posts: 10
- Joined: Fri May 29, 2015 3:33 pm
Re: IPV6 only???
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
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???
Is there any chance you disabled SELinux before performing the installation?