Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zabbix
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
zabbix
Commits
276fc6cf
Commit
276fc6cf
authored
Nov 21, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CWMP configurator for zabbix proxy
parent
f4e7254f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
zabbix_proxy
zabbix_proxy
+4
-4
zabbix_proxy-configure
zabbix_proxy-configure
+1
-1
No files found.
zabbix_proxy
View file @
276fc6cf
...
@@ -45,13 +45,13 @@ zabbix_set_agent_server() {
...
@@ -45,13 +45,13 @@ zabbix_set_agent_server() {
}
}
zabbix_get_proxy_server
()
{
zabbix_get_proxy_server
()
{
echo
`
$UCI_GET
zabbix.proxy.
hostname
`
echo
`
$UCI_GET
zabbix.proxy.
server
`
}
}
zabbix_set_proxy_server
()
{
zabbix_set_proxy_server
()
{
local
hostname
=
`
$UCI_GET
zabbix.proxy.hostname
`
local
server
=
`
$UCI_GET
zabbix.proxy.server
`
if
[
"
$
hostname
"
!=
"
$1
"
]
;
then
if
[
"
$
server
"
!=
"
$1
"
]
;
then
$UCI_SET
zabbix.proxy.
hostname
=
"
$1
"
$UCI_SET
zabbix.proxy.
server
=
"
$1
"
$UCI_COMMIT
$UCI_COMMIT
chmod
a+r /etc/config/zabbix
chmod
a+r /etc/config/zabbix
fi
fi
...
...
zabbix_proxy-configure
View file @
276fc6cf
...
@@ -13,7 +13,7 @@ if [ ! -z "$DBSERVER" ] && [ ! -z "$DATABASE" ] && [ ! -z "$USER" ] && [ ! -z "$
...
@@ -13,7 +13,7 @@ if [ ! -z "$DBSERVER" ] && [ ! -z "$DATABASE" ] && [ ! -z "$USER" ] && [ ! -z "$
echo
"DBName=
$DATABASE
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"DBName=
$DATABASE
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"DBUser=
$USER
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"DBUser=
$USER
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"DBPassword=
$PASSWORD
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"DBPassword=
$PASSWORD
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"Server=
$SERVER
"
>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"Server=
$SERVER
"
>
>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
if
[
!
-z
"
$START_POLLERS
"
]
;
then
if
[
!
-z
"
$START_POLLERS
"
]
;
then
echo
"StartPollers=
$START_POLLERS
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
echo
"StartPollers=
$START_POLLERS
"
>>
/etc/zabbix_proxy.conf.d/zabbix_proxy.conf
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment