Ad Widget

Collapse

Invert a value in SNMP monitor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shshs
    Junior Member
    • Feb 2020
    • 1

    #1

    Invert a value in SNMP monitor

    Greetings,

    I have a pfSense with bunch of IPSec VPN tunnels setup. To monitor the tunnel status (which is provided by strongswan daemon that is tunning in pfSense) I had to install additional scripts:
    Monitoring PFSense IPSec tunnels using zabbix. Contribute to alanwds/zabbix_ipsec_pfsense development by creating an account on GitHub.


    In general everything works fine, but status of the IPSec tunnel itself is returned in inverse value on the graph: when it's "UP" zabbix draws it in "0" and when the tunnels is "DOWN" it draws it in "1". Here is an example when the actual tunnel status is "DOWN":


    on the graph below the tunnel is "UP":


    I know that you are not responsible for 3rd party integration tools/scripts, but may be you can advice me the easiest way to invert tunnel "status" graph values. Is it in .xml template file?
    Thank you.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    You can change the script check_ipsec.sh so that it returns inverse values.After that, change the trigger prototype in LLD so that it responds to the value <1.

    Comment

    Working...