I need to send the macro {HOSTNAME} as a parameter to a UserParameter item. Is this possible?
The idea is to have a generic UserParameter like:
and monitor this through a Template with items like:
This is for a setup with multiple virtual servers running in parallel on separate ips on each physical server.
Each physical server has one zabbix_agentd instance running checks for all virtual servers.
There are *lots* of servers, so I really want to avoid manually coding hundreds of items and UserParameters.
The checkit script needs to know what virtual server it is being called on behalf of.
The idea is to have a generic UserParameter like:
Code:
UserParameter=checkit[*],check_service $1 $2
Code:
checkit[{HOSTNAME}, 'service1']
checkit[{HOSTNAME}, 'service2']
Each physical server has one zabbix_agentd instance running checks for all virtual servers.
There are *lots* of servers, so I really want to avoid manually coding hundreds of items and UserParameters.
The checkit script needs to know what virtual server it is being called on behalf of.
Comment