{"id":796,"date":"2017-12-14T11:10:12","date_gmt":"2017-12-14T11:10:12","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=796"},"modified":"2017-12-14T11:11:23","modified_gmt":"2017-12-14T11:11:23","slug":"samba-monitoring","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/samba-monitoring\/","title":{"rendered":"Samba monitoring"},"content":{"rendered":"<p class=\"description_pui\">Several modules for Windows SMB monitoring<\/p>\n<h2>Module data<\/h2>\n<p>\nGet SMB active sessions<\/p>\n<pre>\r\nmodule_begin\u00a0\r\nmodule_name SMB_Sessions\u00a0\r\nmodule_exec smbstatus -b | grep \"^[0-9]\" | wc -l\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_end\u00a0\r\n<\/pre>\n<p>Read errors (parsing Logfile)\u00a0<\/p>\n<pre>\r\nmodule_begin\u00a0\r\nmodule_name SMB_Read_Errors\u00a0\r\nmodule_exec cat \/var\/log\/samba\/log.smbd | grep \"read failure\" | wc -l\u00a0\r\nmodule_type generic_data_inc\u00a0\r\nmodule_end\u00a0\r\n<\/pre>\n<p>SMB Connections (parsing logfile)\u00a0<\/p>\n<pre>\r\nmodule_begin\u00a0\r\nmodule_name SMB_Connections\u00a0\r\nmodule_exec cat \/var\/log\/samba\/log.smbd | grep \"connect to service\" | wc -l\u00a0\r\nmodule_type generic_data_inc\u00a0\r\nmodule_end\u00a0\r\n<\/pre>\n<p>SMB Process alive\u00a0<\/p>\n<pre>\r\nmodule_begin\u00a0\r\nmodule_name SMB Process\u00a0\r\nmodule_exec ps aux | grep smb | grep -v grep | wc -l\u00a0\r\nmodule_type generic_proc\u00a0\r\nmodule_end<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Several modules for Windows SMB monitoring Module data Get SMB active sessions module_begin\u00a0 module_name SMB_Sessions\u00a0 module_exec smbstatus -b | grep &#8220;^[0-9]&#8221; | wc -l\u00a0 module_type generic_data\u00a0 module_end\u00a0 Read errors (parsing Logfile)\u00a0 module_begin\u00a0 module_name SMB_Read_Errors\u00a0 module_exec cat \/var\/log\/samba\/log.smbd | grep &#8220;read failure&#8221; | wc -l\u00a0 module_type generic_data_inc\u00a0 module_end\u00a0 SMB Connections (parsing logfile)\u00a0 module_begin\u00a0 module_name SMB_Connections\u00a0 module_exec [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[26],"tags":[142],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/796"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}