Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
8c33491
up
jgmel May 8, 2019
8297cf9
up
jgmel May 13, 2019
b6f701f
up
jgmel May 13, 2019
e258552
fix cpem
palvarezcordoba May 21, 2019
619fb15
add m proxy
palvarezcordoba May 21, 2019
d431306
add m proxy service
palvarezcordoba May 21, 2019
49284fb
fix loading icon
palvarezcordoba May 22, 2019
00fe4f8
fea: perfdata search handles partial match
jgmel Jun 5, 2019
6c5386b
Merge branch 'kraken' of github.com:phicus/mod-webui into kraken
jgmel Jun 5, 2019
aee9bca
try to guess what kiwi should use
palvarezcordoba Jun 26, 2019
efc4090
send cpename to the api
palvarezcordoba Jun 28, 2019
4d2d7a6
change status code
palvarezcordoba Jul 2, 2019
08d94e4
update m_proxy
palvarezcordoba Jul 2, 2019
8fc9b51
add logging to m_proxy
palvarezcordoba Jul 2, 2019
0c83503
extract "authentication" logic to separate function to make it clear
palvarezcordoba Jul 2, 2019
9e76dc5
Merge branch 'develop' into kraken
moisesfm Jul 3, 2019
c255e18
m_proxy: Remove unused requests.Response import
moisesfm Jul 3, 2019
6431ab0
typo: cpe_ream -> cpe_realm
moisesfm Jul 3, 2019
66e41cf
cpem: Request /api/cpesmetada/<cpename> instead of
moisesfm Jul 3, 2019
c244784
cpem: Send customer realm as query arg
moisesfm Jul 3, 2019
a8f1053
select kws using realm arg
palvarezcordoba Jul 3, 2019
50967af
Merge remote-tracking branch 'origin/kraken' into kraken
palvarezcordoba Jul 3, 2019
1a7f96b
cpem: Send realm in all requests to api
moisesfm Jul 3, 2019
9e3d723
Merge branch 'kraken' of github.com:phicus/mod-webui into kraken
moisesfm Jul 3, 2019
b6b8bdf
cpem: Disable autorefresh
moisesfm Jul 3, 2019
0565d37
Merge branch 'develop' into kraken
moisesfm Jul 3, 2019
ece73c6
cpem: Move realtime graphs under timetable
moisesfm Jul 3, 2019
34212bd
cpem: Remove unused cpe.js
moisesfm Jul 4, 2019
008eab8
cpem: Fix wrong uris to Shinken host/service
moisesfm Jul 4, 2019
3ee926b
cpem: Fix realtime graphs not showing
moisesfm Jul 4, 2019
d93353f
cpem: Don't show button info
moisesfm Jul 4, 2019
465a1fa
m_proxy: app.run only if running as script
palvarezcordoba Jul 4, 2019
0e9877f
Merge remote-tracking branch 'origin/kraken' into kraken
palvarezcordoba Jul 4, 2019
08ce345
cpem: Fix profile showing id, not speed
moisesfm Jul 5, 2019
d175a7d
cpem: Add POTS cli
moisesfm Jul 5, 2019
416e112
update m_proxy to be compatible with alignak
palvarezcordoba Jul 8, 2019
76ef382
Merge remote-tracking branch 'origin/kraken' into kraken
palvarezcordoba Jul 8, 2019
870501c
update m_proxy
palvarezcordoba Jul 8, 2019
172de79
update m_proxy
palvarezcordoba Jul 8, 2019
9419080
add icons to action buttons
palvarezcordoba Jul 9, 2019
6a5d8f2
fix m
palvarezcordoba Jul 11, 2019
88f5cad
try to print ip
palvarezcordoba Jul 11, 2019
07d3615
Merge branch 'develop' into kraken
moisesfm Jul 15, 2019
be3d1d1
don't enable Alignak mode if /usr/local/share/alignak exists (to allo…
palvarezcordoba Jul 16, 2019
87b11f7
Merge remote-tracking branch 'origin/kraken' into kraken
palvarezcordoba Jul 16, 2019
81b7529
m: get potses from a separate request
palvarezcordoba Jul 17, 2019
58c7ff3
fix records count
palvarezcordoba Jul 30, 2019
945fa7e
cpem
palvarezcordoba Aug 13, 2019
1888121
fea: radius tables
jgmel Aug 30, 2019
baf0e2c
fix matrix css
jgmel Aug 30, 2019
ef178ae
Merge branch 'develop' into kraken
moisesfm Sep 3, 2019
63b9537
Revert "cpem"
moisesfm Sep 4, 2019
7e0e1fc
m_proxy: don'r use libkrill
palvarezcordoba Sep 4, 2019
cd7c2fb
Delete m_proxy.py
palvarezcordoba Sep 10, 2019
eb31470
Delete m_proxy.service
palvarezcordoba Sep 10, 2019
85c6b19
Fix icons in filters dropdown search menu
Oct 1, 2019
e7671b3
remove webui-plugins
jgmel Oct 1, 2019
fdcb369
Fix icons in filters dropdown search menu
Oct 1, 2019
5a81602
Fix icons in filters dropdown search menu
Oct 1, 2019
6331046
fea: datamanager add mode (family|ascendents|descendents)
jgmel Oct 4, 2019
fee5a3f
Merge branch 'kraken' of github.com:phicus/mod-webui into kraken
jgmel Oct 4, 2019
73f0ccf
ascendents andascendants
jgmel Oct 4, 2019
0e0ae14
fix: datamanager wololo
jgmel Oct 4, 2019
7347acf
up
jgmel Oct 4, 2019
495ef5e
add Beta Features button
jgmel Oct 8, 2019
db9412d
up
jgmel Oct 8, 2019
01f814c
fix no existant beta_feature cookie
jgmel Oct 8, 2019
0792ae0
Updated momentjs library from 2.7.0 to 2.24.0
Oct 8, 2019
4055ad8
Updated daterangepickerjs library from 1.3.9 to 3.14.1
Oct 8, 2019
974181f
fix unecesary error log
jgmel Oct 11, 2019
7b97041
Merge branch 'kraken' of github.com:phicus/mod-webui into kraken
jgmel Oct 11, 2019
25d8ddf
force beta features
jgmel Oct 16, 2019
481ecf1
force beta features
jgmel Oct 16, 2019
7a88449
trivial: fix mode:family
jgmel Oct 21, 2019
107e24e
remove cpe
jgmel Oct 21, 2019
6c3a3c1
remove radius
jgmel Oct 21, 2019
34ef22a
cookie expiration time to 7 days
jgmel Nov 4, 2019
be0a993
Fixes
Nov 13, 2019
b95596c
Add collapse sidebar menu button in footer
Nov 15, 2019
84f1052
force to m
jgmel Dec 11, 2019
74949a5
Merge branch 'kraken' of github.com:phicus/mod-webui into kraken
jgmel Dec 11, 2019
1f5e8fc
datamanager add state filter
jgmel Dec 27, 2019
f22c8d5
fix sort groups for no privileged users
jgmel Feb 10, 2020
8619f81
fix level
jgmel Feb 14, 2020
47c7899
Fix: Remove Shinken footer on xs-devices
paveldelpozo Apr 2, 2020
e1d73ba
Set version to v2.5.3
paveldelpozo Apr 7, 2020
10be4c2
Set version to v2.5.3
paveldelpozo Apr 7, 2020
de47135
Add: External link to Krill Sonar
paveldelpozo Apr 20, 2020
d3467ad
Fix: Krill Sonar link location and header_element indentation
paveldelpozo May 4, 2020
305050d
Fix: Link to Wall tatical view
Jun 18, 2020
2e4ec15
Add: Link to Unconfigured tatical view
Aug 10, 2020
a89ece6
Fix: Link to Unconfigured tatical view
Aug 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
472 changes: 304 additions & 168 deletions module/htdocs/css/daterangepicker.css

Large diffs are not rendered by default.

1,102 changes: 7 additions & 1,095 deletions module/htdocs/js/daterangepicker.js

Large diffs are not rendered by default.

961 changes: 953 additions & 8 deletions module/htdocs/js/krill.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module/htdocs/js/moment.min.js

Large diffs are not rendered by default.

46 changes: 43 additions & 3 deletions module/krilldatamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ def _filter_item(i):

return False

def get_parents_recursive(item):
if len(item.parents) > 0:
parents = []
for parent in item.parents:
parents.append(parent)
parents = parents + get_parents_recursive(parent)
return parents
else:
return []

def get_childs_recursive(item):
if len(item.childs) > 0:
childs = []
for child in item.childs:
childs.append(child)
childs = childs + get_childs_recursive(child)
return childs
else:
return []


# Make user an User object ... simple protection.
if isinstance(user, basestring):
user = self.rg.contacts.find_by_name(user)
Expand Down Expand Up @@ -370,15 +391,16 @@ def _filter_item(i):
if t == 'perf':
match = re.compile('(?P<attr>[\w_]+)(?P<operator>>=|>|==|<|<=)(?P<value>[-\d\.]+)').match(s)
operator_str2function = {'>=':operator.ge, '>':operator.gt, '=':operator.eq, '==':operator.eq, '<':operator.lt, '<=':operator.le}
oper = operator_str2function[match.group('operator')]
new_items = []
if match:
oper = operator_str2function[match.group('operator')]
for i in items:
if i.process_perf_data:
perf_datas = PerfDatas(i.perf_data)
if match.group('attr') in perf_datas:
if oper(float(perf_datas[match.group('attr')].value), float(match.group('value'))):
# new_items.append(i)
matched_perfdatas = [p for p in perf_datas if match.group('attr') in p.name]
for perfdata in matched_perfdatas:
if oper(float(perf_datas[perfdata.name].value), float(match.group('value'))):
_append_based_on_filtered_by_type(new_items, i, filtered_by_type)
items = new_items

Expand Down Expand Up @@ -494,6 +516,24 @@ def _filter_item(i):
if t == 'crit':
patterns.append( ("is", "critical") )

if t == 'mode':
new_items = []
only_hosts = [i for i in items if i.__class__.my_type == 'host']
if s.lower() in ('descendents', 'descendants'):
for item in only_hosts:
new_items = list(set(new_items + [item] + get_childs_recursive(item)))

if s.lower() in ('ascendents', 'ascendants'):
for item in only_hosts:
new_items = list(set(new_items + [item] + get_parents_recursive(item)))

if s.lower() in ('family', 'all'):
for item in only_hosts:
new_items = list(set(new_items + [item] + get_parents_recursive(item) + get_childs_recursive(item)))

if new_items:
items = new_items

if sorter is not None:
items.sort(sorter)

Expand Down
6 changes: 3 additions & 3 deletions module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
ALIGNAK = False
if os.environ.get('ALIGNAK_SHINKEN_UI', None):
ALIGNAK = True
else:
if os.path.exists('/usr/local/share/alignak'):
ALIGNAK = True
# else:
# if os.path.exists('/usr/local/share/alignak'):
# ALIGNAK = True

import traceback
import sys
Expand Down
24 changes: 0 additions & 24 deletions module/plugins/cpe/__init__.py

This file was deleted.

158 changes: 0 additions & 158 deletions module/plugins/cpe/cpe.py

This file was deleted.

22 changes: 0 additions & 22 deletions module/plugins/cpe/htdocs/css/bootstrap-switch.min.css

This file was deleted.

Loading