HomeAddons ServiceAddons Service
Addons Service

For monitoring a new service :

  1. In the Agent’s main config.cfg file, in the [Addon] section, add an ‘extension‘ option(variable) and specify the new service’s name as its value :

    [Addon]

    extension: newservice

    Agent config.cfg file location :

    • For deb/rpm package supported Linux distros

      /etc/rptmonitor/config.cfg
    • For few other Linux distro, FreeBSD & Mac OS X+

      /usr/local/bin/rptmonitor/config.cfg
  2. New service’s config file(newservice.cfg) & python file(newservice.py), both are to be placed in the addons directory. Addons directory location can be found in…

    Agent config.cfg file location :

    • For deb/rpm package supported Linux distros

      /usr/bin/rptmonitor/addons
    • For few other Linux distro, FreeBSD & Mac OS X+

      /usr/local/bin/rptmonitor/addons
  3. Restart rptmonitor service.

    • For deb/rpm package supported Linux distros :

      sudo service rptmonitor restart

      OR

      sudo /etc/init.d/rptmonitor restart

    • For openSUSE(11.4+) with systemd :

      sudo systemctl restart rptmonitor.service
    • For other Linux distros, FreeBSD 8+, Mac OS X+ :

      sudo python /usr/local/bin/rptmonitor/monitor.py restart