Ad Widget

Collapse

Can I test my zabbix loadable module with some CLI interface?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gutsycat
    Member
    • Nov 2017
    • 72

    #1

    Can I test my zabbix loadable module with some CLI interface?

    I do not want to restart zabbix on my production server every time I want to test my module. How can I do it in more calm place?

    Maybe something like this: zabbix-test -i libmodule.so params
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    No, you can't. In theory, but you can start another zabbix-server instance with different configuration, but be careful especially if you will use it with production DB. If it's zabbix-agent module, then it's IMHO safe to start another agent instance with the different configuration.

    The best practice is to have the separate test environment for test/development. Your build/make script can care about starting the new instance with new module version.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...