Ad Widget

Collapse

Trigger for IfOperStatus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sgalliani
    Junior Member
    • Oct 2016
    • 16

    #1

    Trigger for IfOperStatus

    Hi Guys,
    I'm trying to figure out how trigger expressions work and i currently have a small problem,
    I have to find a way to use IfOperstatus on my switches, to see if a port is no longer used, if it's not used for a certain amount of time.
    For example if there is nothing connected to specific port for more than 5 days, it should send me an alert.
    Would that be?
    {Template SNMP Interfaces HP:ifOperStatus[{#IFDESCR}].diff(5d)}=1
    Thanks in advance
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by sgalliani
    Hi Guys,
    I'm trying to figure out how trigger expressions work and i currently have a small problem,
    I have to find a way to use IfOperstatus on my switches, to see if a port is no longer used, if it's not used for a certain amount of time.
    For example if there is nothing connected to specific port for more than 5 days, it should send me an alert.
    Would that be?
    {Template SNMP Interfaces HP:ifOperStatus[{#IFDESCR}].diff(5d)}=1
    Thanks in advance
    you dont have this on diff:

    Code:
    diff
    Checking if last and previous values differ.		Supported value types: float, int, str, text, log
    
    Returns:
    1 - last and previous values differ
    0 - otherwise
    you can try do it in diffrent ways-

    1. make item check once a day and then make a trigger by last 5 values
    2. make bash script for that
    3. try this :
    Code:
    nodata (sec)
    Checking for no data received.	sec - evaluation period in seconds. The period should not be less than 30 seconds.	Supported value types: any
    
    Returns:
    1 - if no data received during the defined period of time
    0 - otherwise
    
    Note that this function will display an error if, within the period of the 1st parameter:
    - there's no data and Zabbix server was restarted
    - there's no data and maintenance was completed
    - there's no data and the item was added or re-enabled
    Errors are displayed in the Info column in trigger configuration.

    Comment

    Working...