Fix client args

This commit is contained in:
James Campbell 2024-05-16 23:12:37 -04:00
parent 88eda107a0
commit 02e50d6167
Signed by: james
GPG Key ID: 2287C33A40DC906A
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ class Server:
try:
(key, args_str) = req_csv.split(',', 1)
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(';')]:
args_dict[k] = v
except socket.timeout:

View File

@ -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"