OCSInventory: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
Line 47: Line 47:
This may not work if you're polling a later version of ESXi though, because it only supports up to 5.0
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/
http://www.fusioninventory.org/documentation/references/agent-task-esx/2.x/fusioninventory-esx/
= should you decide to install by hand =
apt-get install libio-compress-perl php-soap libarchive-zip-perl
run the setup.sh from the unzipped archive (which may not be zipped, but only tarred, despite being called .tar.gz). This will also set up the ocsreports file.
among many other perl libraries. I never managed to get the server to install the Apache2::SOAP library properly.
When you install the ocsinventory-agent on linux you can see in the logfile if the connection to the server is going well.
send the agent to server=serverip/ocsinventory
you look up life in http://serverip/ocsreports

Revision as of 17:54, 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/

should you decide to install by hand

apt-get install libio-compress-perl php-soap libarchive-zip-perl

run the setup.sh from the unzipped archive (which may not be zipped, but only tarred, despite being called .tar.gz). This will also set up the ocsreports file.

among many other perl libraries. I never managed to get the server to install the Apache2::SOAP library properly.

When you install the ocsinventory-agent on linux you can see in the logfile if the connection to the server is going well.

send the agent to server=serverip/ocsinventory

you look up life in http://serverip/ocsreports