diff options
Diffstat (limited to 'snort-controller.lua')
-rw-r--r-- | snort-controller.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/snort-controller.lua b/snort-controller.lua index 880b6d6..199ac4e 100644 --- a/snort-controller.lua +++ b/snort-controller.lua @@ -18,10 +18,9 @@ end -- Public methods -read = function (self) +status = function (self) local srvcmdresult = nil local srvcmd = self.clientdata.srvcmd --- local srvcmd = "start" if (srvcmd ~= nil) then srvcmdresult = self.model:service_control(srvcmd) if (srvcmd == "stop") or (srvcmd == "restart") then @@ -38,3 +37,13 @@ read = function (self) url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) end +--[[ +function config(self) + return { status = self.model.getstatus() } +end +--]] + +function expert(self) + return { file = self.model:get_filedetails(), status = self.model.getstatus(),} +end + |