Fix client args
This commit is contained in:
parent
88eda107a0
commit
02e50d6167
2
pgmon.py
2
pgmon.py
@ -385,7 +385,7 @@ class Server:
|
|||||||
try:
|
try:
|
||||||
(key, args_str) = req_csv.split(',', 1)
|
(key, args_str) = req_csv.split(',', 1)
|
||||||
args_dict = {}
|
args_dict = {}
|
||||||
if args_str!= "":
|
if args_str is not None and args_str != "":
|
||||||
for (k, v) in [a.split('=', 1) for a in args_str.split(';')]:
|
for (k, v) in [a.split('=', 1) for a in args_str.split(';')]:
|
||||||
args_dict[k] = v
|
args_dict[k] = v
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
UserParameter=pgmon[*],/usr/local/bin/pgmon.py -c /etc/zabbix/pgmon.cfg -a "$1"
|
UserParameter=pgmon[*],/usr/local/bin/pgmon.py -c /etc/zabbix/pgmon.cfg -k "$1" -a "$2"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user