Nagios nmap2nagios plugin does not show my services

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.
Locked
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios nmap2nagios plugin does not show my services

Post by sreinhardt »

Most likely they are not showing in the web interface, as that is not a valid nagios config. It does appear that the plugin can regenerate a new configuration based on its configuration, however I do not know how well that will work by manually adding them. Also if the other servers are restricted from the nagios server accessing those ports, nmap would have no way to verify they are open. Most nmap based checks will only look for ports and whether it is responding, not for actual data. Could you provide an example of what you have been running with this plugin?
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios nmap2nagios plugin does not show my services

Post by abrist »

Do you have that example available?
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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios nmap2nagios plugin does not show my services

Post by slansing »

If you were to choose one of the hosts that the script ran an nmap to which is only returning SSH and PING checks, and run a NMAP to it yourself what ports show up as discovered?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios nmap2nagios plugin does not show my services

Post by abrist »

Interesting. If you add the files and then run a verification, do you receive warnings? If so, what are the warnings?

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios nmap2nagios plugin does not show my services

Post by slansing »

I do not believe this plugin would set up something as advanced as process or hardware metric monitoring, neither does our built in Auto Discovery in Nagios XI. This is something left to wizards, or other forms of check protocols. NMAP itself has no way of doing these sorts of things. It does not matter if the plugins are available in the libexec folder, they are not being used, the purpose of what you have configured right now is to use NMAP to scan your network and return what nmap can touch, that would be IP's and ports under those IP's.. it will then take the ports it can find, and title services based on protocols the ports use, such as 5666 for NRPE, etc.
Locked