Skip to main content
Solved

Weird NMAP Discovery Error

  • July 22, 2022
  • 11 replies
  • 333 views

Forum|alt.badge.img+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.

Best answer by sims24

Install nmap, it will probably solve your issue. 

 

 

11 replies

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • 330 replies
  • July 22, 2022

Hello, 

 

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


Forum|alt.badge.img+2
  • Author
  • Steward *
  • 7 replies
  • July 22, 2022

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?


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • 330 replies
  • July 22, 2022

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


Forum|alt.badge.img+2
  • Author
  • Steward *
  • 7 replies
  • July 25, 2022

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

 


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • 330 replies
  • July 27, 2022

Hi, 

 

You have to install centreon-plugins-sudoers package. 


 


Forum|alt.badge.img+2
  • Author
  • Steward *
  • 7 replies
  • July 27, 2022

Hi, 

 

You have to install centreon-plugins-sudoers package. 


 

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


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • 330 replies
  • July 29, 2022

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’)


Forum|alt.badge.img+2
  • Author
  • Steward *
  • 7 replies
  • July 29, 2022

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)

 


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • 330 replies
  • Answer
  • August 1, 2022

Install nmap, it will probably solve your issue. 

 

 


Forum|alt.badge.img+2
  • Author
  • Steward *
  • 7 replies
  • August 17, 2022

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?


Forum|alt.badge.img+1
  • Steward *
  • 1 reply
  • July 18, 2024

good morning,

I have a same problem.

 

how did you go about fixing it?

 

Please