Skip to main content

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.

Hello, 

 

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


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?


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


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

 


Hi, 

 

You have to install centreon-plugins-sudoers package. 


 


Hi, 

 

You have to install centreon-plugins-sudoers package. 


 

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


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


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)

 


Install nmap, it will probably solve your issue. 

 

 


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?


good morning,

I have a same problem.

 

how did you go about fixing it?

 

Please

 


Reply