Search
The Best Hyperconverged
Appliance
for Enterprise ROBO,
SMB & Edge

StarWind Virtual SAN: Feature Configuration Guide for Deploying Zabbix Templates to Enable Centralized Infrastructure Monitoring

Annotation

Relevant Products

This guide is applicable to StarWind Virtual SAN and StarWind Virtual SAN Free (Version V8 (Build 15260, CVM Version 20231016) and later) and Zabbix v5.4.

Audience

This technical guide is intended for IT professionals and system administrators responsible for managing HCI environments, especially those overseeing multi-site deployments in diverse settings such as traditional data centers, remote industrial facilities, or mission-critical operations.

Expected Result

By following this guide, readers will gain the skills to set up and use StarWind Fleet Manager for centralized monitoring, automated updates, and efficient management of HCI environments. This enables improved performance, reliability, and scalability while reducing administrative overhead and operational costs.

System Requirements

Since the configuration involves StarWind CVM, Zabbix agent, and Zabbix server, the system requirements are defined by the components used in the configuration.

Internet connectivity is required on StarWind CVM to install the Zabbix agent package.

Port 10050 (default) is required for connectivity to the Zabbix server.

StarWind CVM system requirements: https://www.starwindsoftware.com/system-requirements

Zabbix server system requirements: https://www.zabbix.com/documentation/5.4/en/manual/installation/requirements

Pre-Configuring StarWind CVM for Zabbix Monitoring

To configure the monitoring of StarWind CVM, the Zabbix Agent must first be installed on the CVM. This process requires SSH access to be enabled on the StarWind CVM.

Follow the steps below to enable SSH and install the Zabbix Agent on the StarWind CVM:

1. Using the browser, log into the StarWind CVM web console.

A screenshot of a computer

Description automatically generated

NOTE: The StarWind CVM web console IP address can be found in the terminal user interface (TUI).

 

A screenshot of a computer

Description automatically generated

2. Click the img button at the top right of the window to access StarWind CVM settings.

3. Navigate to Services and click the Edit button.

A screenshot of a computer

Description automatically generated

 

4. Locate the SSH server and press the Run button.

A screenshot of a computer

Description automatically generated

5. In the window, press the Start button to start the SSH service.

 

6. Make sure the SSH server state is Running, and then click Close.

A screenshot of a computer

Description automatically generated

7. Connect to StarWind CVM via SSH client client (e.g., Putty).

8. Type  sudo su and type in the password: |

A black screen with white text

Description automatically generated

 

NOTE: The user must have an administrator role. Use the account created during the initial installation wizard or create a new one via Web UI (Users -> + -> Fill in the blanks -> Specify user roles -> Create).\

NOTE: The steps below imply internet connectivity in the StarWind CVM.

9. Add the apt repository for the Zabbix Agent from the official repository.

Use the wget command to download the latest *.deb package.

Alternatively, save it locally and copy it to StarWind VSAN CVM with WinSCP, FileZilla, etc.

10. Type: dpkg -i <package_name_deb>.deb 

11. Type: apt update 

12. Install the Zabbix Agent: apt install zabbix-agent2 

13. Repeat the steps above on each StarWind CVM that should be added to the monitoring.

Deploying Zabbix Server from StarWind’s ISO 

NOTE: Skip this step if a Zabbix server has already been deployed.

1. Deploy a VM that fits the minimum requirements.

2. Attach StarFleet ISO, downloaded here: https://www.starwindsoftware.com/fleet-management

3. Start the VM and boot from ISO for the OS installation.

4. Configure internet connectivity on the deployed VM.

Setting Up the Zabbix Agent inside StarWind CVM

NOTE: The steps below require superuser privileges.

1. Connect to StarWind CVM via SSH client client (e.g., Putty).

2. Type  sudo su and type in the password:

A black screen with white text Description automatically generated

3. Open port 10050 for communication: ufw allow 10050

4. Grant permissions for Zabbix by editing /etc/sudoers to allow Zabbix to restart StarWind VSAN services and reboot:

zabbix ALL=(ALL) NOPASSWD: /bin/systemctl restart starwind* 

zabbix ALL=(ALL) NOPASSWD: /sbin/reboot  

Locate the Zabbix agent configuration file: nano /etc/zabbix/zabbix_agent2.conf 

Edit the following lines in the configuration file:

PidFile=/var/run/zabbix/zabbix_agent2.pid 

LogFile=/var/log/zabbix/zabbix_agent2.log 

LogFileSize=0 

Server=<zabbix server ip address> 

ServerActive=<zabbix server ip address> 

HostMetadata=StarWind 

Timeout=30 

Include=/etc/zabbix/zabbix_agent2.d/*.conf 

PluginTimeout=30 

PluginSocket=/run/zabbix/agent.plugin.sock 

ControlSocket=/run/zabbix/agent.sock 

AllowKey=system.run[*] 

Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf

NOTE: Make sure that the correct values are set for the following lines:

Server=<zabbix server ip address>

ServerActive =<zabbix server ip address> 

HostMetadata=StarWind 

Timeout=30 

PluginTimeout=30 

AllowKey=system.run[*] 

Restart the Zabbix Agent in StarWind CVM: systemctl restart zabbix-agent2.service

Integrating StarWind CVM into an Existing Deployment 

This step involves connecting and importing the template into an already deployed Zabbix VM.

1. Login to the Zabbix Appliance.

A screenshot of a login form

Description automatically generated

 

2. Expand Data Collection and navigate to the Templates view.

A screenshot of a computer

Description automatically generated

 

3. Press Import in the top right corner to import StarFleet template.

A grey rectangular sign with white text

Description automatically generated

 

4. Choose the file and press the Import button.
A screenshot of a computer

Description automatically generated

 

NOTE: If the updated version of the template clashes with the existing *.json, the differences between them will be listed.
A screenshot of a computer

Description automatically generated

Adding Triggers and Customizing Monitoring

This section describes adding a custom trigger to Zabbix based on the event codes. The distributed Zabbix template provides the essential templates. The complete list of StarWind VSAN events is available here. It is also possible to add other metrics, e.g., MDRAID or PCI storage monitoring.

1. To access trigger configuration, navigate to Data Collection > Templates.

A screenshot of a computer

Description automatically generated

 

2. Locate the template that corresponds to StarWind VSAN CVM monitoring.

 

3. Click Triggers and select Create Trigger in the top-right corner.

4. In the New Trigger window, fill in the required fields, such as Name.

A screenshot of a computer

Description automatically generated

5. In the Expression field, add a custom trigger to monitor StarWind events:

find(/HCI/log[/var/starwind/starwind-virtual-san/events/StarWindVSA-Events.log],,"regexp","ID_<EVENT_ID> (.*?)(#;.*)")=1


6.
To resolve alerts, configure recovery expression like this:

find(/HCI/log[/var/starwind/starwind-virtual-san/events/StarWindVSA-Events.log],,"regexp","ID_<EVENT_ID> (.?)(#;.)")=1

NOTE: As an example, EVENT_ID_775 (local device synchronization drop) can be resolved by EVENT_ID_773 (local device synchronization completion).

7. In the Tags tab, add/modify Tags.

NOTE: Tags simplify navigation and improve alert organization. For example, {{ITEM.VALUE}.regsub(“(ID_773|ID_775) (.?)(#;.*)”, “\3”)} can be used for identifying a device that becomes not synchronized and synchronized.

A screenshot of a computer

Description automatically generated

Connect StarWind CVM to Zabbix 

1. To create a Host Group, navigate to Data Collection > Host Groups and press Create Host Group in the top right corner.

A screenshot of a phone

Description automatically generated

2. Name the group, e.g., StarWind.

3. Enable Autoregistration to add StarWind nodes.

NOTE: This step will automatically connect all CVM instances on the network that can communicate via the 10050 port with the Zabbix server.

A screenshot of a computer

Description automatically generated

 

4. Ensure that all necessary fields in the Action tab are completed.

NOTE: Host metadata can be changed, but they should be aligned with ones set for the agent side.

A screenshot of a computer

Description automatically generated

 

5. Review the operations tab and edit them if required.

NOTE: At least one operation must exist.

A screenshot of a computer

Description automatically generated

Conclusion

Managing hyperconverged infrastructure (HCI) across multiple sites can be complex, but StarWind Fleet Manager simplifies the process by integrating seamlessly with Zabbix. This guide equips IT professionals with the tools to implement centralized monitoring, automate maintenance, and optimize multi-site HCI environments. Whether you’re overseeing traditional data centers or remote, mission-critical operations, StarWind Fleet Manager ensures reliable performance, scalability, and efficient resource management, empowering you to focus on strategic goals rather than infrastructure challenges.

Hey! Don’t want to tinker with configuring all the settings? Looking for a fast-track to VSAN deployment?
Dmytro Malynka
Dmytro Malynka StarWind Virtual SAN Product Manager
We've got you covered! First off, all trial and commercial StarWind customers are eligible for installation and configuration assistance services. StarWind engineers will help you spin up the PoC setup to properly evaluate the solution and will assist with the production deployment after the purchase. Secondly, once deployed, StarWind VSAN is exceptionally easy to use and maintain. Hard to believe? Wait no more and book a StarWind VSAN demo now to see it in action!
What’s next?
Product
Virtualization Platform [Hypervisor]
Country
  • Afghanistan (‫افغانستان‬‎)+93
  • Albania (Shqipëri)+355
  • Algeria (‫الجزائر‬‎)+213
  • American Samoa+1
  • Andorra+376
  • Angola+244
  • Anguilla+1
  • Antigua and Barbuda+1
  • Argentina+54
  • Armenia (Հայաստան)+374
  • Aruba+297
  • Ascension Island+247
  • Australia+61
  • Austria (Österreich)+43
  • Azerbaijan (Azərbaycan)+994
  • Bahamas+1
  • Bahrain (‫البحرين‬‎)+973
  • Bangladesh (বাংলাদেশ)+880
  • Barbados+1
  • Belarus (Беларусь)+375
  • Belgium (België)+32
  • Belize+501
  • Benin (Bénin)+229
  • Bermuda+1
  • Bhutan (འབྲུག)+975
  • Bolivia+591
  • Bosnia and Herzegovina (Босна и Херцеговина)+387
  • Botswana+267
  • Brazil (Brasil)+55
  • British Indian Ocean Territory+246
  • British Virgin Islands+1
  • Brunei+673
  • Bulgaria (България)+359
  • Burkina Faso+226
  • Burundi (Uburundi)+257
  • Cambodia (កម្ពុជា)+855
  • Cameroon (Cameroun)+237
  • Canada+1
  • Cape Verde (Kabu Verdi)+238
  • Caribbean Netherlands+599
  • Cayman Islands+1
  • Central African Republic (République centrafricaine)+236
  • Chad (Tchad)+235
  • Chile+56
  • China (中国)+86
  • Christmas Island+61
  • Cocos (Keeling) Islands+61
  • Colombia+57
  • Comoros (‫جزر القمر‬‎)+269
  • Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)+243
  • Congo (Republic) (Congo-Brazzaville)+242
  • Cook Islands+682
  • Costa Rica+506
  • Côte d’Ivoire+225
  • Croatia (Hrvatska)+385
  • Cuba+53
  • Curaçao+599
  • Cyprus (Κύπρος)+357
  • Czech Republic (Česká republika)+420
  • Denmark (Danmark)+45
  • Djibouti+253
  • Dominica+1
  • Dominican Republic (República Dominicana)+1
  • Ecuador+593
  • Egypt (‫مصر‬‎)+20
  • El Salvador+503
  • Equatorial Guinea (Guinea Ecuatorial)+240
  • Eritrea+291
  • Estonia (Eesti)+372
  • Eswatini+268
  • Ethiopia+251
  • Falkland Islands (Islas Malvinas)+500
  • Faroe Islands (Føroyar)+298
  • Fiji+679
  • Finland (Suomi)+358
  • France+33
  • French Guiana (Guyane française)+594
  • French Polynesia (Polynésie française)+689
  • Gabon+241
  • Gambia+220
  • Georgia (საქართველო)+995
  • Germany (Deutschland)+49
  • Ghana (Gaana)+233
  • Gibraltar+350
  • Greece (Ελλάδα)+30
  • Greenland (Kalaallit Nunaat)+299
  • Grenada+1
  • Guadeloupe+590
  • Guam+1
  • Guatemala+502
  • Guernsey+44
  • Guinea (Guinée)+224
  • Guinea-Bissau (Guiné Bissau)+245
  • Guyana+592
  • Haiti+509
  • Honduras+504
  • Hong Kong (香港)+852
  • Hungary (Magyarország)+36
  • Iceland (Ísland)+354
  • India (भारत)+91
  • Indonesia+62
  • Iran (‫ایران‬‎)+98
  • Iraq (‫العراق‬‎)+964
  • Ireland+353
  • Isle of Man+44
  • Israel (‫ישראל‬‎)+972
  • Italy (Italia)+39
  • Jamaica+1
  • Japan (日本)+81
  • Jersey+44
  • Jordan (‫الأردن‬‎)+962
  • Kazakhstan (Казахстан)+7
  • Kenya+254
  • Kiribati+686
  • Kosovo+383
  • Kuwait (‫الكويت‬‎)+965
  • Kyrgyzstan (Кыргызстан)+996
  • Laos (ລາວ)+856
  • Latvia (Latvija)+371
  • Lebanon (‫لبنان‬‎)+961
  • Lesotho+266
  • Liberia+231
  • Libya (‫ليبيا‬‎)+218
  • Liechtenstein+423
  • Lithuania (Lietuva)+370
  • Luxembourg+352
  • Macau (澳門)+853
  • Madagascar (Madagasikara)+261
  • Malawi+265
  • Malaysia+60
  • Maldives+960
  • Mali+223
  • Malta+356
  • Marshall Islands+692
  • Martinique+596
  • Mauritania (‫موريتانيا‬‎)+222
  • Mauritius (Moris)+230
  • Mayotte+262
  • Mexico (México)+52
  • Micronesia+691
  • Moldova (Republica Moldova)+373
  • Monaco+377
  • Mongolia (Монгол)+976
  • Montenegro (Crna Gora)+382
  • Montserrat+1
  • Morocco (‫المغرب‬‎)+212
  • Mozambique (Moçambique)+258
  • Myanmar (Burma) (မြန်မာ)+95
  • Namibia (Namibië)+264
  • Nauru+674
  • Nepal (नेपाल)+977
  • Netherlands (Nederland)+31
  • New Caledonia (Nouvelle-Calédonie)+687
  • New Zealand+64
  • Nicaragua+505
  • Niger (Nijar)+227
  • Nigeria+234
  • Niue+683
  • Norfolk Island+672
  • North Korea (조선 민주주의 인민 공화국)+850
  • North Macedonia (Северна Македонија)+389
  • Northern Mariana Islands+1
  • Norway (Norge)+47
  • Oman (‫عُمان‬‎)+968
  • Pakistan (‫پاکستان‬‎)+92
  • Palau+680
  • Palestine (‫فلسطين‬‎)+970
  • Panama (Panamá)+507
  • Papua New Guinea+675
  • Paraguay+595
  • Peru (Perú)+51
  • Philippines+63
  • Poland (Polska)+48
  • Portugal+351
  • Puerto Rico+1
  • Qatar (‫قطر‬‎)+974
  • Réunion (La Réunion)+262
  • Romania (România)+40
  • Russia (Россия)+7
  • Rwanda+250
  • Saint Barthélemy+590
  • Saint Helena+290
  • Saint Kitts and Nevis+1
  • Saint Lucia+1
  • Saint Martin (Saint-Martin (partie française))+590
  • Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)+508
  • Saint Vincent and the Grenadines+1
  • Samoa+685
  • San Marino+378
  • São Tomé and Príncipe (São Tomé e Príncipe)+239
  • Saudi Arabia (‫المملكة العربية السعودية‬‎)+966
  • Senegal (Sénégal)+221
  • Serbia (Србија)+381
  • Seychelles+248
  • Sierra Leone+232
  • Singapore+65
  • Sint Maarten+1
  • Slovakia (Slovensko)+421
  • Slovenia (Slovenija)+386
  • Solomon Islands+677
  • Somalia (Soomaaliya)+252
  • South Africa+27
  • South Korea (대한민국)+82
  • South Sudan (‫جنوب السودان‬‎)+211
  • Spain (España)+34
  • Sri Lanka (ශ්‍රී ලංකාව)+94
  • Sudan (‫السودان‬‎)+249
  • Suriname+597
  • Svalbard and Jan Mayen+47
  • Sweden (Sverige)+46
  • Switzerland (Schweiz)+41
  • Syria (‫سوريا‬‎)+963
  • Taiwan (台灣)+886
  • Tajikistan+992
  • Tanzania+255
  • Thailand (ไทย)+66
  • Timor-Leste+670
  • Togo+228
  • Tokelau+690
  • Tonga+676
  • Trinidad and Tobago+1
  • Tunisia (‫تونس‬‎)+216
  • Turkey (Türkiye)+90
  • Turkmenistan+993
  • Turks and Caicos Islands+1
  • Tuvalu+688
  • U.S. Virgin Islands+1
  • Uganda+256
  • Ukraine (Україна)+380
  • United Arab Emirates (‫الإمارات العربية المتحدة‬‎)+971
  • United Kingdom+44
  • United States+1
  • Uruguay+598
  • Uzbekistan (Oʻzbekiston)+998
  • Vanuatu+678
  • Vatican City (Città del Vaticano)+39
  • Venezuela+58
  • Vietnam (Việt Nam)+84
  • Wallis and Futuna (Wallis-et-Futuna)+681
  • Western Sahara (‫الصحراء الغربية‬‎)+212
  • Yemen (‫اليمن‬‎)+967
  • Zambia+260
  • Zimbabwe+263
  • Åland Islands+358