Holy moley it worked. Thank you so much everyone.

Sorry off topic but,  Could anyone recommend a text editor for writing yaml
that will help me to not run into these formatting issues?

On Wed, Oct 14, 2020 at 6:26 PM sabarish narayanan <[email protected]>
wrote:

> Check the indentation of "modules:", " fortigate_snmp:" and "walk:" try
> the following,
>
> modules:
>   fortigate_snmp:
>     walk:
>       - ifXTable
>       - fgSystem
>       - fgVpn
>       - fgIntf
>       - fgInetProto
>
>     version: 3
>     max_repetitions: 25
>     timeout: 10s
>     auth:
> .
> .
> .
>
> This worked for me. I am using the exact dashboard you mentioned.
> On Wednesday, 14 October 2020 at 12:53:03 UTC+5:30 sabarish narayanan
> wrote:
>
>> If it's exactly the same as  the one in
>> https://grafana.com/grafana/dashboards/7567, then it won't work because
>> that's not the complete file. Also that doesn't have
>> "fortigate-fortinet-mib" in it.
>> If you have added "modules:", before it then there may be some indenting
>> issue. But I think without the generator.yml file it will be very difficult
>> to guess the issue.
>>
>> On Wednesday, 14 October 2020 at 12:36:13 UTC+5:30 [email protected]
>> wrote:
>>
>>> Can you run "cat generator.yml" and paste the *exact* output here,
>>> without mangling the formatting? (Preferably, after pasting, select the
>>> text and change font to "Courier New").
>>>
>>> The error message appears to be saying that the string
>>> "fortigate-fortinet-mib" appears in your YAML file.  But that string does
>>> not occur in the sample file that you linked to.
>>>
>>> The overall structure of generator.yaml should be like this one:
>>> https://github.com/prometheus/snmp_exporter/blob/master/generator/generator.yml
>>>
>> --
> 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/36b53bc3-2013-438c-993d-227bd6c357a6n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/36b53bc3-2013-438c-993d-227bd6c357a6n%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/CA%2B5v_7W9Nzn5iGCo-6Zfere3jk6T8JmyF-0sCRidVHQ2uVSTqw%40mail.gmail.com.

Reply via email to