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
Inventory not performed via ssh and snmp with Toolbox on Ubuntu #620
Comments
first of all, for the SNMP case, it seems you want to inventory a computer: as this is explained in documentation, SNMP inventory is only for network devices & printers, this simply doesn't work for computers. Anyway, even in that case, you should obtain a different error as type should be set to For the ssh case, the error |
Hello, Thank you for your reply. The thing is that I tried on different OS (Linux and Windows) and I got the same error for both. But you are right. The printers I get are sent to the GLPI server. Regarding libssh2 error, I am able to connect to that computer using ssh, from my Ubuntu 22.04 computer. I have also checked and libssh2 is installed. I tried to execute this on Windows and it worked well. I also checked the credentials many times but still get the same error. |
Do you mean you have the libssh2 error on your Ubuntu 22.04 where you manage to connect to the remote computer ? You should also consider the agent is probably running as root so you have to test you can access the remote computer as root. Maybe libssh2 fails because the root |
back to your issue, did you figure out your problem ? On windows, do you have a |
Hello, Sorry for this late response, I am currently working on another subject. I completly forgot about GLPI-Agent. Sorry about that. I might contact you again when I'll be working on this project. |
Bug reporting acknowledgment
Yes, I read it
Professional support
Still not applicable
Describe the bug
I have the Nightly build of GLPI-Agent: GLPI-Agent-1.8-git59e6e18c for linux installed on my ubuntu server.
For SSH :
When I am trying to run the inventory via ssh protocol on a port 22, I get the error :
I tried, with the same configuration on a windows computer and it worked.
For SNMP v2c :
Also when I am trying to send SNMP data to my GLPI server, I get the error :
The data is saved if the target is local, but if I try to send it to the server it I get this message, for some IPs and for others, I get no message, and the GLPI server is not updated.
Also, I tried winrm and it worked well, to send data to the server. So I think that my configuration is right and maybe the problem comes from the Linux version.
To reproduce
Have GLPI-Agent-1.8-git59e6e18c for linux with Toolbox Enabled
For SSH :
Create ssh credential
Create the IP range only with the target IP, starting and ending IP
For SNMP :
Create snmp v2c credential
Create the IP range to scan a full network
Expected behavior
Remote inventory via ssh protocol and snmp protocol to GLPI server
Operating system
Linux
GLPI Agent version
Nightly build (git version in additional context below)
GLPI version
10.0.12
GLPIInventory plugin or other plugin version
Not applicable
Additional context
No response
The text was updated successfully, but these errors were encountered: