I wanted to configure a multi node monitoring environment, one for development site another for production.
I set the NodeID=1 in the zabbix_server.conf and configured some discovery rules. However none are initiated.
The log shows a sql statment like the following, which looks like the intention is for discovery rules to be tied to the node.
However the druleid's don't fit in the range its looking for. I suspect the rule creation should be setting the druleid based on the NodeID.
I changed the NodeID to 0 and the discovery started working.
mysql> select druleid,iprange,delay,nextcheck,name,status from drules where status=0 and nextcheck<=1185764859 and mod(druleid,1)=0 and druleid>=100000000000000*1 and druleid<=(100000000000000*1+99999999999999);
Empty set (0.00 sec)
mysql> select druleid,iprange,delay,nextcheck,name,status from drules where status=0 and nextcheck<=1185764859 and mod(druleid,1)=0; +---------+-----------------+-------+-----------+-------------+--------+
| druleid | iprange | delay | nextcheck | name | status |
+---------+-----------------+-------+-----------+-------------+--------+
| 2 | 99.999.99.1-255 | 120 | 0 | VLAN-99 | 0 |
| 3 | 99.9999.99.1-255 | 120 | 0 | VLAN98 | 0 |
| 4 | 99.999.99.1-255 | 120 | 0 | VLAN98-SMTP | 0 |
+---------+-----------------+-------+-----------+-------------+--------+
I set the NodeID=1 in the zabbix_server.conf and configured some discovery rules. However none are initiated.
The log shows a sql statment like the following, which looks like the intention is for discovery rules to be tied to the node.
However the druleid's don't fit in the range its looking for. I suspect the rule creation should be setting the druleid based on the NodeID.
I changed the NodeID to 0 and the discovery started working.
mysql> select druleid,iprange,delay,nextcheck,name,status from drules where status=0 and nextcheck<=1185764859 and mod(druleid,1)=0 and druleid>=100000000000000*1 and druleid<=(100000000000000*1+99999999999999);
Empty set (0.00 sec)
mysql> select druleid,iprange,delay,nextcheck,name,status from drules where status=0 and nextcheck<=1185764859 and mod(druleid,1)=0; +---------+-----------------+-------+-----------+-------------+--------+
| druleid | iprange | delay | nextcheck | name | status |
+---------+-----------------+-------+-----------+-------------+--------+
| 2 | 99.999.99.1-255 | 120 | 0 | VLAN-99 | 0 |
| 3 | 99.9999.99.1-255 | 120 | 0 | VLAN98 | 0 |
| 4 | 99.999.99.1-255 | 120 | 0 | VLAN98-SMTP | 0 |
+---------+-----------------+-------+-----------+-------------+--------+
Comment