problems after upgrading to 2014R1.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dhabets
Posts: 5
Joined: Sat Jul 19, 2014 8:38 am

problems after upgrading to 2014R1.3

Post by dhabets »

We were able to upgrade to NagiosXI 2014R1.3, all works fine for existing hosts and services, but if I edit a service or add a new host with services, then the services keeps flapping:

2014-07-19 09:36:47 XXX UP HARD 1 of 5 HTTP OK: HTTP/1.1 200 OK - 79826 bytes in 0.046 second response time
2014-07-19 09:35:56 XXX DOWN HARD 1 of 5 CRITICAL - Network Unreachable (localhost)
2014-07-19 09:31:47 XXX UP HARD 1 of 5 HTTP OK: HTTP/1.1 200 OK - 79826 bytes in 0.047 second response time
2014-07-19 09:30:16 XXX DOWN HARD 1 of 5 CRITICAL - Network Unreachable (localhost)

The nagios node has IPv4 + IPv6 connectivity, but, the checked hosts do not have quad A records. It seems it's doing an IPv6 lookup first and then an IPv4 lookup, but it sends out an alert (which it shouldn't, nothing is down).

How can I force NagiosXI to only use IPv4? Or better yet, not to send out an error when the host only has IPv4, but NagiosXI has IPv4+IPv6.

thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problems after upgrading to 2014R1.3

Post by lmiltchev »

You can pass "-4" flag to your command to force it to use ipv4 only. See the plugins usage:

Code: Select all

/usr/local/nagios/libexec/check_http -h
Be sure to check out our Knowledgebase for helpful articles and solutions!
dhabets
Posts: 5
Joined: Sat Jul 19, 2014 8:38 am

Re: problems after upgrading to 2014R1.3

Post by dhabets »

Thanks, yes, I did that, but there's no IPv6 on the server, nor any quad A for the zone, so why is it trying IPv6? It shouldn't be doing that.

Either way, it's working now. :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problems after upgrading to 2014R1.3

Post by abrist »

It should not try ipv6 first unless it is available. I bet your server is configured to support ipv6 and for some reason the plugin tries that first even though you do not have a valid interface up running ipv6. I just tested on one of my test boxes and didn't experience the issue, so this may be unique to your env.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dhabets
Posts: 5
Joined: Sat Jul 19, 2014 8:38 am

Re: problems after upgrading to 2014R1.3

Post by dhabets »

abrist wrote:It should not try ipv6 first unless it is available. I bet your server is configured to support ipv6 and for some reason the plugin tries that first even though you do not have a valid interface up running ipv6. I just tested on one of my test boxes and didn't experience the issue, so this may be unique to your env.
IPv6 is explicitly disabled, no local either. It only happens for hosts that were in nagios pre upgrade; new ones work fine (but there's too many for me to re-enter all of them).

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: problems after upgrading to 2014R1.3

Post by abrist »

hmmm, Only for ping checks? Did the commands change? Have you ever altered the default ping/host_alive/icmp commands in the ccm?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dhabets
Posts: 5
Joined: Sat Jul 19, 2014 8:38 am

Re: problems after upgrading to 2014R1.3

Post by dhabets »

Yes, ping only; there was a different issue with the host check, but that seemed to be a syntax difference which was solved by just forcing the configs to be rewritten. No, I only altered the command now to add the -4 flag.

Either way, that works for now and I'll remove and re-add the existing hosts slowly over time.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problems after upgrading to 2014R1.3

Post by tmcdonald »

Safe to lock this thread up?
Former Nagios employee
Locked