We are currently reworking the forum to embellish it and make it better for you all to get the answers you are looking for. In order to do so, we have to freeze this current forum meaning you can access all the history of posts and discussions but you can no longer create new items.
For all your current questions, you can join our Slack workspace were many community members are already helping each others: Join Slack
Tout est une question d'indicateurs nécessaires.
Qu'as-tu besoin de surveiller, sur quel système, quelles applications ?
En outre, je te conseille de mettre un meilleur titre la prochaine fois.
Raphaël 'SurcouF' Bordet
Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root... Dons Paypal
Je veux recouperer de l'information apres des serveurs windows
utilisation de disque dure, memoire, cpu, quelques applications, etc
Pour les trois premiers critères, l'agent SNMP fourni sous Windows Server 2k3 (puisque tu ne precises pas la version du système en question) remplit parfaitement cette tâche pour peu que tu le configures[1] correctement.
Toutefois, cet agent SNMP ne sait pas communiquer en SNMPv3, ce qui enlèv tout critère de sécurite. Il existe une alternative avec Net-SNMP pour Windows. La dernière version, la 5.4, permet de se passer complètement de l'agent SNMP de base car elle implemente l'extension winExtDLL[2], capable d'exploiter les DLLs de l'agent SNMP d'origine.
As of Net-SNMP 5.4, the Net-SNMP agent is able to load the Windows SNMP
service extension DLLs by using the Net-SNMP winExtDLL extension.
The Windows SNMP service must be installed, but the service must be disabled.
This is required so that the extension DLLs are available for loading, and
also because this extension and the existing Windows extensions use the
Windows SNMP API from snmpapi.dll.
An alternative to winExtDLL is to proxy requests from Net-SNMP to the Windows
SNMP service. See the section 'Co-existence with Microsoft SNMP services'.
Limitations
-----------
- For an unknown reason, linkUp/Down generic traps are not received from the
Windows SNMP RFC1156Agent extension. The DLL has an exported function called
Mib2DLLEntry, but the use for this function is not known so this may or may
not be related. Other extensions are able to send traps without any issues.
- When using HP Insight Agents, some parts of the enterprises.232 tree are not
accessible. The cause of this is not known.
- sysUpTime.0 does not report the correct uptime for the agent. This is
because the Windows extension checks for the uptime of the SNMP service,
which is not running when Net-SNMP is running.
Enabling the Windows SNMP extension agents
------------------------------------------
The recommended way to start snmpd is with the following command line:
The above command will exclude all the Net-SNMP extensions that overlap with
the default Windows (2003) extensions included with Windows. Other Net-SNMP
modules take precedence over the modules loaded by winExtDLL.
The Windows DLL snmpmib.dll (SNMPMI contains SNMP traffic statistics
(.1.3.6.1.2.1.11). As we are using Net-SNMP and not the Windows SNMP Service,
no values will be returned from the Windows extension. To allow SNMP
statistics to be received, the Net-SNMP module snmp_mib is permitted to load
by not excluding it in the above command line. As stated above, this module
will take precedence over the Windows module.
Registry Information
--------------------
Warning: Improper use of the registry editor can damage to your operating
system and should only be used by experienced users.
The following registry keys are used by the Windows SNMP Service to determine
what extension DLLs to load:
Each REG_SZ value contains the registry path to an extension agent which
contains the path to the DLL. For example:
Name Type Value
1 REG_SZ SOFTWARE\Microsoft\LANManagerMIB2Agent\CurrentVers ion
To prevent winExtDLL from loading the above extension, change the registry
path to an invalid path such as:
Name Type Value
1 REG_SZ SOFTWARE\Microsoft\LANManagerMIB2Agent\CurrentVers ion!!!
Service dependencies
--------------------
Services that depend on the SNMP Service will have to be modified to depend on
Net-SNMP instead of SNMP by modifying the registry. See Microsoft article
193888 for more information.
Enfin, pour le dernier critère, il faudrait être plus précis car de nombreuses applications disposent de leurs propres agents SNMP capables d'agir seul ou en symbiose avec l'agent du système. Des applications comme Oracle, JBoss ou encore Tomcat, par exemple. Sans parler de ce qu'à deja evoque DonKiShoot.
Concernant SNMP sur Windows, pourquoi ne pas utiliser celui fourni directment par Microsoft ?!
Au cas ou tu ne saurais pas comment faire :
Ajout/Suppression de programmes -> Ajouter ou supprimer des composants Windows -> Outils de gestion d'analyse
Tu sélectionne "détails", tu choisis ce qui t'intéresse.
Ensuite tu vas dans la gestion des services, tu paramêtres comme tu veux ton service SNMP.
Si tu veux utiliser SNMP, je te conseille ce logiciel (gratuit pendant qq jours) qui te donne un grand nombre de mib sur tes équipements : http://www.oidview.com/index.html
Voilà, bon courage !
ps : pour le moment,j'utilise NC_Net et je suis satisfait des résultats (disques, mémoire, traffic, proc, services, ...) qui me donnent. C'est vrai que si tu cherches des trucs particuliers, SNMP devient nécessaire. ^_^
dans mon fichier de conf "snmpd.conf" j'ai seulement deux lignes:
createUser netadmin MD5 "phrase" DES
rouser netadmin
j'ai installé openssl et net-snmp sur windows parce que je veux utiliser snmpv3 qui suporte le cryptage dans la comunication.J'ai deja testé avec celui de windows, mais il n a pas snmpV3.
Comment