Thank you for finding the typo.
I fixed it, but still no service check
Something must still be wrong.
the agent output looks like this:
#!/bin/sh
echo '<<<filesystem_df_total>>>'
df -h --output=size --total | awk 'END {print $1}'
~
and the file on the monitored host looks like this:
from .agent_based_api.v1 import *
def discover_filesystem_df_total(section):
yield Service(item="Filesystem total")
register.check_plugin(
name="filesystem_df_total",
service_name="%s",
discovery_function=discover_filesystem_df_total,
check_function=check_filesystem_df_total,
)
def parse_filesystem_df_total(string_table):
section=string_table
return section if section else None
register.agent_section(
name="filesystem_df_total",
parse_function=parse_filesystem_df_total,
)