zabbix client v.1.8
I plan to use zabbix to monitor postgresql database server. here is my scenario.
hostname: db01
virtual host name: dbmaster
hostname: db02
virtual host name: dbslave
Ideally i would like to monitor dbmaster and dbslave and not db01/02, as we have different sets of checks for master and replica. so that when we switch role, all the checks related to master continue to run on right host.
Currently i have my checks defined in /etc/zabbix/zabbix-agentd.conf as
UserParameter=pgsql.ping,/path/to/some/script
With this current setup i have to maintain two different sets of conf files and manually switch on server when i switch master/slave roles.
Is there any better way of doing this ? I am thinking of running all this checks from remote host ( is that possible ? )
Any suggestion ?
Thanks,
I plan to use zabbix to monitor postgresql database server. here is my scenario.
hostname: db01
virtual host name: dbmaster
hostname: db02
virtual host name: dbslave
Ideally i would like to monitor dbmaster and dbslave and not db01/02, as we have different sets of checks for master and replica. so that when we switch role, all the checks related to master continue to run on right host.
Currently i have my checks defined in /etc/zabbix/zabbix-agentd.conf as
UserParameter=pgsql.ping,/path/to/some/script
With this current setup i have to maintain two different sets of conf files and manually switch on server when i switch master/slave roles.
Is there any better way of doing this ? I am thinking of running all this checks from remote host ( is that possible ? )
Any suggestion ?
Thanks,