Ad Widget

Collapse

Autoregistration documentation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sphaero
    Junior Member
    • Nov 2005
    • 11

    #1

    Autoregistration documentation

    SInce I couldn't find any documentation about the autoregistration function in Zabbix I'd thought describing some efforts of mine.

    I've setup active agents on linux hosts which are setup to connect to the zabbix server.
    In zabbix I created an autoregistration rule and linked the pattern to a template host:
    id:1 pri:10 pattern:en_proxy* host:en_proxy

    I've also set the zabbix server to DebugLevel=4. I've found that my new host with hostname 'en-proxy-cl' does not get registered. The logs show that my pattern doesn't match the hostname:

    Code:
    006406:20060714:122812 In autoregister(en-proxy-cl)
    006406:20060714:122812 Executing query:select hostid from hosts where host='en-proxy-cl'
    006406:20060714:122812 No match [en-proxy-cl] [en_proxy*]
    006406:20060714:122812 New host registered [en-proxy-cl]
    006406:20060714:122812 Executing query:select i.key_,i.delay,i.lastlogsize from items i,hosts h where i.hostid=h.hostid and h.status=0 and i.status=0 and i.type=7 and h.host='en-proxy-cl'
    Continuing testing...
  • sphaero
    Junior Member
    • Nov 2005
    • 11

    #2
    d'oh

    Eurm.... that was really stupid...

    I corrected the pattern to 'en-proxy*'

    I now do get a succesful registration however the newly registrered host is not linked to my template...
    Code:
    006408:20060714:124002 In autoregister(en-proxy-cl)
    006408:20060714:124002 Executing query:select hostid from hosts where host='en-proxy-cl'
    006408:20060714:124002 Matched [en-proxy-cl] [en-proxy*]
    006408:20060714:124002 In register_new_host(en-proxy-cl,10008)
    006408:20060714:124002 Executing query:insert into hosts (host,port,status,useip,ip,disable_until,available) values ('en-proxy-cl',10050,0,0,'',0,0)
    006408:20060714:124002 New host registered [en-proxy-cl]
    006408:20060714:124002 Executing query:select i.key_,i.delay,i.lastlogsize from items i,hosts h where i.hostid=h.hostid and h.status=0 and i.status=0 and i.type=7 and h.host='en-proxy-cl'

    Comment

    Working...