Koozali.org: home of the SME Server

[Announce] Inventory tools: OCS and GLPI for SME 7.x

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« on: June 08, 2007, 05:51:45 PM »
Hi everyone!


Based on Daniel's howto, I've made an rpm installation for OCS Inventory NG and GLPI.
You're highly encouraged to read his howto before begining here...
The only big difference is that the rpm install goes in /opt.


You need to download a few dependencies provided by sme.firewall-services.com
Then use yum to install them
Code: [Select]
#tar xvzf ./perl-deps-ocs.tar.gz
#yum localinstall ./perl-deps-ocs/*.rpm

Install mod_perl and enable it
Code: [Select]
#yum install mod_perl
#/sbin/e-smith/config setprop modPerl status enabled
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
#/etc/init.d/httpd-e-smith restart

Download OCS and GLPI rpms
Then use yum to install both rpm
Code: [Select]
#yum localinstall smeserver-ocs_inventory_ng-1.01-3.noarch.rpm
#yum localinstall smeserver-glpi-0.68.3-2.noarch.rpm

OCS website is available at http://your-server-name/ocs
user:admin
pass: admin
GLPI website is available at http://your-server-name/glpi
user: glpi
pass: glpi

OCS is not fully working yet:
- a bug to fix in cron or logrotate
- deployment may not work (any help appreciated!)


GLPI can be installed without OCS:
Skip the whole howto, download GLPI and install it with the following command:
Code: [Select]
rpm -Uvh smeserver-glpi-0.68.3-2.noarch.rpm --nodeps

Any comments/suggestions/help will be appreciated!



Best regards,
Sylvain

Offline kevinb

  • *
  • 237
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #1 on: June 09, 2007, 01:54:01 AM »
Hello Sylvain,

On a fresh install of SME in server only mode (not a domain controller or DHCP server, HTTP and SMTP proxies are on [default]), I ran yum update and then followed your instructions and had an issue.

Upon reboot after the last step I get a looping error: [error] can't load Perl module Apache :: Ocsinventory for server www.xxx.com:0 exiting

Is there a script setting that still points to an IBay from Daniel's Howto?


Kevin

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #2 on: June 09, 2007, 02:13:00 AM »
Hi

Thanks for reporting!
No there are no stuffs pointing to any ibay, all is in /opt
I may have forgot to put some tools in the right place...

I will make tests from scratch with a test server to see what's happening...

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #3 on: June 09, 2007, 04:14:13 AM »
Hi


Problem solved!
There were a few Perl files missing... :oops:

The new release  is on its way to the mirrors. I've updated the links on my 1st post, but it could take some time to sync (I didn't even finished to upload them)

Thanks again for your tests and sorry for the inconveniance.


Best regards,
Sylvain

Offline kryptos

  • ****
  • 245
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #4 on: June 09, 2007, 04:31:27 AM »
Hi,

I got this this during yum install on smeserver-ocs_inventory_ng  "error: unpacking of archive failed on file /opt/inventory/ocs.tar.gz;466a100d: cpio: read"


Regards,
Rocel

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #5 on: June 09, 2007, 04:36:55 AM »
Hi,

Krytos, please try to download the file again, mirror should be syncing...
Just wait a while before trying again.
If the file is corrupted, just let me know, I'll upload a fresh one.

Regards,
Sylvain

Offline kevinb

  • *
  • 237
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #6 on: June 09, 2007, 05:13:01 PM »
Hi Sylvain,

The new contribs work ... thanks.

Now I have the problem that when I browse to the https://<server>/ocs and login in all the web pages have no text. Just boxes and icons.

Could this be a language setting issue?

Thank again

Kevin

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #7 on: June 09, 2007, 06:46:10 PM »
Hi!

Thanks for your comments.
Yes this is a language issue... Before login choose a language! :wink:

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #8 on: June 09, 2007, 07:08:56 PM »
Hi again...

About the logrotate bug,  I've just found this thread
I will fix it in my next release.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
agent
« Reply #9 on: June 10, 2007, 03:44:00 PM »
Hi

Thank you by RPMs... everything working. BUT I have some questions:

1) I installed agent on windows, but cannot get it upload inventory.
Getting 500  HTTP error...  can this be because agent search for /ocsinventory and this install use /ocs ??

2) I'd like to install OCS on my server and do inventory on all my clients LAN.
So I'd like to have external (WAN) access to OCS server protected by just one user/password and just for upload inventory/download software, without web access to management interface - that would be another user/password). Anyone have tried, used it ?

3) I tried to install agent on linux but got Z::Lib error... will try to dianose using OCS forums... anyone already did this? I'd like to use linux agent on my SME713 servers and Ubuntu clients.

4) I tried to create a package to remote install (when it works) using foxit reader (1.5MB file). Compress it to zip format, but when try to add, OCS say cannot read Foxit.zip file!!!

Thanks

Jáder

BTW: I'm on MSN: jader31 AT terra DOT com DOT br or skype jader.marasca
...

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #10 on: June 10, 2007, 04:14:39 PM »
Hi,

Thanks for your comments.
I've added you to my msn contact list...

OCS works fine... I had some troubles when the agent was not properly launched. First reboot your computer...
And try to execute this from the 'execute box':
Code: [Select]
"C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /server:YOURSERVERNAME /np /debugThis is working on all my network. I've tested all M$ OS from 2000 to Vista x64 and all are working.

/ocsinventory is a virtual directory which is used for communicating with the server.
You can verify it in /opt/inventory/conf/ocsinventory.conf: (end of file)
Code: [Select]
# Virtual directory for handling OCS Inventory NG agents communications
# Be carefull, do not create such directory into your web server root document !
#PerlTaintCheck On
<Location /ocsinventory>
order deny,allow
allow from all
Satisfy Any
        SetHandler perl-script
        PerlHandler Apache::Ocsinventory
</Location>

PerlModule Apache::Ocsinventory::SOAP;
<location /ocsinterface>
        SetHandler perl-script
        perlHandler "Apache::Ocsinventory::SOAP"
        order deny,allow
        allow from all
        Satisfy any
</location>
You can't protect access from outside with a password as the agent has no auth included inside! But as you can see also in ocsinventory.conf access to this virtual directory is allowed from outside (ocs reports web interface is not). So you should be able to make inventory from outside (using your FQDN as servername)... I didn't tested yet from outside, so please keep me informed !

I never tested OCS under Linux... You will probably find more help on their forum. Look also on their old forum at sourceforge (read only)

As told in the announce, I didn't tested deployments as I'm not using this function (M$ GPO are better to do the job, sorry).
Maybe you'll need some more modifications... If you can make it work, just tell me how you did it and I will update my rpm.


Best regards,
Sylvain

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
misterious about TAG solved
« Reply #11 on: June 10, 2007, 06:13:01 PM »
Hi

I discovered the problem with testing using command line was use the TAG.
using just /np /debub  worked!

Later I finally discoverd what was wrong: TAG is case sensitive. Must be in capital letters (TAG), do not use tag because it do not work.
Will search as bug on OCS forum and report as needed.

Discovered that external inventory is possible. Tested with Cool34!!!
Thanks.

Jáder
...

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #12 on: June 11, 2007, 02:42:34 AM »
Hi!


I'm sending right now new releases of both rpms...
Please uninstall both rpms before.
You will find them there: http://mirror.contribs.org/smeserver/contribs/sgomez/contribs/inventory

OCS 1.01-4 changelog:
- fixed Apache restarting before deleting templates when uninstalling
- fixed logrotate bug
- added templates and events to change dynamically DbPassword.
- added a reserved user for ocs
GLPI 0.68.3-2 changelog:
- fixed Apache restarting before deleting templates when uninstalling
- added templates and events to change dynamically DbPassword.
- added a reserved user for glpi

Now, you can view ocs and/or glpi's configuration by typing
Code: [Select]
config show ocs
config show glpi
As you will see, MySQL passwords are strong, but if you want to change for any reason your passwords, all you have to do is:
Code: [Select]
config setprop ocs DbPassword mynewpassword
config setprop glpi DbPassword "my other new password"

signal-event ocs-update
signal-event glpi-update
Please remember that GLPI has OCS's password in its database (to import OCS inventories). So if you change OCS' password, you'll need to update GLPI!

Passwords will also be applyed each time you'll do a
Code: [Select]
signal-event post-upgrade
signal-event reboot


Best regards,
Sylvain

Offline cool34000

  • *
  • 339
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #13 on: June 11, 2007, 12:45:18 PM »
Hi,

Updated the wiki pages... Enjoy!
http://wiki.contribs.org/OCS_Reports_and_GLPI

Offline kevinb

  • *
  • 237
  • +0/-0
[Announce] Inventory tools: OCS and GLPI for SME 7.x
« Reply #14 on: June 11, 2007, 03:51:56 PM »
Nice contrib Sylvain. Good Job!

I was wondering, if anyone knows, can either of these contribs be setup to send an email alert if any of the hardware or installed software changes and any machine?

Thanks again

Kevin