Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ script:
- >
docker run -v $(pwd):/var/tmp debian:6 bash -c
"cd /var/tmp && apt-get update &&
echo package mamonsu/zabbix_server string '127.0.0.1' | debconf-set-selections &&
echo package mamonsu/zabbix_address string '127.0.0.1' | debconf-set-selections &&
echo package mamonsu/zabbix_client string '127.0.0.1' | debconf-set-selections &&
echo package mamonsu/postgres_user string 'postgres' | debconf-set-selections &&
echo package mamonsu/postgres_password string 'postgres' | debconf-set-selections &&
Expand Down
2 changes: 1 addition & 1 deletion conf/example.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[zabbix]
client = localhost # client hostname for zabbix server
server = 127.0.0.1 # zabbix server
address = 127.0.0.1 # zabbix server

[postgres]
user = zabbix
Expand Down
4 changes: 2 additions & 2 deletions debian/config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ db_title Configure mamonsu agent
HOSTNAME=$(hostname -f || 'locahost')

db_set mamonsu/zabbix_client "$HOSTNAME"
db_set mamonsu/zabbix_server "127.0.0.1"
db_set mamonsu/zabbix_address "127.0.0.1"
db_set mamonsu/postgres_user "postgres"
db_set mamonsu/postgres_password "None"
db_set mamonsu/postgres_database "postgres"
Expand All @@ -20,7 +20,7 @@ db_set mamonsu/postgres_port "5432"
db_set mamonsu/postgres_query_timeout "10"
db_set mamonsu/log_level "INFO"

db_input high mamonsu/zabbix_server || true
db_input high mamonsu/zabbix_address || true
db_input high mamonsu/zabbix_client || true
db_input high mamonsu/postgres_user || true
db_input high mamonsu/postgres_password || true
Expand Down
2 changes: 1 addition & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _configure_conf() {
return 0
fi

db_get mamonsu/zabbix_server
db_get mamonsu/zabbix_address
SERVER="$RET"
db_get mamonsu/zabbix_client
CLIENT="$RET"
Expand Down
2 changes: 1 addition & 1 deletion debian/templates
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Template: mamonsu/zabbix_server
Template: mamonsu/zabbix_address
Type: string
Description: Address of Zabbix server:
IP or DNS-address of your zabbix server.
Expand Down