Skip to content

How to extend wiremaps

vincentbernat edited this page Apr 30, 2011 · 1 revision

Extending Wiremaps

Wiremaps come with a limited number of equipments supported. You can extend this list easily.

Gathering information from new equipments

If Wiremaps does not know how to handle your equipments, almost no information will be gathered. To add support for additional equipments, this is really easy. Look at collector/5510.py and modify it to suit your need:

  • handleEquipment will tell what equipment is handled by the class. The OID are the one in SNMPv2-MIB::sysObjectID.0.
  • collectData is called to actually collect data. You should just call one of the existing collectors.

Don't forget to instantiate your new class. Otherwise, it won't be found.

Feel free to contact me if you need to add support for some equipments.

Adding new images

Each equipment is illustrated with an image to let the user know what kind of equipment this is. If there is a large question mark, this means that there is no image available for this equipment. Use the existing illustration in SVG format to build the illustration for this equipment and put the result in wiremaps/web/images. Use make to build the PNG.

Then, use the following command:

cd wiremaps/web/images
ln -s <oid>.png <equipment>.png