Network monitor

Setup

Use the template EVA_DIR/share/svc-tpl/svc-tpl-controller-netmon.yml:

# Network monitoring controller
command: svc/eva-controller-netmon
bus:
  path: var/bus.ipc
config:
  # Maximum number of parallel probes (default: number of workers)
  #max_parallel_probes: 100
  hosts:
    # ping every 1 second (warning: ping probes require the service to run as root)
    - interval: 1
      oid: sensor:hosts/host1/liveness
      probe:
        kind: ping
        options:
          target: 192.168.1.1
    # probe TCP port 25 every 60 seconds
    - interval: 60
      oid: sensor:hosts/host1/smtp
      probe:
        kind: tcp
        options:
          target: 192.168.1.1
          port: 25
    # probe HTTP URL every 60 seconds
    - interval: 60
      oid: sensor:hosts/web/bohemia-automation
      probe:
        kind: http
        options:
          url: https://www.bohemia-automation.com
          # check body content, optional
          content: "© 2026 Bohemia Automation Limited"
#user: nobody

Create the service using eva-shell:

eva svc create eva.controller.netmon /opt/eva4/share/svc-tpl/svc-tpl-controller-netmon.yml

or using the bus CLI client:

cd /opt/eva4
cat DEPLOY.yml | ./bin/yml2mp | \
    ./sbin/bus ./var/bus.ipc rpc call eva.core svc.deploy -

(see eva.core::svc.deploy for more info)

EAPI methods

See EAPI commons for the common information about the bus, types, errors and RPC calls.