Ad Widget

Collapse

Can the nodata function be used with snmp checks or only with the agent?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scronkey
    Junior Member
    • Aug 2008
    • 5

    #1

    Can the nodata function be used with snmp checks or only with the agent?

    I base most of my triggers on two values instead of just one. i.e.
    (icmpping.max(#3)<1) & (agent.ping.nodata(90)=1)

    This has helped to greatly reduce many false triggers but unfortunately not all of the devices monitored have the agent installed on them.

    For snmp devices, I use triggers like:
    (icmpping.max(#3)<1) & (ifAdminStatus1.nodata(90)=1)
    however it does not seem to have reduced the false triggers as much as the boxes with the agent running.

    My question: Is the nodata function limited to checks using the agent only or can it also function the same when using SNMP checks?
    (Note that in my example above the item ifAdminStatus1 is an SNMP check of that particular OID.)
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Looking at the code it will return true if the following is true
    last checked + interval > current time

    There is a another return, but it's more internal and that is the nodata function will fail if the following is true
    server start time + interval > current time

    So yes it should work with any data type. There might be something else at a higher level, but once data is in the Zabbix DB it's all the same to the Zabbix system.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • scronkey
      Junior Member
      • Aug 2008
      • 5

      #3
      Thanks for the reply.
      It makes sense that it is based on data within the database, I didn't really think of it like that.

      Thanks again, particularly for the peek at the source.

      Comment

      Working...