Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snmp scanning not working, please help ! #495

Open
AndrewYYU opened this issue Dec 19, 2024 · 2 comments
Open

snmp scanning not working, please help ! #495

AndrewYYU opened this issue Dec 19, 2024 · 2 comments

Comments

@AndrewYYU
Copy link

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : ubuntu 24.01.1
Perl version : 5.38.2

OCS Inventory informations

Unix agent version : 2.10.4

Problem's description

hi there,
I was setting up the ocsagent trying to make snmp scan work. the snmp scanning never work properly.
the vm was cloned from vmware on my laptop to proxmox under different subnet, so the network info may be a bit strange
the ipdiscover function does work, but snmp don't
at first i got only the "[download] Option turned off. Exiting." message, the modules.conf shows Modules::Download is not commented


# this list of module will be load by the at run time
# to check its syntax do:
# #perl modules.conf
# You must have NO error. Else the content will be ignored
# This mechanism goal is to launch agent extension modules
use Ocsinventory::Agent::Modules::Download;
use Ocsinventory::Agent::Modules::SnmpScan;
#use Ocsinventory::Agent::Modules::LocalSnmpScan;
use Ocsinventory::Agent::Modules::SnmpFork;
# DO NOT REMOVE THE 1;
1;

and here's my agent config

basevardir=/var/lib/ocsinventory-agent
ca=/etc/ocsinventory-agent/cacert.pem
snmpretry=2
snmptimeout=3
debug=
tag=Server
server=http://10.10.16.218/ocsinventory
logfile=/var/log/ocs_agent.log
nosoftware=0
snmp=1

Inventory log file ( optional )

ocs_agent.log
i took away the user's part : )

@AndrewYYU
Copy link
Author

also, i saw some tutorial mention that the snmp function will only work when ocsinventory server set https up.
is it necessary?
i thought snmp and ssl are two completely seperate function?

@gillesdubois
Copy link
Member

Hi,

For security reasons download and snmp feature need to have HTTPS enabled.
SNMP and SSL are unrelated but we enforce them in order to secure our software.

You can use an already existing CA if you don't want to generate a certificate specific for OCS.

Regards,
Gilles DUBOIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants