Ad Widget

Collapse

autoregistration: error msg (PostgreSQL)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    autoregistration: error msg (PostgreSQL)

    Hi,

    if I try to enter an autoregistration rule, the following error messages
    are shown:

    Code:
       * Added new autoregistration rule for w*
        * Use of undefined constant AUDIT_RESOURCE_AUTOREGISTRATION - assumed 'AUDIT_RESOURCE_AUTOREGISTRATION'[/usr/local/www/data/zabbix/config.php:169]
        * pg_query() [function.pg-query]: Query failed: ERROR: column "audit_resource_autoregistration" does not exist[/usr/local/www/data/zabbix/include/db.inc.php:355]
        * Error in query [insert into auditlog (auditid,userid,clock,action,resourcetype,details) values (215,1,1176282117,0,AUDIT_RESOURCE_AUTOREGISTRATION,'Autoregistration [tngt*]')] [ERROR: column "audit_resource_autoregistration" does not exist]
    Of course, the DB table does not have an "autoregid" column but an "id" one.
    Unfortunately, both are used in the php scripts.

    Regards,

    Norbert.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Of course, this error message showed up, after I modified the php
    script to use "id" instead of "autoregid".

    Norbert.

    Comment

    Working...