Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21661

Zabbix Agent 2. ZBX_NOTSUPPORTED: A counter with a negative value was detected.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.27
    • Agent (G)
    • None

      The ZBX-20269 issue is back. With IIS, but with different performance counters. Unfortunately, the problem is reproduced only on really working web applications and is not stable: you have to try several times.

      ~$ zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_DefaultAppPool)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_DefaultAppPool)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_DefaultAppPool)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_DefaultAppPool)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_DefaultAppPool)\% 500 HTTP Response Sent,60]'
      0.000000
      ...
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      0.000000
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      ZBX_NOTSUPPORTED: A counter with a negative value was detected.
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      ZBX_NOTSUPPORTED: A counter with a negative denominator value was detected.
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      ZBX_NOTSUPPORTED: A counter with a negative denominator value was detected.
      ~$ zabbix_get -s stage-app02.stage.dev.flexicapture.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'
      0.000000
      

      Steps to reproduce (first variant):

      1. Use zabbix agent 2 on IIS host with real working .Net application
      2. From zabbix server try repeating it repeatedly: zabbix_get -s example.host.com -k 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]'

      Result:
      See errors ZBX_NOTSUPPORTED: A counter with a negative denominator value was detected. or ZBX_NOTSUPPORTED: A counter with a negative denominator value was detected.

      Steps to reproduce (second variant):

      1. Create Discovery rule with key perf_instance_en.discovery[APP_POOL_WAS] and Item prototype with key perf_counter_en[\W3SVC_W3WP(*_ {#INSTANCE}
        )% 500 HTTP Response Sent,60]
      1. Wait for performance counter items was created on IIS host with real working .Net application
      2. Look for records in zabbix_agent2.log

      Result:
      See a lots of records:

      Detected performance counter with negative denominator the second time after retry, giving up...
      

      See some records:

      check 'perf_counter_en[\W3SVC_W3WP(*_Example Web Services)\% 500 HTTP Response Sent,60]' is not supported: A counter with a negative denominator value was detected.
      

      Workarround:
      "Downgrade" to the classic zabbix agent. Perfomance counters works right.

            zit Zabbix Integration Team
            jeengreen Evgeny Kravchenko
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: