File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
share/check_mk/agents/special Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2323## SOFTWARE.
2424
2525###
26- __VERSION__ = 0.87
26+ __VERSION__ = 0.88
2727
2828import sys
2929import socket
@@ -635,16 +635,19 @@ if __name__ == '__main__':
635635 parser .add_argument ("host" ,type = str ,
636636 help = """Host name or IP address of Unifi Controller""" )
637637 args = parser .parse_args ()
638- print ("<<<check_mk>>>" )
639- print (f"Version: { __VERSION__ } " )
638+
640639 try :
641640 _api = unifi_controller_api (** args .__dict__ )
642641 except socket .error as e :
643642 pprint (e )
644643 sys .exit (1 )
645644
646645 if _api .is_unifios :
647- print ("AgentOS: UnifiOS" )
646+
647+ labels = {"cmk/os_family" : "UnifiOS" }
648+ print ("<<<labels:sep(0)>>>"
649+ print (json .dumps (labels ))
650+
648651 ##pprint(_api.get_data("/stat/rogueap?within=4"))
649652 ##pprint(_api.get_data("/rest/user",site="default",method="GET"))
650653 ##pprint(_api.get_data("/stat/sta",site="default",method="GET"))
You can’t perform that action at this time.
0 commit comments