it was all running good when suddenly tried to add another snmp target but i got a problem on prometheus status !
i deleted the new target and restarting prometheus as well as snmp_exporter but suddenly i got another error with snp_exporter service :
level=error ts=2020-10-13T16:22:53.930Z caller=main.go:156 msg="Error parsing config file" err="yaml: line 2: mapping values are not allowed in this context"
# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
-- apcups: -- MODULE-IDENTITY walk: -- OrgName - 1.3.6.1.2.1.2 -- Fortinet Technologies, Inc. - 1.3.6.1.4.1.318.1.1.1.12 -- ContactInfo - 1.3.6.1.4.1.318.1.1.1.2 -- Technical Support -
- 1.3.6.1.4.1.318.1.1.26.8.3 FORTINET-FORTIGATE-MIB DEFINITIONS ::= BEGIN get:
- 1.3.6.1.2.1.1.3.0 IMPORTS - 1.3.6.1.4.1.318.1.1.1.8.1.0
FnBoolState, FnIndex, fnAdminEntry, fnSysSerial, fortinet metrics:
FROM FORTINET-CORE-MIB - name: sysUpTime
ifEntry, ifName, ifIndex oid: 1.3.6.1.2.1.1.3
FROM IF-MIB type: gauge
InetAddress, InetAddressPrefixLength, InetAddressType, InetPortNumber help: The time (in hundredths of a second) since the network management portion
FROM INET-ADDRESS-MIB of the system was last re-initialized. - 1.3.6.1.2.1.1.3
MODULE-COMPLIANCE, NOTIFICATION-GROUP, OBJECT-GROUP - name: ifNumber
FROM SNMPv2-CONF oid: 1.3.6.1.2.1.2.1
sysName type: gauge
FROM SNMPv2-MIB help: The number of network interfaces (regardless of their current state) present
Counter32, Counter64, Gauge32, Unsigned32, Integer32, IpAddress, on this system. - 1.3.6.1.2.1.2.1
MODULE-IDENTITY, NOTIFICATION-TYPE, OBJECT-TYPE, TimeTicks, OBJECT-IDENTITY - name: ifIndex
FROM SNMPv2-SMI oid: 1.3.6.1.2.1.2.2.1.1
Ipv6Address type: gauge
FROM IPV6-TC help: A unique value, greater than zero, for each interface - 1.3.6.1.2.1.2.2.1.1
CounterBasedGauge64 indexes:
FROM HCNUM-TC - labelname: ifIndex
DisplayString, TEXTUAL-CONVENTION, AutonomousType, DateAndTime, PhysAddress type: gauge
FROM SNMPv2-TC; - name: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2 fnFortiGateMib MODULE-IDENTITY type: DisplayString
LAST-UPDATED "201704050000Z" help: A textual string containing information about the interface - 1.3.6.1.2.1.2.2.1.2
ORGANIZATION indexes:
"Fortinet Technologies, Inc." - labelname: ifIndex
CONTACT-INFO type: gauge
" - name: ifType
Technical Support oid: 1.3.6.1.2.1.2.2.1.3
DESCRIPTION indexes:
"Added fgInternalLTEModemsInfo under fnFortiGateMib, Added Modem, SIM card, Signal Info, - labelname: ifIndex
Traffic Info, Data Session Info OIDs." type: gauge
REVISION "201704050000Z" enum_values:
DESCRIPTION 1: other
"Added extended database version OIDs for AV and IPS." 2: regular1822
REVISION "201701160000Z" 3: hdh1822
DESCRIPTION 4: ddnX25
"Added fgFwIppools OIDs." 5: rfc877x25
REVISION "201609150000Z" 6: ethernetCsmacd
DESCRIPTION 7: iso88023Csmacd
"Various non-monotonically increase Counter32 values have been changed to Gauge32." 8: iso88024TokenBus
REVISION "201606170000Z" 9: iso88025TokenRing
DESCRIPTION 10: iso88026Man
"Added fgProcessorFnNP6 in fgProcessorTypes." 11: starLan
REVISION "201504230000Z" 12: proteon10Mbit
DESCRIPTION 13: proteon80Mbit
"Added fgDevice OIDs" 14: hyperchannel