mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Windows nagios fix
This commit is contained in:
parent
2ce030c704
commit
1e4b0636ed
3 changed files with 9 additions and 6 deletions
|
|
@ -504,6 +504,13 @@ function areAlertsEnabled()
|
|||
(ntop.getPref("ntopng.prefs.disable_alerts_generation") ~= "1"))
|
||||
end
|
||||
|
||||
function hasNagiosSupport()
|
||||
if prefs == nil then
|
||||
prefs = ntop.getPrefs()
|
||||
end
|
||||
return prefs.nagios_nsca_host ~= nil
|
||||
end
|
||||
|
||||
function firstToUpper(str)
|
||||
str = tostring(str)
|
||||
return (str:gsub("^%l", string.upper))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue