Adding a Command with hosts | Email Blacklist Check

Hey! :slight_smile:

From what I’m seeing here in your config as well as your screenshot, you are defining the argument -s to take the value of the macro $rbl_server$, yet never assign this macro any value. I haven’ t taken a second look at the check-plugin you’re trying to execute yet, but from what I gather, --extra-opts takes a list of hosts and passes them on internally, just as -s would do if provided.

My suggestion would be to do the following:

  1. Create a custom variable in your Director called rbl_server, with data type Array
  2. Define a field using this custom variable in your Director definition of the Email Blacklist check command from your screenshot (it should get suggested automatically since you defined a matching argument in your check_command definition already)
  3. Fill in all the servers from check_rbl.ini into this data field
  4. Remove the --extra-opts... part from your check command, as you are now directly passing all servers to the check_plugin via -s

I hope this is comprehensive, feel free to ask questions if not.

Best,
Daniel

1 Like