Skip to content

About

Zabbix Agent for Aduino and Embedded

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Agent on Arduino ESP32

An original, simple and effective Zabbix Agent for monitoring IoT devices. Tested with Zabbix 7.4.

Features

  • Auto-registration in the Zabbix server (using an auto-registration action).
  • Simple and familiar setup plus loop design pattern.
  • Easy to create and send passive item data to Zabbix.

Limitations

  • Does not perform active checks.
  • PlatformIO support not added or tested (yet).

Example Zabbix Server configuration

Create a new host group.

  1. Navigate: Data collection >> Host groups
  2. Choose Create host group.
  3. Name the new group arduino-ex.
  4. Choose Add.

Import pre-configured template

  1. Navigate: Data collection >> Templates.
  2. Choose Import.
  3. Browse and select the file extras/arduino-ex-template.yaml.
  4. Choose Import.
  5. Review the template and choose Import again.

Create auto-registration action

  1. Navigate: Data collection >> Alerts >> Actions >> Autoregistration actions.
  2. Choose Create action.
  3. Name: Create Arduino host.
  4. Conditions, Add: Host metadata contains arduino-ex, choose Add.
  5. Operations, Operations, Add: Add host, choose Add.
  6. Add: Add to host group, arduino-ex, choose Add.
  7. Add: _Link template, arduino-ex, choose Add.
  8. Choose Add to add the new action.

Example auto-registration --- autoreg

  1. Change the file examples/autoreg/exconfig.h to configure your WiFi and your Zabbix server.
  2. Upload the sketch.
  3. Wait a minute or two.
  4. In Zabbix, navigate: Monitoring >> Hosts.
  5. Your host should have been created automatically with a name such as esp32c3-ABCDEF.
  6. You will also notice problems being raised for this host. This is due to no passive checks having a response. We will fix that in the next example.

Example passive checks --- passivechecks

  1. Change the file examples/passivechecks/exconfig.h to configure your WiFi and your Zabbix server.
  2. Upload the sketch to the same board as earlier.
  3. In Zabbix, navigate: Monitoring >> Hosts.
  4. Choose the correct host, e.g. esp32c3-ABCDEF, then choose Latest data option from the pop-up.
  5. In about a minute you should see item data being populated in Zabbix.
  6. Try shutting down the Arduino or restarting it. You will see problems being raised in Zabbix.

Example background agent --- fullagent

  1. Change the file examples/fullagent/exconfig.h to configure your WiFi and your Zabbix server.
  2. Upload the sketch.
  3. Wait a minute or two.
  4. The Arduino will appear in the Zabbix server host list, e.g. esp32c3-ABCDEF, and items will be populated.
  5. If the host is deleted in Zabbix then it will automatically re-register.
  6. Normal Arduino code can be added to setup() and loop() as normal. The agent will run quietly in the background.

See also

About

Zabbix Agent for Aduino and Embedded

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages