OCSInventory: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


finish the questions and it's up and running. It will have no info in it.
finish the questions and it's up and running. It will have no info in it.
[http://wiki.ocsinventory-ng.org/index.php/Howtos:Install_OCS_on_debian]


= Installing the agents =
= Installing the agents =

Revision as of 13:42, 25 May 2016

OCS inventory is a system that polls information about servers and PCs through an agent.

Installing the server / reporting

apt-get install ocsinventory-reports ocsinventory-server

then go to http://monitor.tripnet.int/ocsreports

finish the questions and it's up and running. It will have no info in it.

[1]

Installing the agents

apt-get install ocsinventory-agent

during this proces it will ask for local / http (http if connected) and the server name (monitor.tripnet.int / 192.168.0.10 if it doesn't resolve that). You can change that in /etc/ocsinventory/ocsinventory-agent.cfg

next run

/etc/cron.daily/ocsinventory-agent

and after it's done, you should see it in the reporting server.

Give it a relevant tag.

Polling ESXi hosts

you need fusioninventory-agent-task-esx package.

Before running the script,

cd /usr/share/fusioninventory/lib

Or it will give you a perl error then:

fusioninventory-esx --host hostname --user root --password foo --directory /tmp

Creates the .ocs file in /tmp/

You then need to inject it into OCSInventory, which can also be done from the server:

fusioninventory-injector -v -f /tmp/*.ocs --url http://user:pw@monitor.tripnet.int:80/ocsinventory

This may not work if you're polling a later version of ESXi though, because it only supports up to 5.0 http://www.fusioninventory.org/documentation/references/agent-task-esx/2.x/fusioninventory-esx/