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

Trunk 8224: same entries in profiles table

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.0 (alpha)
    • 1.9.0 (alpha)
    • Frontend (F)
    • None
    • Trunk 8224 and Firefox

      Multiple entries of the same type are being created by profiles_update due to null values coming back. See example data from profiles table below. Fixed it by replacing "false" with "null". See diffpatch below.

      Same data from profiles data showing same entry:
      100100026072917 100000000000003 web.item.graph.period 100100000157015 0 86400 2
      100100026072918 100000000000003 web.item.graph.period 100100000157015 0 86400 2

      Fixed by doing the following:
      diff -ruN /root/zabbix-original/frontends/php/include/profiles.inc.php /root/zabbix/frontends/php/include/profiles.inc.php
      — /root/zabbix-original/frontends/php/include/profiles.inc.php 2009-11-06 09:35:46.000000000 -0500
      +++ /root/zabbix/frontends/php/include/profiles.inc.php 2009-11-08 12:32:18.000000000 -0500
      @@ -123,9 +123,9 @@
      $result = DBend();
      }
      else{

      • $prof = get_profile($idx, false, is_null($idx2)?0:$idx2);
        + $prof = get_profile($idx, null, is_null($idx2)?0:$idx2);
      • if($prof === false){
        + if($prof === null) { $result = insert_profile($idx,$value,$type,$idx2,$source); }

        else{

            Unassigned Unassigned
            palmertree Kenneth Palmertree
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: