[ZBX-11922] A nodata trigger with bad credentials snmpv3 : always OK state Created: 2017 Mar 15  Updated: 2017 May 30  Resolved: 2017 Apr 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Maxime Nev Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MySnmpHost - HostConfiguration.PNG     PNG File MySnmpHost - HostMacros.PNG     PNG File MySnmpHost - ItemConfiguration.PNG     PNG File MySnmpHost - List.PNG     PNG File MySnmpHost - TriggerList.PNG    
Issue Links:
Duplicate
duplicates ZBXNEXT-1791 Trigger functions evaluation for unsu... Closed

 Description   

I have configured this trigger :

{MySnmpHost:cpu.idle.percent.nodata(900)}=1

My cpu.idle.percent item is a SNMPv3 authPriv one (polling : 300 seconds).
I fill authPriv parameters with bad credentials (Security name, Authentication passphrase and Privacy passphrase).

I expect that my trigger change to PROBLEM state (because there is no data) but it never happens.



 Comments   
Comment by richlv [ 2017 Mar 15 ]

nodata() on unsupported items is not supported in zabbix 3.0 (as can be seen in one of your screenshots), that arrived in 3.2

Comment by Maxime Nev [ 2017 Mar 15 ]

Thanks for your reply @richlv. I agree with you, It is an important feature : Zabbix must be capable to warn when an item is not reachable/supported.

  • Is it planned for Zabbix 3.0.9 or after ?
  • A patch can be apply for Zabbix 3.0.X ?

So with Zabbix 3.0.7, a bypassing is possible but not really compliant, I can add a :

zabbix[host,,items_unsupported]

and create two triggers :

  1. First => if items_unsupported > 0
  2. Second => if items_unsupported has changed.

Thanks,
Maxime

Comment by Maxime Nev [ 2017 Mar 17 ]

Hello,

richlv ?

Thanks,
Maxime

Comment by Dmitry Verkhoturov [ 2017 Mar 17 ]

You could write a check yourself. Here is SQL for all enabled hosts and triggers:

    SELECT
        h.host,
        t.description,
        t.error
    FROM
        triggers as t
    join
        functions as f
            on f.triggerid = t.triggerid
    join
        items as i
            on f.itemid = i.itemid
    join
        hosts as h
            on i.hostid = h.hostid
    WHERE
        t.error <> ''
        and h.status = 0
        and h.proxy_hostid is null
        and t.status = 0;

And here is an example for unsupported items:

SELECT hosts.host, items.key_, items.error 
FROM items
    left join hosts on items.hostid = hosts.hostid 
WHERE items.error <> ''
    and hosts.status = 0
    and hosts.proxy_hostid is null
    and items.type not in (5, 15)
    and items.status = 0;

I myself gather this data and send it to separate item on each host with appropriately configured trigger.

Comment by richlv [ 2017 Mar 17 ]

this issue tracker is for bugreports - please see http://zabbix.org/wiki/Getting_help for support options

Comment by Maxime Nev [ 2017 Mar 17 ]

Thanks Paskal for your support and this bypassing.
To my mind this is really a bug precisely on nodata() function for triggers.
So I suppose I won't be fix on Zabbix 3.0 .

Maxime

Comment by Glebs Ivanovskis (Inactive) [ 2017 Apr 06 ]

Closing as Duplicate of ZBXNEXT-1791.

Generated at Sun Apr 06 12:48:21 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.