I've been doing a LOT of installing/setting up of Zabbix lately and in so doing i created a couple scripts to ease the setup/maintenance of Zabbix... I'm attaching them below with brief descriptions.
DISCLAIMER: I will not support these, and I HIGHLY recommend you read through them to see what they are doing before using them as much of the stuff is probably environment specific to where i am implementing Zabbix.
Change extensions to whatever you want they are all Bash Shell scripts... i had to use .txt to allow the forum to upload them.
zabbix.txt: Quick startup/shutdown script for the Agentd (check paths in file before using)
Usage: zabbix <Stop|Start|Restart|Stop>
zabbixServer.txt: Same as zabbix.txt only for the server (check paths in file before using)
Usage: zabbixServer <Stop|Start|Restart|Status>
The last two are scripts we wrote to allow us to update conf files and install the agent in batch processes... They are VERY environment specific when it comes to paths and the fact that all our systems have a shared mount that we use to distribute the files from... if you can setup something similar then i would imagine these scripts could be easily changed to fit your environment, if you have a much more distributed environment i'm not sure how far you'll get... needless to say, your mileage may vary.
zabbix_inst.txt: Install file with info about where to install all the files based on platform and how to update the conf file with the proper host.
Usage: zabbix_inst <hostname> <OS>
zabbinst.txt: Wrapper file for zabbix_inst.txt that allows you to remsh into the boxes and do remote installs if you are on a trusted server. And also allows you to mount a certain directory if it is not already mounted.
Usage: zabbinst.txt <hostname> <OS> (will remsh to <hostname>)
I'm sure if someone gets eager they could turn these into full fledged install scripts but we had a lot of customization in terms of directory structure for zabbix and file placement... so make sure you check paths.
DISCLAIMER: I will not support these, and I HIGHLY recommend you read through them to see what they are doing before using them as much of the stuff is probably environment specific to where i am implementing Zabbix.
Change extensions to whatever you want they are all Bash Shell scripts... i had to use .txt to allow the forum to upload them.
zabbix.txt: Quick startup/shutdown script for the Agentd (check paths in file before using)
Usage: zabbix <Stop|Start|Restart|Stop>
zabbixServer.txt: Same as zabbix.txt only for the server (check paths in file before using)
Usage: zabbixServer <Stop|Start|Restart|Status>
The last two are scripts we wrote to allow us to update conf files and install the agent in batch processes... They are VERY environment specific when it comes to paths and the fact that all our systems have a shared mount that we use to distribute the files from... if you can setup something similar then i would imagine these scripts could be easily changed to fit your environment, if you have a much more distributed environment i'm not sure how far you'll get... needless to say, your mileage may vary.
zabbix_inst.txt: Install file with info about where to install all the files based on platform and how to update the conf file with the proper host.
Usage: zabbix_inst <hostname> <OS>
zabbinst.txt: Wrapper file for zabbix_inst.txt that allows you to remsh into the boxes and do remote installs if you are on a trusted server. And also allows you to mount a certain directory if it is not already mounted.
Usage: zabbinst.txt <hostname> <OS> (will remsh to <hostname>)
I'm sure if someone gets eager they could turn these into full fledged install scripts but we had a lot of customization in terms of directory structure for zabbix and file placement... so make sure you check paths.
Comment