We have a server that when you do an nslookup on the hostname it returns 9 IP's. The server team uses this server for testing on various subnets.
Normally we would add the hostname and IP to nagios but my concern was with the other 8 IP addresses. When I run our auto-discovery report on the various subnets would the IP's show up thinking the server is not in Naiogs.
To my surprise, none of the IP's were reported. I am trying to understand why they are not reported. I am not saying that this is a problem for me, I am just trying to better understand how Nagios is treating this which will
help
Thanks, me better configure devices.
Greg
Question on adding a device with multiple IP's
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Question on adding a device with multiple IP's
Is the nagios server able to ping or traceroute to all 9 of the IPs?
Assuming that turns up nothing, it might be useful to run an auto-discovery and then immediately create a profile and send it. You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically. I suspect the Apache logs will be the most useful. Might end up needding to do a tcpdump, but that won't be in the profile. It'll give us some idea of what's going on though.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Assuming that turns up nothing, it might be useful to run an auto-discovery and then immediately create a profile and send it. You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically. I suspect the Apache logs will be the most useful. Might end up needding to do a tcpdump, but that won't be in the profile. It'll give us some idea of what's going on though.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Question on adding a device with multiple IP's
I have more information. Even though DNS has 9 IP's registered for this test server, The IP's cannot be pinged. They are only active when they are testing that subnet. So running it know would not give
us the information you were asking for.
So That must explain why they IP's didn't appear in my auto-discovery report. If they were testing when I was running it, I assume Nagios would see them. Sorry I jumped the gun without testing if I could
ping it first. I am working to try to account for all IP's so when I run the report, I don't end up with a lot of unexplained IP's that we spend time tracing to see if they are valid.
I do have one question. When I run auto-discovery, when it finds an IP does it then see if it resolves to a hostname?
Thanks,
Greg
us the information you were asking for.
So That must explain why they IP's didn't appear in my auto-discovery report. If they were testing when I was running it, I assume Nagios would see them. Sorry I jumped the gun without testing if I could
ping it first. I am working to try to account for all IP's so when I run the report, I don't end up with a lot of unexplained IP's that we spend time tracing to see if they are valid.
I do have one question. When I run auto-discovery, when it finds an IP does it then see if it resolves to a hostname?
Thanks,
Greg
Re: Question on adding a device with multiple IP's
When you run the Auto-Discovery wizard, there is a selection to choose DNS Names and not the IP addresses so you can import the hosts using the names and not the address.
This should work as long as the Nagios server is setup to use your internal DNS servers.
This should work as long as the Nagios server is setup to use your internal DNS servers.
Be sure to check out our Knowledgebase for helpful articles and solutions!