Open fdellwing opened 4 years ago
Correct call ./check_haproxy -S /var/run/haproxy/admin.sock -O chat:u,2,1 stats:x Incorrect call ./check_haproxy -S /var/run/haproxy/admin.sock -O "chat:u,2,1 stats:x"
./check_haproxy -S /var/run/haproxy/admin.sock -O chat:u,2,1 stats:x
./check_haproxy -S /var/run/haproxy/admin.sock -O "chat:u,2,1 stats:x"
Using icinga2 functions we can fix this. Using macro() and split() we are able to return multiple strings from a single input string.
macro()
split()
Closes #9
Correct call
./check_haproxy -S /var/run/haproxy/admin.sock -O chat:u,2,1 stats:x
Incorrect call./check_haproxy -S /var/run/haproxy/admin.sock -O "chat:u,2,1 stats:x"
Using icinga2 functions we can fix this. Using
macro()
andsplit()
we are able to return multiple strings from a single input string.Closes #9