You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-10-13 12:36:23

redfish
Member
Registered: 2009-09-29
Posts: 45

Tracker connexions avec Procurve

Bonjour,
GLPI 0.72.21 avec Tracker 2.1.2
Mes switches avec le modèle Procurve Générique ne remontent pas leurs connexions, de quoi GLPI a-t'il besoin pour établir les connexions ?
J'ai bien essayé de comparer le modèle CiscoCatalyst qui me remonte les connexions avec le modèle Procurve Generique mais rien ne m'a sauté au yeux à part le support de VLAN.
Je précise que ma config qui remonte les connexions Cisco tourne sur un autre serveur, alors j'ai peut-être une erreur quelque part sur le serveur qui interroge les HP Procurve mais le reste des données remonte bien c'est uniquement les connexions qui manquent.

Merci d'avance

Offline

#2 2009-10-13 17:34:41

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

pouvez vous mettre les sysdescr de ces switchs (c'est la description dans le menu de découverte Tracker

Offline

#3 2009-10-14 08:33:02

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Bonjour,
Pour l'instant j'en ai testé trois modèles.

HP J4121A ProCurve Switch 4000M, revision C.09.30, ROM C.06.01 (/sw/code/build/vgro(c09))
ProCurve J4905A Switch 3400cl-24G, revision M.10.41, ROM I.08.12 (/sw/code/build/makf(mkfs))
HP J4813A ProCurve Switch 2524, revision F.05.69, ROM F.01.01  (/sw/code/build/info(s02))


Merci

Patrick

Offline

#4 2009-10-14 10:25:40

romain1206
Member
Registered: 2008-03-04
Posts: 224

Re: Tracker connexions avec Procurve

dans ma boite

le J4121A et le J4813A fonctionne et les ports sont bien reliés sur les PC


Ocs-ng 2.2
Glpi 9.1.1

Offline

#5 2009-10-14 10:29:43

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

Vous pouvez tester avec ce patch? https://forge.indepnet.net/repositories … acker/1662

Offline

#6 2009-10-14 17:10:16

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Bonjour,
J'a installé les patches mais là tracker_fullsync.sh ne me remonte plus rien du tout mais plus les imprimantes (j'ai essayé d'abord sans relancer le script de l'agent à 16:51 puis avec l'agent à 16:52:

PID Statut Nombre de process Date de début d'exécution Date de fin d'exécution Equipements réseau traités Ports réseau traités Imprimantes traitées Erreurs Durée totale d'exécution du script
2871652  1 2009-10-14 16:52 2009-10-14 16:52 0 0 0 0 16 Sec(s)
2871651  1 2009-10-14 16:51 2009-10-14 16:51 0 0 0 0 0 Sec(s)
2871515  1 2009-10-14 15:15 2009-10-14 15:15 6 0 15 0 43 Sec(s)


Je creuserais un peu plus demain matin.

Bonne fin de journée

Patrick

Offline

#7 2009-10-14 17:17:36

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

Oui j'ai vu que ça marchait pas mieux, il faut aussi mettre le patch https://forge.indepnet.net/repositories … acker/1664

Offline

#8 2009-10-15 09:34:39

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Bonjour,
Maintenant j'ai ça quang je lance l'agent et il ne collecte plus rien :

root@lin-util:/home/pa# perl /var/www/glpi/agent_tracker/tracker_agent.pl
Threads version: 1.72
Subroutine start_session redefined at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 166 (#1)
    (W redefine) You redefined a subroutine.  To suppress this warning, say

        {
        no warnings 'redefine';
        eval "sub name { ... }";
        }

== Discovery devices ==
[0 / 285] |
[0 / 285] -The file has been successfully uploaded
== Query devices ==
[[0 / 22] -Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 168 (#2)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

SNMP ERROR: %s.
Use of uninitialized value $error in print at
        /var/www/glpi/agent_tracker/inc/tracker_query.pm line 325 (#2)
[[0 / 22] \SNMP ERROR: %s.
SNMP ERROR: %s.
SNMP ERROR: %s.
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 168 (#2)
SNMP ERROR: %s.
SNMP ERROR: %s.
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 188 (#2)
SNMP ERROR: %s.
[[0 / 22] |SNMP ERROR: %s.
SNMP ERROR: %s.
SNMP ERROR: %s.
SNMP ERROR: %s.
SNMP ERROR: %s.
SNMP ERROR: %s.
[[0 / 22] /SNMP ERROR: %s.
SNMP ERROR: %s.
Use of uninitialized value $_[10] in string eq at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 168 (#2)
SNMP ERROR: %s.
SNMP ERROR: %s.
[[0 / 22] \
[0 / 285] /The file has been successfully uploaded

Offline

#9 2009-10-15 10:11:21

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

avez-vous moyen de prendre les version svn de l'agent et du serveur tracker? En effet si vous avez mis les patch sur la version releasée, ça risque de pas marcher.

Offline

#10 2009-10-15 10:59:20

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Quel URL dois-je utiliser pour accéder au repository SVN  ?
Comme je n'y arrivais pas j'ai essayé de voir les nightly-tarballs mais je n'ai pas trouvé l'agent (seulement le plugin) en  https://forge.indepnet.net/tarballs-plugins/

Merci et bonne journée

Last edited by redfish (2009-10-15 10:59:35)

Offline

#11 2009-10-15 11:03:25

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

ouais faut faire un

svn export https://forge.indepnet.net/svn/tracker/agent-trunk agent

Offline

#12 2009-10-15 11:44:04

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

J'ai une demande d'authentification....

Offline

#13 2009-10-15 11:48:13

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

avec l'export?

bizarre ça

Offline

#14 2009-10-15 11:53:48

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

Offline

#15 2009-10-15 11:54:31

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Oups,
Autant pour moi pardon....
C'est bon j'ai les fichiers de l'agent, pour les fichiers du plugin je prends ceux de https://forge.indepnet.net/svn/tracker/trunk ou ceux du tarball ?

Je ne dois pas passer par une install du plugin, juste remplacer les fichiers ?

Merci de votre aide

Last edited by redfish (2009-10-15 11:56:57)

Offline

#16 2009-10-15 11:59:50

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

les 2 c'est pareil normalement, j'ai quasiment pas fait de modif ce matin

De mémoire juste remplacer les ficheirs devrzit suffire

Offline

#17 2009-10-15 12:07:59

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Il y a moins d'erreurs mais j'ai quand même ça avec l'agent (et dans "Informations sur l'execution des agents j'ai zéro dans équipements interrogés et découverts) :


[0 / 285] /Use of uninitialized value $table{".1.3.6.1.2.1.4.22.1.2.93.160.53."...} in
        unpack at /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 156 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.

Use of uninitialized value $table{".1.3.6.1.2.1.4.22.1.2.94.192.168"...} in
        unpack at /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 156 (#1)
Use of uninitialized value within %table in unpack at
        /var/www/glpi/agent_tracker/inc/tracker_snmp.pm line 156 (#1)

Offline

#18 2009-10-15 12:29:34

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

Humm la même erreur que tsmr. Normalement ça n'empêche pas de le faire fonctionner, c'est juste un warning

Offline

#19 2009-10-15 12:42:57

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Il a l'air de fonctionner, dans le log à la fin il y a ça mais l'execution de l'agent rapporte zéro éléments interrogés et même si je lance le script serveur rien n'est remonté depuis le dernier scan/upload avec les anciens agent/plugin :

==== Query ====
[160.53.48.230] : start Thread
[160.53.48.99] : start Thread
[160.53.48.230] : end Thread
[160.53.48.203] : start Thread
[160.53.48.206] : start Thread
[192.168.0.205] : start Thread
[160.53.48.99] : end Thread
[192.168.0.206] : start Thread
[160.53.48.203] : end Thread
[160.53.48.206] : end Thread
[160.53.48.205] : start Thread
[160.53.48.205] : end Thread
[192.168.0.203] : start Thread
[160.53.48.207] : start Thread
[160.53.48.106] : start Thread
[160.53.48.207] : end Thread
[160.53.48.106] : end Thread
[160.53.48.162] : start Thread
[160.53.48.162] : end Thread
[192.168.0.200] : start Thread
[160.53.48.208] : start Thread
[160.53.48.208] : end Thread
[160.53.48.201] : start Thread
[160.53.48.201] : end Thread
[160.53.48.142] : start Thread
[160.53.48.142] : end Thread
[160.53.48.126] : start Thread
[160.53.48.202] : start Thread
[160.53.48.126] : end Thread
[160.53.48.202] : end Thread
[160.53.48.104] : start Thread
[192.168.0.207] : start Thread
[160.53.48.104] : end Thread
[160.53.48.103] : start Thread
[160.53.48.103] : end Thread
[160.53.48.100] : start Thread
[160.53.48.100] : end Thread
[192.168.0.201] : start Thread
[192.168.0.200] : end Thread
[192.168.0.206] : end Thread
[192.168.0.203] : end Thread
[192.168.0.205] : end Thread
[192.168.0.201] : end Thread
[192.168.0.207] : end Thread

Offline

#20 2009-10-15 12:44:45

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

dans le log, ça ne se fini pas par

=========================================
================== END ==================
=========================================

Offline

#21 2009-10-15 13:03:48

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Si j'ai bien
[192.168.0.201] : start Thread
[192.168.0.200] : end Thread
[192.168.0.206] : end Thread
[192.168.0.203] : end Thread
[192.168.0.205] : end Thread
[192.168.0.201] : end Thread
[192.168.0.207] : end Thread
=========================================
================== END ==================
=========================================

désolé j'avais pas pensé que c'était important

Offline

#22 2009-10-15 13:37:44

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

La ça me parait bon. Une fois l'agent fini peux-tu m'envoyer par mail (d.durieux@siprossii.com) le fichier *-device.xml qui se trouve dans glpi/files/_plugins/tracker ?

Offline

#23 2009-10-15 14:23:58

BenLar
Member
From: Lanvallay
Registered: 2009-01-06
Posts: 378

Re: Tracker connexions avec Procurve

Toujours pas de "daily tarball" pour l'agent sad

Ne serait-il pas possible de mettre l'agent avec le serveur (dans le tar.gz) ?

Last edited by BenLar (2009-10-15 14:25:28)

Offline

#24 2009-10-15 14:29:37

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Tracker connexions avec Procurve

non, encore moins pour lesprochaines versions vu tout ce qui va être ajouté

Offline

#25 2009-10-15 15:23:24

redfish
Member
Registered: 2009-09-29
Posts: 45

Re: Tracker connexions avec Procurve

Merciiii,

Ca marche.

PS: Pour les éventuelles autres victimes, je suppose que le patch que j'ai reçu sera dans le SVN ?

Patrick

Offline

Board footer

Powered by FluxBB