Ad Widget

Collapse

Openvpn and get value from item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sancho81
    Junior Member
    • Oct 2018
    • 1

    #1

    Openvpn and get value from item

    Dear all,
    it's a very newbye question. I'm a nagios user, I want to move to Zabbix but I need to understand how it works...
    So, please help me with this question.

    I have a openvpn server used by mobile clients, I need a alert that triggers when a new client connects with VPN.
    Now, with nagios, I have a script that uses the management connection on openvpn and return me the "name" of the client, something like this:
    OPENVPN MOBILE - WARNING: usermobile1, usermobile2

    On Zabbix, I created a new ITEM and i can "get" this string value from the script, so for example I can have this item value: usermobile1, usermobile2

    Now I want to create a TRIGGER that warn me when this value is not empty, and, possibly return me the "value" of this item. So I can see immediately on the dashboard who is using VPN.

    I tried alot of macros on description of the trigger, nothing works:

    Code:
    Value: {{HOSTNAME}:openvpn.test.last(0)}
    ---
    Value2: {Template App OpenVPN:openvpn.test.last(0)}
    ---
    Value3 {Template App OpenVPN:openvpn.test}
    ---
    Value4 {Template App OpenVPN:openvpn.test.lastvalue()}
    ---
    Value5 {Template App OpenVPN:openvpn.test.lastvalue(0)}
    --
    value6  {{HOSTNAME}:openvpn.test}
    --
    value7: {{HOSTNAME}:openvpn.test.lastvalue()}
    --
    value8: {{HOSTNAME}:openvpn.test.lastvalue(0)}
    The name of the template is: Template App OpenVPN
    the "key" of the ITEM is: openvpn.test

    Please could you help me? I know it's a stupid question ...thank you
Working...