It will be helpful to solve the problem if you upload the yml file as well. 
I am new to this stuff myself but the error seems to suggest that it is 
taking "fortigate-fortinet-mib" as a keyword. Have you added "modules: " in 
the begining of your generator.yml file?

On Wednesday, 14 October 2020 at 09:53:18 UTC+5:30 [email protected] 
wrote:

> [root@localhost generator]# ./generator parse_errors
> level=info ts=2020-10-14T04:22:00.098Z caller=net_snmp.go:142 msg="Loading 
> MIBs" from=/root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs
>
> [root@localhost generator]#
>
> lol no errors?
>
> On Wednesday, October 14, 2020 at 3:20:39 PM UTC+11 Justin Counsell wrote:
>
>> where is this main.config file?
>>
>> On Wednesday, October 14, 2020 at 3:18:31 PM UTC+11 Justin Counsell wrote:
>>
>>> [root@localhost generator]# ./generator generate
>>> level=info ts=2020-10-14T04:12:44.442Z caller=net_snmp.go:142 
>>> msg="Loading MIBs" 
>>> from=/root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs
>>> level=error ts=2020-10-14T04:12:44.712Z caller=main.go:130 msg="Error 
>>> generating config netsnmp" err="error parsing yml config: yaml: unmarshal 
>>> errors:\n  line 1: field fortigate-fortinet-mib not found in type 
>>> main.Config"
>>>
>>>
>>> mibs work perfectly fine if I use snmpwalk... soon as I try to build it 
>>> cant find that module? fortigate_snmp does not exist... this came from 
>>> logicmonitor.
>>>
>>>
>>>

-- 
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/beb48a6b-015e-4c66-963d-e471e7f79ba7n%40googlegroups.com.

Reply via email to