Solved

Weird NMAP Discovery Error


Badge +2

Hi, I’m getting the following error message when trying to do an NMAP discovery - what am I meant to do here?!

 

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

 

    #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

 

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

 

Also, this is a brand new install.

icon

Best answer by sims24 1 August 2022, 17:09

View original

10 replies

Userlevel 6
Badge +19

Hello, 

 

You should check that the package centreon-plugins-sudoers is correctly installed on the poller from where you run the discovery command. 

Badge +2

Hello, 

 

You should check that the package centreon-plugins-sudoers is correctly installed on the poller from where you run the discovery command. 

Is this a normal plugin as It doesn’t show in the usual place? If not, where can I check this?

Userlevel 6
Badge +19

This is not a plugin, this is a sudoers definition allowing centreon users to run nmap binary. Check for  this file /etc/sudoers.d/centreon-plugins

Badge +2

This is not a plugin, this is a sudoers definition allowing centreon users to run nmap binary. Check for  this file /etc/sudoers.d/centreon-plugins

No, it’s not there, only the files centreon and centron-gorgone. What do I need to do to add it?

Thanks

 

Userlevel 6
Badge +19

Hi, 

 

You have to install centreon-plugins-sudoers package. 


 

Badge +2

Hi, 

 

You have to install centreon-plugins-sudoers package. 


 

Thanks - I’ve done that, but still the same error?

Userlevel 6
Badge +19

Are you running the discovery from your central? or from a poller? This package should be present on every server running discovery.

 

Also, check that the nmap binary is correctly installed and present in PATH. (use this command ‘which nmap’)

Badge +2

Are you running the discovery from your central? or from a poller? This package should be present on every server running discovery.

 

Also, check that the nmap binary is correctly installed and present in PATH. (use this command ‘which nmap’)

I’m running it from the central server (there are no separate pollers).

Sorry where do I run that command? Does it have to be done from a certain folder? I just get this:

# which nmap
/usr/bin/which: no nmap in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

 

Userlevel 6
Badge +19

Install nmap, it will probably solve your issue. 

 

 

Badge +2

Install nmap, it will probably solve your issue. 

 

 

Thanks - that worked, however I’m now getting errors again about hostnames missing, but how do I find out which ones it doesn’t like? There also seems no option of adding a map for description -> hostname like I was able to do with the SNMP discovery?

Reply