@@ -34,19 +34,20 @@ cd dotfiles_server
3434
3535The runner has the following commands:
3636
37- | Command | Description |
38- | -----------------------| ---------------------------------------------------------|
39- | ` setup` , ` s` , ` a` | Setup the server |
40- | ` ssh_port` , ` sp` | Change the SSH port |
41- | ` ssh_timeout` , ` st` | Configure SSH timeout (auto disconnect after 5min idle) |
42- | ` php` , ` php-install` | Install PHP version you want |
43- | ` php_extension` , ` pe` | Install PHP extensions |
44- | ` lazydocker` , ` ld` | Install lazydocker |
45- | ` global_dev` , ` gd` | Setup NVM, NPM, Yarn, ZSH globally for all users |
46- | ` add_dev_user` , ` adu` | Add user(s) to developers group for dev tools access |
47- | ` zabbix_server` , ` zs` | Install Zabbix Server with auto web server detection |
48- | ` zabbix_client` , ` zc` | Install Zabbix Agent (client) |
49- | ` fix_mysql` , ` fmf` | Fix MySQL FROZEN issue (when downgrading from MariaDB) |
37+ | Command | Description |
38+ | ---------------------------| ---------------------------------------------------------|
39+ | ` setup` , ` s` , ` a` | Setup the server |
40+ | ` ssh_port` , ` sp` | Change the SSH port |
41+ | ` ssh_timeout` , ` st` | Configure SSH timeout (auto disconnect after 5min idle) |
42+ | ` php` , ` php-install` | Install PHP version you want |
43+ | ` php_extension` , ` pe` | Install PHP extensions |
44+ | ` lazydocker` , ` ld` | Install lazydocker |
45+ | ` global_dev` , ` gd` | Setup NVM, NPM, Yarn, ZSH globally for all users |
46+ | ` add_dev_user` , ` adu` | Add user(s) to developers group for dev tools access |
47+ | ` zabbix_server` , ` zs` | Install Zabbix Server with auto web server detection |
48+ | ` zabbix_client` , ` zc` | Install Zabbix Agent (client) |
49+ | ` update_zabbix_ip` , ` uzi` | Update Zabbix Server IP for installed agent |
50+ | ` fix_mysql` , ` fmf` | Fix MySQL FROZEN issue (when downgrading from MariaDB) |
5051
5152# ## Global Dev Setup
5253
@@ -154,6 +155,28 @@ Features:
154155- ✓ Configures agent to connect to server
155156- ✓ Configures firewall automatically
156157
158+ ** Update Zabbix Server IP (for already installed agents):**
159+
160+ ``` bash
161+ # Method 1: Will prompt for new Server IP
162+ sudo bash install.sh update_zabbix_ip
163+ # or
164+ sudo bash install.sh uzi
165+
166+ # Method 2: Pass new Server IP directly
167+ sudo bash install.sh update_zabbix_ip 192.168.1.200
168+ # or
169+ sudo bash install.sh uzi 192.168.1.200
170+ ```
171+
172+ Features:
173+ - ✓ Updates existing Zabbix Agent configuration
174+ - ✓ Validates IP address format
175+ - ✓ Creates backup before changes
176+ - ✓ Auto-restarts agent service
177+ - ✓ Verifies connection to new server
178+ - ✓ Supports both Zabbix Agent and Agent2
179+
157180## License
158181
159182This project is licensed under the MIT License - see the [ LICENSE] ( LICENSE ) file for details.
0 commit comments