Cleanup nagios code

This commit is contained in:
Alfredo Cardigliano 2020-07-28 11:33:04 +02:00
parent f7675eb94e
commit bde41ff4b7
19 changed files with 3 additions and 255 deletions

View file

@ -123,10 +123,7 @@ end
function notifyNtopng(key)
if key == nil then return end
-- notify runtime ntopng configuration changes
if string.starts(key, 'nagios') then
if verbose then io.write('notifying ntopng upon nagios pref change\n') end
ntop.reloadNagiosConfig()
elseif string.starts(key, 'toggle_logging_level') then
if string.starts(key, 'toggle_logging_level') then
if verbose then io.write('notifying ntopng upon logging level pref change\n') end
ntop.setLoggingLevel(value)
end