I am interested in using Nagios to auto-discover frequently as a way of ensuring all our hosts are monitored. It seems that the auto-discovery plugin uses nmap to actually do the discovering part. Has anybody else used this method with success?
What specific nmap command does the plugin end up running?
I am having difficulty finding any documentation apart from initial setup and basic usage of the plugin. Does anybody have a link to good documentation?
Specific Actions Auto-Discovery in XI Takes?
-
matt.uebel
- Posts: 84
- Joined: Thu Jun 20, 2013 7:43 am
Re: Specific Actions Auto-Discovery in XI Takes?
The nmap commands are in a protected component, but the commands are:
And it also uses a vanilla traceroute command as well.
Code: Select all
sudo /usr/bin/nmap -O -oX <filename> <ip>
/usr/bin/nmap -oX <filename> <ip>Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
matt.uebel
- Posts: 84
- Joined: Thu Jun 20, 2013 7:43 am
Re: Specific Actions Auto-Discovery in XI Takes?
So it will do a full port scan on each discovered host?
Re: Specific Actions Auto-Discovery in XI Takes?
By default, Nmap scans the most common 1,000 ports for each protocol.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
matt.uebel
- Posts: 84
- Joined: Thu Jun 20, 2013 7:43 am
Re: Specific Actions Auto-Discovery in XI Takes?
Is there any way to stop Nagios Auto-Discovery from doing this?
Re: Specific Actions Auto-Discovery in XI Takes?
What would you like it to do instead?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
matt.uebel
- Posts: 84
- Joined: Thu Jun 20, 2013 7:43 am
Re: Specific Actions Auto-Discovery in XI Takes?
Do ping only for host discovery.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Specific Actions Auto-Discovery in XI Takes?
At this point it is not possible, as this is an encrypted file within XI. You certainly can put in a feature request, although something more along the lines of "Allowing additional scan options for nmap, such as ignoring ping up or down, udp scan...." Instead of just asking for the ability to only ping.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.