So the snmp exporter seems to work but doesnt want to communicate wit the 
fortigate. I get "server returned HTTP status 400 Bad Request."

But if I use the SNMP exporter page on port 9116 then enter the IP and 
module it works just fine and can see the OIDs respond with data.

Any ideas? 

On Wednesday, October 14, 2020 at 8:41:11 PM UTC+11 [email protected] 
wrote:

> I use visual studio code with notepad++ keymap. 
>
> On Wednesday, 14 October 2020 13:04:50 UTC+5:30, Justin Counsell wrote:
>
>> 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/fa5bf0e8-9120-4045-a501-2e36820c001dn%40googlegroups.com.

Reply via email to