jonathanio / monitoring-nagios-haproxy

Nagios plugin (suitable for Nagios Check-compatible programs) for monitoring HAProxy services.
GNU General Public License v2.0
16 stars 19 forks source link

Fix icinga2 config #10

Open fdellwing opened 4 years ago

fdellwing commented 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"

Using icinga2 functions we can fix this. Using macro() and split() we are able to return multiple strings from a single input string.

Closes #9