You are not logged in.
Bonjours, je tiens d'abord a te remercier pour ton plugin, mais je n'arrive pas à le faire fonctionner.
Il ce lance bien mais s'arrête tout seul au bout d'un moment et ne remonte rien dans glpi.
J'ai un peux regarder ton code et je me suis rendu compte qu'il s' arrêtais dans une boucle if, mais je ne connais pas le langage perl et ne comprend donc pas cette ligne.
Si sa peut aider a Débugger, je te fournit aussi les logs.
print "toto\n";
if ($nbip != 0) {
print "S'affiche\n";
$xml_post .= discovery_threaded($nb_threads_discovery,$nb_core_discovery,$log,$Bin,$config->server,"",$PID,$fragment,$iplist,$authSNMP_discovery,$nbip,$argnodisplay,$argnoprogressbar);
}
print "S'affiche pas\n";
.
LOG :
=========================================
============== Start Agent ==============
=========================================
Operating system : MSWin32
Operating system version : 5.00
Operating system arch : MSWin32-x86-multi-thread
Perl version : 5.10.1
Thread version : 1.74
ForkManager version : 0.7.5
SNMP version :
Zlib version : 2.02
AppConfig version : 1.66
UserAgent version : 5.829
HTTP Request Common version : 5.824
XML Simple version : 2.18
Data Dumper version : 2.125
FindBin version : 1.50
$VAR1 = {
'agent' => {
'threads_query' => '6',
'PID' => '03202006001',
'fragment' => 50,
'core_query' => '1',
'logs' => '2',
'key' => 'Zcikx5vPEYND2vr74kcUWM6eGeEUHb',
'id' => '1',
'threads_discovery' => '20',
'core_discovery' => '2'
},
'discovery' => {
'rangeip' => {
'entity' => '1',
'id' => '2',
'ipend' => '192.168.8.20',
'ipstart' => '192.168.8.1'
},
'authentification' => {
'1' => {
'version' => '1',
'sec_name' => {},
'auth_passphrase' => {},
'community' => 'public',
'sec_level' => {},
'priv_protocol' => {},
'priv_passphrase' => {},
'auth_protocol' => {}
},
'2' => {
'version' => '2c',
'sec_name' => {},
'auth_passphrase' => {},
'community' => 'public',
'sec_level' => {},
'priv_protocol' => {},
'priv_passphrase' => {},
'auth_protocol' => {}
}
}
}
};
==== List of IP to discover ====
$VAR1 = {
'1' => {
'192.168.8.10' => '1',
'192.168.8.2' => '1',
'192.168.8.20' => '1',
'192.168.8.16' => '1',
'192.168.8.18' => '1',
'192.168.8.12' => '1',
'192.168.8.6' => '1',
'192.168.8.8' => '1',
'192.168.8.4' => '1',
'192.168.8.14' => '1'
},
'0' => {
'192.168.8.11' => '1',
'192.168.8.15' => '1',
'192.168.8.3' => '1',
'192.168.8.19' => '1',
'192.168.8.9' => '1',
'192.168.8.13' => '1',
'192.168.8.7' => '1',
'192.168.8.1' => '1',
'192.168.8.5' => '1',
'192.168.8.17' => '1'
}
};
==== Discovery ====
[192.168.8.9][YES][2c][public]
[192.168.8.11][YES][2c][public]
[192.168.8.3][YES][2c][public]
[192.168.8.1][YES][2c][public]
[192.168.8.19][YES][2c][public]
[192.168.8.5][YES][2c][public]
[192.168.8.14][YES][2c][public]
[192.168.8.4][YES][2c][public]
[192.168.8.12][YES][2c][public]
[192.168.8.17][NO][2c][public] No response from remote host "192.168.8.17"
[192.168.8.15][NO][2c][public] No response from remote host "192.168.8.15"
[192.168.8.13][NO][2c][public] No response from remote host "192.168.8.13"
[192.168.8.7][NO][2c][public] No response from remote host "192.168.8.7"
[192.168.8.2][NO][2c][public] No response from remote host "192.168.8.2"
[192.168.8.20][NO][2c][public] No response from remote host "192.168.8.20"
[192.168.8.6][NO][2c][public] No response from remote host "192.168.8.6"
[192.168.8.16][NO][2c][public] No response from remote host "192.168.8.16"
[192.168.8.8][NO][2c][public] No response from remote host "192.168.8.8"
[192.168.8.18][NO][2c][public] No response from remote host "192.168.8.18"
[192.168.8.10][NO][2c][public] No response from remote host "192.168.8.10"
[192.168.8.17][NO][1][public] No response from remote host "192.168.8.17"
[192.168.8.15][NO][1][public] No response from remote host "192.168.8.15"
[192.168.8.13][NO][1][public] No response from remote host "192.168.8.13"
.
Offline
J'aie encore un peux avancer,
Je suis rendu au lancement de la fonction wait_all_children qui est lancer dans le fichier tracker_discovery.pm
print "passe";
$pm->wait_all_children;
print "passe pas";
.
voila, je continue les investigations
Last edited by tocks (2009-11-17 22:00:27)
Offline