Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.4 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Ocsinventory-agent don't run under fedora

Hy guys,

i have install  ocsinventory-agent 2.3 under Fedora 26 and i schedule service with cron:

00 * * * * /usr/local/bin/ocsinventory-agent -s <dns name server>

but in Ocs Server the hosts haven't  ip and cpu clock.

If launch this command under shell:

ocsinventory-agent -s <dns name server>

ip and cpu are display.

i have some problem under centos 7.

Any idea?

Thanks very much
asked Oct 5 in OCS Inventory NG agent for Unix by ljt (340 points)

6 Answers

0 votes
Hi

Post ocsinventory-agent.log file content.

Regards

Frank
answered Oct 6 by frankb (51,870 points)
0 votes
Hi,

thanks for you reply.

In some pc In ocsinventory-agent.log under /var/log i haven't any error message.

and in some pc i have this messagge:

[Mon Oct  2 14:43:40 2017][info] Accountinfo file doesn't exist. I create an empty one.
[Mon Oct  2 14:59:17 2017][info] PROLOG_FREQ has changed since last process(old=,new=6)
[Mon Oct  2 15:04:25 2017][info] Accountinfo file doesn't exist. I create an empty one.

Thanks
answered Oct 11 by ljt (340 points)
0 votes
Hi,

run this command on terminal => ocsinventory-agent --debug. ocsinventory-agent.log file will be created in /var/log directory. Then post his content.

Regards

Frank
answered Oct 12 by frankb (51,870 points)
0 votes
Hy

thi is the only the first part of log:

[Mon Oct 16 15:18:03 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3
[Mon Oct 16 15:18:03 2017][debug] Log system initialised (File)
[Mon Oct 16 15:18:03 2017][debug] --scan-homedirs missing. Don't scan user directories
[Mon Oct 16 15:18:03 2017][debug] the --server passed doesn't have a protocol, assume http as default
[Mon Oct 16 15:18:03 2017][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__ocs.quadrifoglio.lan_ocsinventory/ocsinv.adm
[Mon Oct 16 15:18:03 2017][debug] OCS Agent initialised
[Mon Oct 16 15:18:03 2017][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Mon Oct 16 15:18:03 2017][debug] Calling handlers : `start_handler'
[Mon Oct 16 15:18:03 2017][debug] Compress::Zlib is available.
[Mon Oct 16 15:18:03 2017][debug] Calling handlers : `prolog_writer'
[Mon Oct 16 15:18:03 2017][debug] sending XML
[Mon Oct 16 15:18:03 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>ar-ar-pc013-2017-10-16-15-07-17</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Mon Oct 16 15:18:03 2017][debug] =BEGIN=SERVER RET======
[Mon Oct 16 15:18:03 2017][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
  <OPTION>
    <NAME>DOWNLOAD</NAME>
    <PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" ON="0" TYPE="CONF" CYCLE_LATENCY="60" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
  <PROLOG_FREQ>24</PROLOG_FREQ>
</REPLY>
answered Oct 16 by ljt (340 points)
0 votes
second part...

';
[Mon Oct 16 15:18:03 2017][debug] =END=SERVER RET======
[Mon Oct 16 15:18:03 2017][debug] PROLOG_FREQ has not changed since last process
[Mon Oct 16 15:18:03 2017][debug] Calling handlers : `prolog_reader'
[Mon Oct 16 15:18:03 2017][debug]  - ipdiscover found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::IpDiscover::Nmap ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::AIX ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::BSD ignored
[Mon Oct 16 15:18:03 2017][debug]  - dmidecode found
[Mon Oct 16 15:18:03 2017][debug]  - dmidecode found
[Mon Oct 16 15:18:03 2017][debug]  - Sys::Hostname loaded
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Ipmi ignored
[Mon Oct 16 15:18:03 2017][debug]  - lspci found
[Mon Oct 16 15:18:03 2017][debug]  - lspci found
[Mon Oct 16 15:18:03 2017][debug]  - lsusb found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::BSDpkg ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Deb ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Gentoo ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Packaging::Pacman ignored
[Mon Oct 16 15:18:03 2017][debug]  - rpm found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Printers::Cups ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Generic::Screen ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::HPUX ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::ARM ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::Alpha ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::MIPS ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::PowerPC ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::SPARC ignored
[Mon Oct 16 15:18:03 2017][debug]  - /proc/cpuinfo can be read
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::m68k ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Archs::s390x ignored
[Mon Oct 16 15:18:03 2017][debug]  - lsb_release found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::ArchLinux ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Debian ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Fedora ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Gentoo ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Knoppix ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Mandrake ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Mandriva ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Redhat ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Slackware ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::SuSE ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Trustix ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Ubuntu ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::VmWare ignored
[Mon Oct 16 15:18:03 2017][debug]  - hostname found
[Mon Oct 16 15:18:03 2017][debug] runWithTimeout(): unexpected error: Undefined subroutine &Ocsinventory::Agent::Backend::OS::Linux::Domains::can_read called at /usr/local/share/perl5/Ocsinventory/Agent/Backend/OS/Linux/Domains.pm line 9.
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Domains ignored
[Mon Oct 16 15:18:03 2017][debug]  - df found
[Mon Oct 16 15:18:03 2017][debug]  - pvs found
[Mon Oct 16 15:18:03 2017][debug]  - /proc/meminfo can be read
[Mon Oct 16 15:18:03 2017][debug]  - ip found
[Mon Oct 16 15:18:03 2017][debug]  - ifconfig found
[Mon Oct 16 15:18:03 2017][debug]  - route found
[Mon Oct 16 15:18:03 2017][debug]  - Net::IP qw(:PROC) loaded
[Mon Oct 16 15:18:03 2017][debug]  - lspci found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::3ware ignored
[Mon Oct 16 15:18:03 2017][debug]  - smartctl found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::Adaptec ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::FusionIO ignored
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::HP ignored
[Mon Oct 16 15:18:03 2017][debug]  - smartctl found
[Mon Oct 16 15:18:03 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::Lsilogic ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::Megacli ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Storages::ServeRaid ignored
[Mon Oct 16 15:18:04 2017][debug]  - mount found
[Mon Oct 16 15:18:04 2017][debug]  - /proc/uptime can be read
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::MacOS ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Solaris ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Docker ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Jails ignored
[Mon Oct 16 15:18:04 2017][debug]  - virsh found
answered Oct 16 by ljt (340 points)
0 votes
third part..

[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Lxc ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Parallels ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Qemu ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::SolarisZones ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::VirtualBox ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareDesktop ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareESX ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::VmWareWorkstation ignored
[Mon Oct 16 15:18:04 2017][debug]  - dmidecode found
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XL ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Xen::XM ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::XenCitrixServer ignored
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::CentOS disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Oracle disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB'
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::Virtualization::Xen disabled because of a 'runMeIfTheseChecksFailed' in 'Ocsinventory::Agent::Backend::Virtualization::Xen'
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::AccessLog
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::DeviceID
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::IpDiscover
[Mon Oct 16 15:18:04 2017][debug] Ocsinventory::Agent::Backend::IpDiscover has no run() function -> ignored
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::IpDiscover::IpDiscover
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Batteries
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Bios
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Memory
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Ports
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::Slots
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Dmidecode::UUID
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Hostname
[Mon Oct 16 15:18:04 2017][debug]  - Sys::Hostname loaded
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Controllers
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Modems
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Sounds
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Videos
[Mon Oct 16 15:18:04 2017][debug]  - xrandr found
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lsusb
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lsusb::Usb
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::ByHand
[Mon Oct 16 15:18:04 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Packaging::RPM
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386::CPU
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::LSB
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Drives
[Mon Oct 16 15:18:06 2017][debug]  - dumpe2fs found
[Mon Oct 16 15:18:06 2017][debug]  - dumpe2fs found
[Mon Oct 16 15:18:06 2017][debug]  - dumpe2fs found
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Inputs
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::LVM
[Mon Oct 16 15:18:06 2017][debug]  - pvs found
[Mon Oct 16 15:18:06 2017][debug]  - vgs found
[Mon Oct 16 15:18:06 2017][debug]  - lvs found
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Mem
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::IP
[Mon Oct 16 15:18:06 2017][debug]  - ip found
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Network::Networks
[Mon Oct 16 15:18:06 2017][debug]  - ip found
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Sounds
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Storages
[Mon Oct 16 15:18:06 2017][debug] runWithTimeout(): unexpected error: Can't call method "can_run" on an undefined value at /usr/local/share/perl5/Ocsinventory/Agent/Backend/OS/Linux/Storages.pm line 280.
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Sys
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Uptime
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::Virtualization::Libvirt
[Mon Oct 16 15:18:06 2017][debug] Running Ocsinventory::Agent::Backend::Virtualization::Vmsystem
[Mon Oct 16 15:18:07 2017][debug] Calling handlers : `inventory_handler'
[Mon Oct 16 15:18:07 2017][debug] Section HARDWARE has changed since last inventory
[Mon Oct 16 15:18:07 2017][debug] Section DRIVES has changed since last inventory
[Mon Oct 16 15:18:07 2017][debug] sending XML
[Mon Oct 16 15:18:07 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
answered Oct 16 by ljt (340 points)
 
Powered by Question2Answer
...