netdisco / netdisco-mibs

82 stars 87 forks source link

Update MIBs (Palo Alto, Fortinet, Stormshield) #228

Open matthieu-ca opened 3 weeks ago

matthieu-ca commented 3 weeks ago

Hi,

I didn't find any information to update mibs myself. I sent you the following MIBs necessary for the new version.

Actually, for example, the Palo Alto MiB isn't able to show the hardware status, the connected equipment … If you have time, I would be interested to update MiB myself in the future, if it is possible. Thks

mib_stormshield.zip

mib_fortinet.zip pan-10-2-snmp-mib-modules(4).zip

matthieu-ca commented 3 weeks ago

I find a way to manage the upload of MIB in Netdisco. But with these new ones, nothing much change. I provide Stormshield MIB but I still get my stormshield router as "enterprises.11256.2.0" in Netdisco

JeroenvIS commented 2 weeks ago

Simply adding MIBs has no effect on Netdisco; MIBs are only used when specifically referenced by an appropriate device class in SNMP::Info. I haven't checked yet, but my guess is that a new device class for "Stormshield" is needed in SNMP::Info.

matthieu-ca commented 2 weeks ago

Indeed lask week I understand that point so I have created a Stormshield.pm (subclasses) for this device. It's work in some way.

Stormshield.zip

Now I have the vendor in Netdisco but not all the information. Moreover, I have this error when I run that command "docker-compose run netdisco-do show -DIII -S -d 10.19.226.1 -e vendor" even if I have correctly import the mib directory in netdisco/netdisco-mibs.

[1] 2024-07-08 13:15:21 debug [10.19.226.1:161] try_connect with v: 3, t: 0.2, r: 0, class: SNMP::Info::Layer7::Stormshield, comm: [1] 2024-07-08 13:15:21 debug Can't locate SNMP/Info/Layer7/Stormshield.pm in @INC (you may need to install the SNMP::Info::Layer7::Stormshield module) (@INC entries checked: /home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/lib /home/netdisco/nd-site-local/lib /home/netdisco/perl5/lib /home/netdisco/perl5/bin/lib /home/netdisco/perl5/lib/perl5/5.38.2/x86_64-linux-thread-multi /home/netdisco/perl5/lib/perl5/5.38.2 /home/netdisco/perl5/lib/perl5/x86_64-linux-thread-multi /home/netdisco/perl5/lib/perl5 /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/perl5/core_perl/Module/Load.pm line 78.

If u have any clues thks