Ad Widget

Collapse

Display the result of a discovery rule on a list

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alrightbabyboy
    Member
    • Jun 2023
    • 48

    #1

    Display the result of a discovery rule on a list

    Hi there,

    My answer is, how to display the result of a discovery rule on a widget list.

    I try to monitor a list of username connected on VPN with a forticlient.

    The discovery rule give me : {#SNMPINDEX}=1,{#SNMPUSERNAME}=toto.t,{SNMPINDEX}= 2,{#SNMPUSERNAME}=titi.d ...

    i tried to create a prototype of element, i have only one username return on a text field.

    I dont know how to do it.

    I want a widget with a liste as 1 : username, 2 : username ...


    Thx in advance.

    kind regards.
  • Answer selected by Alrightbabyboy at 19-09-2023, 19:14.
    Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    Which version of zabbix are you using? Show a screenshot of the error and settings.

    Comment


    • Alrightbabyboy
      Alrightbabyboy commented
      Editing a comment
      I am on zabbix 6.0 LTS..
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    To see in this format, you can try to get the entire list as a text type item value.
    Try using the "walk[]” key https://www.zabbix.com/documentation...snmp_oids_walk
    and the “SNMP walk to JSON​” preprocessing and another one JS preprocessing for output a multistring formated text.

    Comment


    • Alrightbabyboy
      Alrightbabyboy commented
      Editing a comment
      I cant create the item, i have an error : OID "walk[1.3.6.1.4.1.12356.101.12.2.4.1.3]" contains unsupported parameters. ...
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #3
    Which version of zabbix are you using? Show a screenshot of the error and settings.

    Comment

  • Alrightbabyboy
    Member
    • Jun 2023
    • 48

    #4
    I am using zabbix 6.0LTS.

    I just want to display ppl who are connected to the VPN on the dashboard, can't i do it simply ?

    I've been looking for a long time.

    My Discovery rule :


    Click image for larger version  Name:	image.png Views:	0 Size:	29.7 KB ID:	470641

    Click image for larger version

Name:	image.png
Views:	472
Size:	18.0 KB
ID:	470645​​

    I tried to create an item with walk [] :

    Click image for larger version  Name:	image.png Views:	0 Size:	15.4 KB ID:	470643

    Click image for larger version  Name:	image.png Views:	0 Size:	4.5 KB ID:	470644

    Looks like i dont have walk parameters.

    Can't i display several {#SNMPVALUE} with an protoype item ?


    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #5
      Unfortunately "walk" appears in 6.4...

      Comment

      • Alrightbabyboy
        Member
        • Jun 2023
        • 48

        #6
        So how can i display simply results of the discovery list with a widget ??

        Comment

        Working...