Skip to content

Commit 53b0823

Browse files
committed
feat: add Zabbix server and client installation commands to the script
1 parent 153175a commit 53b0823

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

install.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ global_dev_setup() {
6060
fi
6161
}
6262

63+
zabbix_server() {
64+
cd "$CURRENT_DIR/setup/system" || exit
65+
sudo bash zabbix.sh server
66+
}
67+
68+
zabbix_client() {
69+
cd "$CURRENT_DIR/setup/system" || exit
70+
if [ -n "${2:-}" ]; then
71+
sudo bash zabbix.sh client "${2}"
72+
else
73+
sudo bash zabbix.sh client
74+
fi
75+
}
76+
6377
usage() {
6478
echo "Usage: bash $0 [command] [args]"
6579
echo ''
@@ -71,6 +85,8 @@ usage() {
7185
echo ' php_extension Install php extension'
7286
echo ' lazydocker Install lazydocker'
7387
echo ' global_dev Setup NVM, NPM, Yarn, ZSH globally for all users'
88+
echo ' zabbix_server Install Zabbix Server (auto-detect Nginx/Apache)'
89+
echo ' zabbix_client Install Zabbix Agent (client) [server_ip]'
7490
echo ''
7591
echo 'Args for global_dev:'
7692
echo ' -f, --force Force copy/update dotfiles to all existing users'
@@ -81,6 +97,9 @@ usage() {
8197
echo 'Args for php_extension:'
8298
echo ' [version] PHP version (valid version number)'
8399
echo ''
100+
echo 'Args for zabbix_client:'
101+
echo ' [server_ip] Zabbix Server IP (optional, will prompt if not provided)'
102+
echo ''
84103
echo 'Example:'
85104
echo " bash $0 setup"
86105
echo " bash $0 ssh_port 12345"

0 commit comments

Comments
 (0)