Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore ListLoad Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Assign NameStore Dict Str Str Call NameLoad NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Str Assign NameStore Dict Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict NameLoad NameLoad While NameLoad body TryFinally body TryExcept body Print Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Num
N/A N/A 
  Server Density Plugin
  Proftpd connection details

  https://github.com/serverdensity/sd-agent-plugins/
  Autor: @bitbeans
  Version: 1.0.0
 N/A json N/A sys N/A subprocess N/A platform N/A logging N/A time decimal * N/A N/A N/A  Q&D check if there is a proftpd binary, so count creater: 1  N/A c N/A N/A N/A N/A subprocess check_output whereis proftpd | awk '{print NF}' shell True strip N/A N/A N/A float c 2 N/A N/A N/A Exception Missing proftpd N/A N/A N/A Exception N/A N/A N/A N/A sys exit 0 Proftpd N/A object N/A __init__ N/A N/A self agentConfig checksLogger rawConfig N/A N/A N/A N/A self agentConfig agentConfig N/A N/A self checksLogger checksLogger N/A N/A self rawConfig rawConfig N/A N/A self version N/A N/A platform python_version_tuple N/A run N/A N/A self N/A N/A N/A data N/A N/A N/A N/A N/A platform system Linux N/A N/A users N/A N/A connections N/A N/A N/A N/A e N/A N/A N/A N/A subprocess check_output ftpwho -o oneline | grep '^[ 0-9]' shell True strip N/A connections N/A N/A e split N/A connection connections N/A N/A tmpuser N/A N/A connection split N/A N/A N/A N/A users count N/A tmpuser N/A 1 0 N/A N/A N/A N/A users append N/A tmpuser N/A 1 N/A N/A N/A N/A subprocess CalledProcessError N/A N/A N/A data N/A connections users N/A len connections N/A len users N/A N/A N/A N/A N/A self checks_logger error Plugin currently only available on Linux. N/A data N/A N/A N/A N/A __name__ __main__ N/A N/A Standalone test N/A raw_agent_config N/A Proftpd N/A N/A main_checks_logger N/A N/A logging getLogger Proftpd N/A N/A N/A main_checks_logger setLevel N/A logging DEBUG N/A N/A N/A main_checks_logger addHandler N/A N/A logging StreamHandler N/A sys stdout N/A proftpd_check N/A Proftpd N/A main_checks_logger raw_agent_config N/A True N/A N/A N/A N/A N/A N/A N/A N/A json dumps N/A N/A proftpd_check run indent 4 sort_keys True N/A N/A N/A N/A N/A N/A main_checks_logger exception Unhandled exception N/A N/A N/A N/A time sleep 60