1
0
mirror of https://github.com/limosek/zaf.git synced 2025-11-01 01:57:38 +01:00

Moved plugins to new repo

This commit is contained in:
Lukas Macura
2016-03-24 09:38:34 +01:00
parent 1e89b27028
commit cd564544c5
7 changed files with 99 additions and 318 deletions

View File

@@ -1,4 +1,7 @@
# Fetch url to stdout
# $1 url
# It supports real file, file:// and other schemes known by curl
zaf_fetch_url() {
local scheme
local uri
@@ -15,6 +18,7 @@ zaf_fetch_url() {
esac
}
# Find and replace string
zaf_far(){
local f
local t
@@ -31,11 +35,12 @@ zaf_far(){
eval $sedcmd
}
# Restart zabbix agent
zaf_restart_agent() {
${ZAF_AGENT_RESTART}
}
# Check if zaf.version item is populated
zaf_check_agent_config() {
zaf_restart_agent
zabbix_agentd -t zaf.version