Usually the problem is printed at the top of the parse_errors output,
typically you either have conflicting files, or are missing something from
the "IMPORTS" section of the CHECKPOINT-MIB.
CHECKPOINT-MIB DEFINITIONS ::= BEGIN
-- SUBTREE: 1.3.6.1.4.1.2620.1
-- iso.org.dod.internet.private.enterprises.checkpoint.products
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, Unsigned32,
IpAddress, Counter32, NOTIFICATION-TYPE, enterprises
FROM SNMPv2-SMI
OBJECT-GROUP
FROM SNMPv2-CONF
DisplayString
FROM SNMPv2-TC;
On Thu, Nov 19, 2020 at 4:08 PM 'Vasilii Mazyliuk' via Prometheus Users <
[email protected]> wrote:
> Hey!
>
> I have such issue.
> Trying to generate snmp.yml config from checkpoint mibs and receiving huge
> amount of errors.
>
> Checkpoint Mibs are taken from here (R80.40 version):
> https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk90470
>
> root@ubuntu:~/go/src/github.com/prometheus/snmp_exporter/generator#
> ./generator parse_errors | wc -l
> level=info ts=2020-11-19T13:26:00.958Z caller=net_snmp.go:142 msg="Loading
> MIBs" from=mibs
> level=warn ts=2020-11-19T13:26:00.969Z caller=main.go:120 msg="NetSNMP
> reported parse error(s)" errors=4356
> 4356
>
> Errors look like this:
>
> ...
> id not find 'fwLSConnOverallDesc' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingDesc' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingStat' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingDesc' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingStat' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingDesc' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Did not find 'fwLocalLoggingStat' in module CHECKPOINT-MIB
> (mibs/chkpnt-trap.mib)
> Unlinked OID in CHECKPOINT-TRAP-MIB: checkpoint ::= { enterprises 2620 }
> Undefined identifier: enterprises near line 67 of mibs/chkpnt-trap.mib
> Cannot adopt OID in CHECKPOINT-MIB: memDiskTransfers64 ::= { svnMem64 7 }
> Cannot adopt OID in CHECKPOINT-MIB: memSwapsSec64 ::= { svnMem64 6 }
> Cannot adopt OID in CHECKPOINT-MIB: memFreeReal64 ::= { svnMem64 5 }
> Cannot adopt OID in CHECKPOINT-MIB: memActiveReal64 ::= { svnMem64 4 }
> ...
>
> generator.yml I'm trying:
>
> # CheckPoint FW R80.40
>
> modules:
>
> cpfw:
>
> walk:
>
> - fwIfIndex
>
> - fwIfName
>
> - fwAcceptPcktsIn
>
> auth:
>
> community: <...>
>
>
> Version of generator is the last from master.
>
> Could you please point me if I'm doing something wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/766f080b-3b68-4433-aaf9-df8a8fd6fb89n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/766f080b-3b68-4433-aaf9-df8a8fd6fb89n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CABbyFmoEicR_nvEy64t45ehZmPQNqaoz3bMeXCpGnpwUx6KDVg%40mail.gmail.com.