Have DNS names instead of IPs in dashboard

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ogghi
Posts: 3
Joined: Mon Oct 10, 2016 7:22 am

Have DNS names instead of IPs in dashboard

Post by ogghi »

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
Last edited by dwhitfield on Tue Oct 11, 2016 9:50 am, edited 1 time in total.
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

Post by dwhitfield »

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:

Code: Select all

dns {
reverse => [ "host" ]
action => [ "replace" ]
add_tag => [ "dns" ]
}
ogghi
Posts: 3
Joined: Mon Oct 10, 2016 7:22 am

Re: Have DNS names instead of IPs in dashboard

Post by ogghi »

Thanks for the hint.
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

Post by dwhitfield »

Awesome! It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
ogghi
Posts: 3
Joined: Mon Oct 10, 2016 7:22 am

Re: Have DNS names instead of IPs in dashboard

Post by ogghi »

Of course! Please close/lock it :)
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

Post by dwhitfield »

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!
Locked