Hi,
I have created a shell script to deploy zabbix agent remotely on windows (solaris and linux work is in progress). The script works just fine now I wanted to include this script in the zabbix discovery process.
I have created a discovery rule for a small test network which checks for ICMP Ping.
Furthermore I created an action for that discovery rule.
Discovery status = "Up"
Service type = "ICMP Ping"
Host IP = "192.168.1.1-10"
Link to template "Windows_Workstation"
Add to group "Windows Workstations"
Run remote commands
Send message to User "deploy"
The action works, I get an email. The only thing that is missing is to run the script on the zabbix server. Is there a way to tell "Run remote commands" to run the script on the zabbix server and not on the discovered remote machine? Maybe create a macro for the hostname of zabbix server?
If I can get this working would be great, since I'm also planning to deploy puppet client using this method on a large environment (200+ hosts).
Of course I will share my ideas and provide a howto.
Regards,
r0k5t4r
I have created a shell script to deploy zabbix agent remotely on windows (solaris and linux work is in progress). The script works just fine now I wanted to include this script in the zabbix discovery process.
I have created a discovery rule for a small test network which checks for ICMP Ping.
Furthermore I created an action for that discovery rule.
Discovery status = "Up"
Service type = "ICMP Ping"
Host IP = "192.168.1.1-10"
Link to template "Windows_Workstation"
Add to group "Windows Workstations"
Run remote commands
Send message to User "deploy"
The action works, I get an email. The only thing that is missing is to run the script on the zabbix server. Is there a way to tell "Run remote commands" to run the script on the zabbix server and not on the discovered remote machine? Maybe create a macro for the hostname of zabbix server?
If I can get this working would be great, since I'm also planning to deploy puppet client using this method on a large environment (200+ hosts).
Of course I will share my ideas and provide a howto.
Regards,
r0k5t4r


Comment