diff --git a/check_zammad.pl b/check_zammad.pl index a693286..f0aa678 100755 --- a/check_zammad.pl +++ b/check_zammad.pl @@ -117,7 +117,7 @@ sub send_request { my $port = $plugin->opts->port; - my $url = $protocol . $plugin->opts->hostname . ':' . $port . '/api/v1/tickets/search?query=state:new'; + my $url = $protocol . $plugin->opts->hostname . ':' . $port . '/api/v1/tickets/search?query=state.name:new'; my $request = HTTP::Request->new( GET => $url );