Hi There,
first thanks for the nice solution I'm evaluating right now.
Is there a way to show DNS names instead of the IPs in the dashboard?
DNS is working properly on the machine.
Best regards
David
Have DNS names instead of IPs in dashboard
Have DNS names instead of IPs in dashboard
Last edited by dwhitfield on Tue Oct 11, 2016 9:50 am, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Have DNS names instead of IPs in dashboard
You will be interested in the DNS filter: http://logstash.net/docs/1.4.2/filters/dns
When you enable the above filter and logs come in, Nagios Log Server will attempt to resolve the IPs to names via reverse DNS lookup. NLS can then re-write specified fields with FQDN instead of an IP.
You will likely want to define a filter similar to the following:
When you enable the above filter and logs come in, Nagios Log Server will attempt to resolve the IPs to names via reverse DNS lookup. NLS can then re-write specified fields with FQDN instead of an IP.
You will likely want to define a filter similar to the following:
Code: Select all
dns {
reverse => [ "host" ]
action => [ "replace" ]
add_tag => [ "dns" ]
}
Re: Have DNS names instead of IPs in dashboard
Thanks for the hint.
I also just figured out there's a field called Hostname
I also just figured out there's a field called Hostname
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Have DNS names instead of IPs in dashboard
Awesome! It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Re: Have DNS names instead of IPs in dashboard
Of course! Please close/lock it 
Thank you for the promt help!
Thank you for the promt help!
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Have DNS names instead of IPs in dashboard
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!