Ad Widget

Collapse

Zabbix Fortigate VPN User List Over SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ze2user
    Junior Member
    • Sep 2020
    • 12

    #1

    Zabbix Fortigate VPN User List Over SNMP

    Hi All,
    I'm trying get active ssl vpn users on Fortigate. This is the OID I use :
    1.3.6.1.4.1.12356.101.12.2.4.1.3
    When I check it with snmpwalk, for every user it returns something like this:
    iso.3.6.1.4.1.12356.101.12.2.4.1.3.1 = STRING: "usera"
    iso.3.6.1.4.1.12356.101.12.2.4.1.3.2 = STRING: "userb"
    iso.3.6.1.4.1.12356.101.12.2.4.1.3.3 = STRING: "userc"
    How can I add this as Zabbix SNMP item ?
  • ze2user
    Junior Member
    • Sep 2020
    • 12

    #2
    It would be awesome if someone helped out

    Comment

    • brian@corflex.com
      Junior Member
      • Oct 2021
      • 1

      #3
      Did you ever get this figured out? I am looking to do something similar,

      Comment

      • necvga@gmail.com
        Junior Member
        • Oct 2021
        • 2

        #4
        snmpwalk -v 2c -c$SNMKEY $SERVERIP 1.3.6.1.4.1.12356.101.12.2.4.1.3 | grep -v "Such Instance" | cut -d' ' -f4 | sed 'N;s/\n/,/' | sed 's/"//g'

        Comment

        • tomdom
          Member
          • Nov 2021
          • 38

          #5
          Good morning, did you manage to do this? Showing a list of active SSL VPN users. How to make?

          Comment

          • tomdom
            Member
            • Nov 2021
            • 38

            #6
            Get on with the problem of placement, MIBs that display the user status string but when an error occurs
            fgVpnSslTunnelUserName 1.3.6.1.4.1.12356.101.12.2.4.1.3 displaystring read-only

            Config Zabbix

            Click image for larger version

Name:	Zrzut ekranu 2022-03-11 o 10.19.17.png
Views:	3489
Size:	46.2 KB
ID:	441275

            ERROR

            Click image for larger version

Name:	Zrzut ekranu 2022-03-11 o 10.20.17.png
Views:	3410
Size:	47.2 KB
ID:	441276


            LINK MIB Fortigate

            Attached Files

            Comment

            • tomdom
              Member
              • Nov 2021
              • 38

              #7
              In MIB Browser, if I do MIB, I get the answer correctly:

              Click image for larger version

Name:	Zrzut ekranu 2022-03-11 o 13.57.26.png
Views:	3279
Size:	809.0 KB
ID:	441291


              Unfortunately, I have a bug in zabbix


              Click image for larger version

Name:	Zrzut ekranu 2022-03-11 o 13.58.44.png
Views:	3424
Size:	100.2 KB
ID:	441292

              Comment

              • tomdom
                Member
                • Nov 2021
                • 38

                #8
                MIB 1.3.6.1.4.1.12356.101.12.2.4.1.3

                If I add .1 or .2 at the end, I will display individual users. How do I do to download all?

                Comment

                • andyway85
                  Junior Member
                  • Oct 2021
                  • 20

                  #9
                  You should do a discovery rule and set the snmp oid value as: discovery[{#VPNSSLUSER},.1.3.6.1.4.1.12356.101.12.2.4.1.3]

                  then you can query that every x minutes and u will have all the vpn users connected

                  Comment

                  • andyway85
                    Junior Member
                    • Oct 2021
                    • 20

                    #10
                    btw...somethin else is needed...
                    on the discovery rule you can query some stuff like the users, or bandwith per user...for that you create item prototypes, set a key and also set snmp oid with index: 1.3.6.1.4.1.12356.101.12.2.4.1.7.{#SNMPINDEX}

                    also a recommendation is to set preprocessing rules such as change per second and custom multiplier...that will do the trick

                    hope it helps

                    Comment

                    • tomdom
                      Member
                      • Nov 2021
                      • 38

                      #11
                      andryway thank you for your help. do you know any tutorials on youtube that will guide me how to set it all up?

                      Comment

                      • mickael
                        Junior Member
                        • Mar 2022
                        • 3

                        #12
                        Hi,
                        Something like :
                        SSL Tunnel :system.run["snmpwalk -v2c -c <Communauty> <FortiIP> 1.3.6.1.4.1.12356.101.12.2.3.1.2.2 | awk '{print $4}'"]

                        Comment

                        • botkillern
                          Junior Member
                          • Aug 2022
                          • 3

                          #13
                          Hello, Friend!

                          I don't if someone here still needing this information, but I'll post here to some one that need this solution too.

                          You just need to create a "Discovery Rule" with this OID:

                          discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.12.2.4.1.3]

                          Your rule will be like this one:

                          Click image for larger version

Name:	Captura de Tela 2022-08-16 às 18.01.13.png
Views:	3135
Size:	49.8 KB
ID:	449910

                          Best regards!

                          Comment

                          • botkillern
                            Junior Member
                            • Aug 2022
                            • 3

                            #14
                            You'll need a "Prototype Item" too. Like this:

                            Comment


                            • walter_brazolin
                              walter_brazolin commented
                              Editing a comment
                              Hello,

                              I saw that it was able to monitor the active users on the Fortigate VPN.

                              Could you please send me the item prototype?

                              Thanks,
                          • mikaeljs
                            Junior Member
                            • Nov 2022
                            • 1

                            #15
                            Originally posted by botkillern
                            You'll need a "Prototype Item" too. Like this:

                            Hello friend, how create a prototype item in this discovery?

                            Can you help me please?​

                            Comment

                            Working...