[Fusioninventory-user] [gaio at sv.lnf.it: Again SNMP tests...]
Marco Gaiarin
gaio at sv.lnf.it
Tue Jul 17 15:54:14 UTC 2012
Ops, sent only to Guillaume...
----- Forwarded message from Marco Gaiarin <gaio at sv.lnf.it> -----
Date: Mon, 16 Jul 2012 17:51:49 +0200
From: Marco Gaiarin <gaio at sv.lnf.it>
To: Guillaume Rousse <guillomovitch at gmail.com>
Subject: Again SNMP tests...
Organization: La Nostra Famiglia - Polo FVG
OK, in my main GLPI network (my ''home'' one) i've started an agent as
a daemon, in a lenny machine, then i've built a SNMP task against it,
but GLPI say me that return an error (see attachment).
If i run the agent in 'debug mode', they say me only that a status
request happens:
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-task-network-6fa999f# /usr/bin/perl /usr/bin/fusioninventory-agent -D --debug --logger=Stderr
[debug] FusionInventory unified agent for UNIX, Linux, Windows and MacOSX 2.1.10
[debug] Log system initialised (2)
[debug] --scan-homedirs missing. Don't scan user directories
[debug] vardir: /var/lib/fusioninventory-agent/__LOCAL__
[debug] [/tmp] Next server contact planned for Mon Jul 16 17:59:33 2012
[debug] No accountinfo file defined
[debug] Account info updated successfully
[debug] vardir: /var/lib/fusioninventory-agent/https:__helpdesk.sv.lnf.it_plugins_fusioninventory_front_plugin_fusioninventory.communication.php
[debug] [https://helpdesk.sv.lnf.it/plugins/fusioninventory/front/plugin_fusioninventory.communication.php] Next server contact planned for Tue Jul 17 06:35:00 2012
[debug] No accountinfo file defined
[debug] Account info updated successfully
[debug] [RPC] static files are in /usr/share/perl5/auto/share/dist/FusionInventory-Agent/html
[debug] FusionInventory Agent initialised
[info] RPC service started at: http://127.0.0.1:62354
[debug] [RPC] 10.5.1.5 request /status
I've tried to run the new/development version, but does not see the
tasks:
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-6e9e57b# /usr/bin/perl ./fusioninventory-agent -D --debug --logger=Stderr --conf-file=/etc/fusioninventory/agent.cfg
the 'no-socket' option is deprecated, use --no-httpd option instead
the 'info' option is deprecated, it was useless anyway
the 'no-snmpquery' option is deprecated, use --no-task snmpquery option instead
the 'no-netdiscovery' option is deprecated, use --no-task netdiscovery option instead
the 'no-ocsdeploy' option is deprecated, use --no-task ocsdeploy option instead
the 'rpc-trust-localhost' option is deprecated, use --httpd-trust 127.0.0.1 option instead
the 'no-inventory' option is deprecated, use --no-task inventory option instead
the 'daemon-no-fork' option is deprecated, use --daemon and --no-fork options instead
the 'no-wakeonlan' option is deprecated, use --no-task wakeonlan option instead
the 'no-software' option is deprecated, use --no-category software option instead
the 'no-printer' option is deprecated, use --no-category printer option instead
[debug] Logger backend File initialised
[debug] FusionInventory unified agent for UNIX, Linux and MacOSX (3.0.0)
[debug] Configuration directory: ./etc
[debug] Data directory: ./share
[debug] Storage directory: ./var
[debug] Lib directory: ./lib
[debug] Available tasks:
[debug] FusionInventory Agent initialised
[info] [http server] HTTPD service started at http://localhost:62354
[error] [http client] communication error: 400 Bad Request
I've to put where?
Anyway, i've to patch again some php file to prevent errors of ''undefined
class'' on logs, i attach my rude patches.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
--- configuration.form.php.orig 2012-07-16 17:28:44.000000000 +0200
+++ configuration.form.php 2012-07-16 17:31:04.000000000 +0200
@@ -66,7 +66,11 @@
foreach($_SESSION['glpi_plugin_fusioninventory']['configuration']['moduletabforms'] as $form) {
foreach($form as $code) {
if (isset($_POST[$code['submitbutton']])) {
- $obj = new $code['class'];
+ $class = $code['class'];
+ if ( ($class == 'PluginFusinvSNMPConfig') && (!class_exists('PluginFusinvSNMPConfig')) ) { // if plugin is unactive
+ include(GLPI_ROOT . "/plugins/fusinvsnmp/inc/config.class.php");
+ }
+ $obj = new $class;
$obj->$code['submitmethod']($_POST);
glpi_header($_SERVER['HTTP_REFERER']);
}
--- configuration.tabs.php.orig 2012-07-16 16:49:43.000000000 +0200
+++ configuration.tabs.php 2012-07-16 17:25:25.000000000 +0200
@@ -65,6 +65,9 @@
if ($plugin->isActivated($module)) {
foreach($form as $title=>$tab) {
$class = $form[$title]['class'];
+ if ( ($class == 'PluginFusinvSNMPConfig') && (!class_exists('PluginFusinvSNMPConfig')) ) { // if plugin is unactive
+ include(GLPI_ROOT . "/plugins/fusinvsnmp/inc/config.class.php");
+ }
$oTab = new $class;
$oTab->showForm(array('target'=>$_POST['target']));
}
@@ -96,6 +99,9 @@
if ($plugin->isActivated($module)) {
if (isset($form[$title])) {
$class = $form[$title]['class'];
+ if ( ($class == 'PluginFusinvSNMPConfig') && (!class_exists('PluginFusinvSNMPConfig')) ) { // if plugin is unactive
+ include(GLPI_ROOT . "/plugins/fusinvsnmp/inc/config.class.php");
+ }
$oTab = new $class;
$oTab->showForm(array('target'=>$_POST['target']));
break;
----- End forwarded message -----
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the Fusioninventory-user
mailing list