Nagios 4.1.1: auto discovery tools/plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
erotavlas
Posts: 5
Joined: Fri Apr 29, 2016 3:47 am

Nagios 4.1.1: auto discovery tools/plugin

Post by erotavlas »

Hi,
I'm new of Nagios. I just installed the latest available version 4.1.1 together with latest plugin version 2.1.1 on Ubuntu 14.04. I know that I can manually add new devices via configuration files. What about a devices discovering functionality? I read https://en.wikipedia.org/wiki/Compariso ... ng_systems that this feature is currently available via plug in. Can you suggest me a documentation about this? By making a search on the web, I only found this https://exchange.nagios.org/directory/A ... DDiscovery.
Thank you
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by rkennedy »

There isn't an auto discovery plugin for Nagios Core, and the plugin you linked mostly applies to Nagios XI. If you're looking for this feature, I would take a look at our enterprise product which will have wizards available for easier functionality. (https://www.nagios.com/downloads/nagios-xi/)
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by eloyd »

My company is a Nagios reseller, so I do want to encourage you to look at the Nagios XI Enterprise option, but if you're brave, you can make a basic auto-discovery yourself. Here's a brief overview (details are beyond the scope of this forum):
  • Setup cron to use nmap to probe your network
  • Parse the nmap output to look for new hosts (you will have to keep track of the previous nmap output)
  • Find new hosts and use snmpwalk or some other probe to determine what you can monitor on that host
  • Build a new Nagios configuration file for that host with any appropriate services that you discovered
  • Reload Nagios configurations
That's a quick overview of how you could do auto-discovery.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by nozlaf »

adagios (agagios.org)a has a neat discovery tool for nagios core
is a bit under development tho

if you do what eloyd suggested pynag is very handy to add hosts to configs
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by hsmith »

I set this one up and used it my first week working for Nagios trying to learn things: https://exchange.nagios.org/directory/A ... 29/details
Former Nagios Employee.
me.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by tmcdonald »

nozlaf wrote:adagios (agagios.org)a has a neat discovery tool for nagios core
is a bit under development tho
We also can't really support or officially recommend it, although it is a pretty cool idea.
Former Nagios employee
erotavlas
Posts: 5
Joined: Fri Apr 29, 2016 3:47 am

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by erotavlas »

hsmith wrote:I set this one up and used it my first week working for Nagios trying to learn things: https://exchange.nagios.org/directory/A ... 29/details
Thank you for this script. I never used perl even if I know bash scripting and other scripting languages. Is there the possibility to split the configuration file among different categorized configuration files: switch, access point, phone cells, and so on?
Thank you
erotavlas
Posts: 5
Joined: Fri Apr 29, 2016 3:47 am

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by erotavlas »

nozlaf wrote:adagios (agagios.org)a has a neat discovery tool for nagios core
is a bit under development tho

if you do what eloyd suggested pynag is very handy to add hosts to configs
Thank you for the answer. I will take a look at pynag.
Best regards
erotavlas
Posts: 5
Joined: Fri Apr 29, 2016 3:47 am

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by erotavlas »

rkennedy wrote:There isn't an auto discovery plugin for Nagios Core, and the plugin you linked mostly applies to Nagios XI. If you're looking for this feature, I would take a look at our enterprise product which will have wizards available for easier functionality. (https://www.nagios.com/downloads/nagios-xi/)
Thank you. However, if I need to buy an enterprise solution, I will turn my attention to other monitoring solutions.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios 4.1.1: auto discovery tools/plugin

Post by eloyd »

You will likely not find a better bargain than Nagios XI for Enterprise monitoring, and you will likely not find a free Enterprise monitoring solution with auto-discovery tools.

Nagios XI has auto-discovery built into it. So far, you've asked only about Nagios Core. Nagios Core is open source free software. Nagios XI is commercial software built around Nagios Core that provides hundreds (if not thousands) of Enterprise level options including auto-discovery, monitoring wizards, built-in graphing and analysis, and tons of other things.

I would be happy to discuss this with you in private messages, if you would like, as we are a Nagios Authorized Reseller and consulting company.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked