Page 1 of 3

Showing list of host names that have been added

Posted: Tue Oct 28, 2014 1:06 pm
by stecino
Hi all,

Is there a way to show all the hosts that have been added to Nagios Log Server? Unless I can't see, it only says how many hosts have been added, but would be nice to see the hosts.
Also, when you add a specific application log, is this also considered to be as a host? Or is it one IP is one host?

Thanks in advance

Re: Showing list of host names that have been added

Posted: Tue Oct 28, 2014 1:21 pm
by slansing
There is a default Global Dashboard named "Top Sources" which will show you the top 10 sources and when they last updated, you can also drill into them from that dashboard panel, as well as see a pi-chart of their activity. To add a wider "Top Sources" listing, simply edit the panel and change the "Limit to 10" value to whatever you like.

Re: Showing list of host names that have been added

Posted: Tue Oct 28, 2014 5:50 pm
by stecino
Got it thanks, and how would I add these controls to my own dashboard from a scratch? Are these importable from other platforms as well?

Re: Showing list of host names that have been added

Posted: Tue Oct 28, 2014 11:04 pm
by eloyd
You need to have a query that matches what you are looking for, or at least a term to be able to search/sort on, then add a panel of type term and specify the term that you want to count/list. It's easier to show than describe.

Re: Showing list of host names that have been added

Posted: Wed Oct 29, 2014 2:52 pm
by cmerchant
Did eloyd answer your question?

Re: Showing list of host names that have been added

Posted: Wed Oct 29, 2014 8:07 pm
by stecino
Yes, I was able to add a panel.

One more thing I wanted to do was to establish following reference data center -> server type - > syslog or application log -> severity label
Another words, need to be able to select data center on the map, then show all the hosts, then select host from there, then select severity label

I noticed that I tried to add map to the dashboard, I could never load it.

Re: Showing list of host names that have been added

Posted: Thu Oct 30, 2014 9:50 am
by eloyd
Do you mean you're trying to add the "map" panel type to your dashboard? If so, this is not likely to work the way you want. The map panel translates 2 letter country or state codes into shaded regions on a map. Currently available maps are world, USA and Europe.

What might work better is to build a pie chart that shows data centers, another that shows server type, and another with severity label. You can click on any slice in any of those pie charts to limit results to be filtered by what you clicked on. So if you click on a datacenter slice, everything will adjust to show just that data center. If you click on a log source, everything will adjust to show just that log source, etc.

You can then build another panel that shows the results of the filter so that you can always be looking at just what you want to be looking at.

Re: Showing list of host names that have been added

Posted: Thu Oct 30, 2014 10:05 am
by lgroschen
This might also help getting started with the dashboards, queries and filters:

http://assets.nagios.com/downloads/nagi ... Server.pdf

Re: Showing list of host names that have been added

Posted: Thu Oct 30, 2014 12:42 pm
by stecino
eloyd wrote:Do you mean you're trying to add the "map" panel type to your dashboard? If so, this is not likely to work the way you want. The map panel translates 2 letter country or state codes into shaded regions on a map. Currently available maps are world, USA and Europe.

What might work better is to build a pie chart that shows data centers, another that shows server type, and another with severity label. You can click on any slice in any of those pie charts to limit results to be filtered by what you clicked on. So if you click on a datacenter slice, everything will adjust to show just that data center. If you click on a log source, everything will adjust to show just that log source, etc.

You can then build another panel that shows the results of the filter so that you can always be looking at just what you want to be looking at.
Yes, I tried to add US map, as our data centers in US. What would be the field name in logstash that defines a data center? I guess how can add all these hosts (IPs) that translates to a single state code.

Re: Showing list of host names that have been added

Posted: Thu Oct 30, 2014 12:45 pm
by stecino
lgroschen wrote:This might also help getting started with the dashboards, queries and filters:

http://assets.nagios.com/downloads/nagi ... Server.pdf
Thanks I will take a look