First agent must be launched as root user. Second add --server https://@ip/ocsinventory on the command line and retry.
Regards
Frank
Hello,
error] Failed to create /var/lib/ocsinventory-agent/http:__ocsinventory-ng_ocsi nventory directory: Permission denied
states that the user adii has no permissions to write to mentioned directory. You have to run the command as root.
error] Cannot establish communication : 500 Can't connect to ocsinventory-ng:80 (Ãchec temporaire dans la résolution du nom)
There is a problem with name resolution (DNS). Either create a DNS entry for ocsinventory-ng or add an entry to /etc/hosts or use the IP of the server as Frank already explained.
Lars
Hello Frank,
do you plan to correct the behavior and release a new version of the perl-Ocsinventory-Agent RPM for RHEL7, or should we try to fix it on our own?
Regards,
Lars
thank you so much for your help, indeed i no longer have the error message on the file /var/log/ocsinventory-agent/onsinventory-agent.log
root@ubuntu:/var/log/ocsinventory-agent# vim ocsinventory-agent.log
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::OS::MacOS ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::OS::Solaris ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Docker ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Jails ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Libvirt ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Lxc ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Parallels ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Qemu ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisZones ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VirtualBox ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareDesktop ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareESX ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareWorkstation ignored
[Fri Mar 23 12:03:43 2018][debug] - dmidecode found
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XL ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XM ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::Virtualization::XenCitrixServer ignored
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::IpDiscover::Nmap disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::IpDiscover::Nmap'
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Oracle disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Debian disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Fri Mar 23 12:03:43 2018][debug] Running Ocsinventory::Agent::Backend::AccessLog
[Fri Mar 23 12:03:43 2018][debug] Running Ocsinventory::Agent::Backend::DeviceID
[Fri Mar 23 12:03:43 2018][debug] Running Ocsinventory::Agent::Backend::IpDiscover
[Fri Mar 23 12:03:43 2018][debug] Ocsinventory::Agent::Backend::IpDiscover has no run() function -> ignored
[Fri Mar 23 12:03:43 2018][debug] Running Ocsinventory::Agent::Backend::IpDiscover::IpDiscover
[Fri Mar 23 12:03:43 2018][debug] Scanning the 172.X.X.X network
i have ocs server and ocs agent version 2.4 in the same machine ( Ubuntu 16.04 ),
int the file /etc/ocsinventory-agent/ocsinventory-agent.cfg, i have configured it as follow :
after i had launched ocsinventory-agent using debug mode , like this:
# ocsinventory-agent --debug
i hade a result with an error line at the end
[error] Cannot establish communication : 500 Can't connect to ocsinventory-ng:80
,with your help i was able to fix it by launching the agent as root user. and then i added --server https://@ip/ocsinventory on the command line
So, now my question is , how do i get the SNMP inventory results to show in the web interface
HOW CAN I SEE THE TABLE THAT'S SUPPOSED TO BE CONTAINING ALL THE SNMP DEVICES SCANNED BY OCS AGENTS???
:)
i have ocs server and agent version 2.4 in the same machine 'UBUNTU 16.04'
i was able to scan devices in my network , but the problem i had with the devices's types ,
snmp can't scan for example cisco devices , all others devices i've discovered are showing to me as printers 'even tho some of them are not '
i couldn't find the source of the problem.
Here is the error message, when I open the Packer, with administrator credentials it gives me the error at the first screen.
Believe it or not the problem was with antivirus blocking execution, more specifically with the adptive threat protection module !
Hey hey,
I tried to get new pcs into my ocs database and that worked out quite well, but every time I force inventory on the client computer the agent log file states the following:
I currently run the OCS-Inventory Ng Server 2.4 and the client is 3.1.1.
Thank you in advance
Hi,
I am utilizing the OCSNG Unix Packager 1.0 (also tried 1.1) to create an Agent package for Ubuntu 16.04.4. The package works when using 'http' to connect to the OCSNG Inventory Server but does not when using 'https' (SSL).
client:~$ sudo /opt/ocsinventory/ocsinventory-agent -s https://OCSNGServer/ocsinventory
--basevardir=/opt/ocsinventory/var/lib/ocsinventory-agent --tag=UbuntuServer --lazy --ca=/opt/ocsinventory/files/cacert.pem [error] Cannot establish communication : 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) [info] No previous PROLOG_FREQ found - using fallback delay(3600 seconds)
The needed Perl module is included in the Agent Package in '/opt/ocsinventory/perl/lib/5.26.0/URI/https.pm', so what's the problem?