Line 2: |
Line 2: |
| There are still some bugs in this RPM... Help us to fix them! | | There are still some bugs in this RPM... Help us to fix them! |
| ==ipdiscover bug== | | ==ipdiscover bug== |
− | We need to confirm that ipdiscover works when the smeserver is the forced client. | + | ===ipdiscover and SME=== |
| + | We need to make ipdiscover working on SME. |
| | | |
− | I Tried the following:
| + | The standalone command works: |
− | ipdiscover eth0 10 | + | # ipdiscover eth0 10 |
− | {{Note box|''Usage : ipdiscover [iface name] [latency in ms]''}}
| + | But IpDiscover is not launched when SME is the elected/forced client. |
| | | |
− | Here's what I got on my server:
| + | Agent is not well documented, I tried the debug mode: |
− | <IPDISCOVER> | + | # ocsinventory-agent -s localhost --debug |
− | <H><I>192.168.0.100</I><M>00:xx:xx:xx:xx:xx</M><N>pc-00100.mydomain.com</N></H> | + | [debug] Failed to load `/etc/ocsinventory-agent/modules.conf': 0. No external module will be used. |
− | <H><I>192.168.0.253</I><M>00:xx:xx:xx:xx:xx</M><N>pc-00253.mydomain.com</N></H> | + | [debug] Failed to load Ocsinventory::Agent::Backend::OS::BSD::Mem: Global symbol "$unit" requires explicit package name at /usr/lib/perl5/vendor_perl/5.8.5/Ocsinventory/Agent/Backend/OS/BSD/Mem.pm line 31. |
− | <H><I>192.168.0.254</I><M>00:xx:xx:xx:xx:xx</M><N>pc-00254.mydomain.com</N></H> | + | Global symbol "$unit" requires explicit package name at /usr/lib/perl5/vendor_perl/5.8.5/Ocsinventory/Agent/Backend/OS/BSD/Mem.pm line 32. |
− | </IPDISCOVER> | + | Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/Ocsinventory/Agent/Backend.pm line 69. |
− | Sounds like it's working for me... But IpDiscover discovers nothing when launched by SME OCS' Agent. There must be a problem here!
| + | I'm not sure about these errors, but we do not have BSD! |
| + | [debug] =BEGIN=SERVER RET====== |
| + | [debug] $VAR1 = { |
| + | 'OPTION' => [ |
| + | { |
| + | 'NAME' => 'DOWNLOAD', |
| + | 'PARAM' => [ |
| + | { |
| + | 'FRAG_LATENCY' => '10', |
| + | 'TIMEOUT' => '30', |
| + | 'PERIOD_LATENCY' => '0', |
| + | 'ON' => '1', |
| + | 'TYPE' => 'CONF', |
| + | 'PERIOD_LENGTH' => '10', |
| + | 'CYCLE_LATENCY' => '60' |
| + | } |
| + | ] |
| + | } |
| + | ], |
| + | 'RESPONSE' => 'SEND', |
| + | 'PROLOG_FREQ' => '24' |
| + | }; |
| + | [debug] =END=SERVER RET====== |
| + | [debug] No respHandlers avalaible for OPTION. The data returned by server in this hash will be lost. |
| + | This is more interesting: client doesn't gather IpDiscover info! |
| | | |
− | Windows Agent don't have this problem...
| + | I checked that after changing other values in the web interface they were applied to the Agent, and they were... The problem is only for IpDiscover!!! |
| | | |
− | Cool34000
| + | I also tryed to put manual changes in the '''/var/lib/ocsinventory-agent/localhost/ocsinv.conf''' file |
− | ---- | + | <IPDISCOVER_VERSION>3</IPDISCOVER_VERSION> |
| + | Nothing is working @#$*! |
| + | |
| + | The file that gathers options should be '''/usr/lib/perl5/vendor_perl/5.8.5/Ocsinventory/Agent/Option/Update.pm''' |
| + | ===ipdiscover-util.pl=== |
| + | This script used by the web interface do not seem to work too. |
| + | |
| + | First thing to do is to change the password in this file... |
| + | ... |
| + | my $dbhost = 'localhost'; |
| + | my $dbuser = 'ocs'; |
| + | my $dbpwd = 'ocs'; |
| + | my $db = 'ocsweb'; |
| + | my $dbp = '3306'; |
| + | The password should be dynamical as this is a perl script. We need to use esmith::ConfigDB or something else to retrieve this value... I was unable to handle that. |
| + | |
| + | Also a problem, the script cannot be executed. I try to add script handler for .pl but it didn't worked... |
| | | |
| ==www/ocs/install.php bugs== | | ==www/ocs/install.php bugs== |