Skip to content

Commit

Permalink
changes discovery function of sipperf
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Nov 22, 2024
1 parent fd25053 commit acc0ff5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Binary file added acgateway/acgateway-1.1.1.mkp
Binary file not shown.
Binary file removed acgateway/acgateway-1.1.mkp
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.

from .agent_based_api.v1 import (
from cmk.base.plugins.agent_based.agent_based_api.v1 import (
contains,
get_rate,
get_value_store,
register,
render,
Metric,
OIDEnd,
Result,
Service,
SNMPTree,
Expand Down Expand Up @@ -72,7 +70,7 @@ def parse_acgateway_sipperf(string_table):
)

def discover_acgateway_sipperf(section):
if len(section) == 2:
if len(section) == 2 and len(section[0]) == 1 and len(section[1]) == 1:
yield Service()

def check_acgateway_sipperf(section):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.

from .agent_based_api.v1 import (
from cmk.base.plugins.agent_based.agent_based_api.v1 import (
contains,
get_rate,
get_value_store,
Expand Down

0 comments on commit acc0ff5

Please sign in to comment.