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.12.3 available

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

Ocsinventory agent under linux not send ip address hosts

Hello,

i have install a ocsinventory agent (2.3) under linux (Centos 7)

I schedule the agent with crontab with this command:

10 * * * * ocsinventory-agent -s -f <ip ocsserver>

but in the server ocs  i don't see the host ip address .

But i launch the some command by terminal the ip address is displayed.

Why?

Thanks very much
in OCS Inventory NG agent for Unix by (340 points)

5 Answers

0 votes
Hi,

At first, prefer use DNS instead of IP address : that's better :)

You look like to have not configure the agent : if you put the server's address in the configuration file, there is no need to force the inventory by command line. You just need to call ocsinventory-agent and nothing more.

Attention, in the crontab, you have no path : use the full path to call ocsinventory-agent (command whereis to get it).
by (22k points)
0 votes

Hi,

thanks for your reply.

In crontab i have use full path to call ocs agent and the dns but don't work.

My code for cron:

00 * * * * /usr/local/bin/ocsinventory-agent -s ocs.server.lan

With this code the hosts is register in ocs server but the ip and the ram not displayed.

If i launch the command by console the ip and the ram are displayed.

Help me please.

by (340 points)
0 votes
Hi,

Post ocsinventory-agent.log file content. I want to be sure that all prerequisites modules are installed.

Regards

Frank
by (90.4k points)
0 votes
Подтверждаю этот факт и в  Ubuntu 17.10

Не передает IP address

Что то не так в самом агенте

На Ubuntu 17.04 эта же версия агента OCS-NG_unified_unix_agent_v2.0.5

все отлично передавала а на Ubuntu 17.10 перестал передавать все сетевые параметры

Что конкретно делать ? Укажите какой модуль Perl надо добавить?

Ниже даю перевод в гугле

=========================================================

I also confirm this fact in Ubuntu 17.10

Does not transfer the IP address

Something is wrong in the agent itself

On Ubuntu 17.04, the same version of the agent OCS-NG_unified_unix_agent_v2.0.5

all perfectly passed and on Ubuntu 17.10 has ceased to transfer all network parameters

What exactly should I do? Which Perl module should I add?
by (140 points)
0 votes
Hi

My answer to n2011all

2.0.5 is too old and not updated in Ubuntu. Please update to 2.3 with manual setup. You'll need to update also the ocs server to 2.3.1.

Regards

Frank
by (90.4k points)
 
Powered by Question2Answer
...