Skip to content

Commit

Permalink
Using match instead of == (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiarchitect authored Nov 9, 2023
1 parent 853a1e0 commit 24c52b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icinga2_exporter/monitorconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def async_get_service_data(self, hostname) -> Dict[str, Any]:
"attrs": ["__name", "display_name", "check_command", "last_check_result", "vars", "host_name",
"downtime_depth", "acknowledgement", "max_check_attempts", "last_reachable", "state",
"state_type"],
"filter": 'service.host_name==\"{}\"'.format(hostname)}
"filter": 'match(\"{}\",service.host_name)'.format(hostname)}

data_json = await self.async_post(self.url_query_service_perfdata, body)

Expand Down

0 comments on commit 24c52b5

Please sign in to comment.