Ad Widget

Collapse

nodata reports no data while there in fact is data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lbon
    Junior Member
    • Dec 2022
    • 14

    #1

    nodata reports no data while there in fact is data

    Hi.

    I have a user parameter set like this:
    UserParameter=last_article_id,C:\PROGRA~1\PowerShe ll\7\pwsh.exe -command "(Invoke-RestMethod -Uri ""https://feed.xxx.com/test.php?key=xxxlastid=?&num_art=10&doc_format=jso n"").searchresult.search_start"

    The item pulls every second

    It uses powershell 7 to query an API for a given property. Among other things. we want to know if the data is empty thus using a trigger with nodata:
    {PPS01:last_article_id.nodata(1)}=1

    But every time the trigger are triggering a red PROBLEM and we get warning that lasts for 21 seconds and zabbix clears the trigger with a green RESOLVED.

    Looking at the data history, it seems that there are data every single time.

    I tried raising the timeout to 30 in the agent.conf... but it didn't solve the problem. What could be the reason for this?

    Regards, Lars.

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

    #2
    nodata (/host/key,sec,<mode>)
    Checking for no data received. See common parameters.

    sec period should not be less than 30 seconds because the history syncer process calculates this function only every 30 seconds.
    ​

    Comment

    Working...