Coder Social home page Coder Social logo

zaf's People

Contributors

kovetskiy avatar limosek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zaf's Issues

related to backup host and template .xml file in zabbix

Dear Lukas

i appreciate your code, and i think it very useful to me to

but when i use your code to back up template and host file in my zabbix server

i was a trouble as below

can you help me ?

[root@zabbixtest ~]# zaf api export-templates zabbix-xml-templates/
zaf-error: Error processing API request. (1,/tmp//zapi16777)
zaf-error: Exiting with error!
EXPECTED value GOT EOF
zaf-warning: Will backup this templates:
zaf-warning: Output dir: zabbix-xml-templates/

i think problem occur with API
my /etc/zaf.conf configuration

ZAF_PKG='rpm'
ZAF_OS=''
ZAF_OS_CODENAME=''
ZAF_AGENT_PKG='zabbix-agent'
ZAF_GIT='0'
ZAF_CURL_INSECURE='0'
ZAF_TMP_DIR='/tmp/'
ZAF_CACHE_DIR='/tmp/zafc'
ZAF_LIB_DIR='/usr/lib/zaf'
ZAF_BIN_DIR='/usr/bin'
ZAF_PLUGINS_DIR='/usr/lib/zaf/plugins'
ZAF_REPO_URL='https://raw.githubusercontent.com/limosek/zaf-plugins/1.3/'
ZAF_PROXY=''
ZAF_REPO_DIR='/usr/lib/zaf/repo'
ZAF_AGENT_CONFIG='/etc/zabbix/zabbix_agentd.conf'
ZAF_AGENT_CONFIGD='/etc/zabbix/zabbix_agentd.d'
ZAF_AGENT_BIN='/usr/sbin/zabbix_agentd'
ZAF_FILES_UID='zabbix'
ZAF_FILES_GID='zabbix'
ZAF_FILES_UMASK='0770'
ZAF_AGENT_RESTART='service zabbix-agent restart'
ZAF_SERVER_CONFIG='/etc/zabbix/zabbix_server.conf'
ZAF_SERVER_CONFIGD='/etc/zabbix/zabbix_server.conf.d/'
ZAF_SERVER_EXTSCRIPTS='/usr/lib/zabbix/externalscripts'
ZAF_SERVER_BIN='/usr/sbin/zabbix_server'
ZAF_SUDOERSD='/etc/sudoers.d'
ZAF_CROND='/etc/cron.d'
ZAF_ZBXAPI_URL='http://neodalat.com/zabbix/api_jsonrpc.php'
ZAF_ZBXAPI_USER='zabbix'
ZAF_ZBXAPI_PASS='zabbix'
ZAF_ZBXAPI_AUTHTYPE='internal'
ZAF_AGENT_OPTIONS=' Z_Server=neodalat.com Z_ServerActive=neodalat.com'
ZAF_SERVER_OPTIONS=''

neodalat.com is my zabbix server

than you so much

docker usage

i tried installing zaf within a docker instance (of monitoringartist/zabbix-xxl:latest).
if you run docker exec -it containerid /bin/bash there is no user set, so it will fail about not set USER not being root. it also complains about missing curl even if which curl works. it also does not check the existence of "which" before using it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.