Revision 6e76504a
Légères retouches pour pylint.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@4283 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/config/app_cfg.py | ||
---|---|---|
36 | 36 |
# |
37 | 37 |
# Permet de satisfaire l'exigence VIGILO_EXIG_VIGILO_BAC_0130. |
38 | 38 |
base_config['vigiboard_links.eventdetails'] = { |
39 |
'nagios': [u'Nagios host details', '/nagios/%(host)s/cgi-bin/status.cgi?host=%(host)s'], |
|
40 |
'metrology': [u'Metrology details', 'http://example.com/?host=%(host)s'], |
|
41 |
'security': [u'Security details', 'http://security.example.com/?host=%(host)s'], |
|
42 |
'inventory': [u'Inventory', 'http://cmdb.example.com/?host=%(host)s'], |
|
43 |
'documentation': [u'Documentation', 'http://doc.example.com/?q=%(message)s'], |
|
39 |
'nagios': [ |
|
40 |
'Nagios host details', |
|
41 |
'/nagios/%(host)s/cgi-bin/status.cgi?host=%(host)s' |
|
42 |
], |
|
43 |
'metrology': [ |
|
44 |
'Metrology details', |
|
45 |
'http://example.com/?host=%(host)s' |
|
46 |
], |
|
47 |
'security': [ |
|
48 |
'Security details', |
|
49 |
'http://security.example.com/?host=%(host)s' |
|
50 |
], |
|
51 |
'inventory': [ |
|
52 |
'Inventory', |
|
53 |
'http://cmdb.example.com/?host=%(host)s' |
|
54 |
], |
|
55 |
'documentation': [ |
|
56 |
'Documentation', |
|
57 |
'http://doc.example.com/?q=%(message)s' |
|
58 |
], |
|
44 | 59 |
} |
45 | 60 |
|
46 | 61 |
# URL des tickets, possibilités: |
vigiboard/controllers/plugins/details.py | ||
---|---|---|
61 | 61 |
else: |
62 | 62 |
service = None |
63 | 63 |
|
64 |
eventdetails[edname] = url(edlink[1]) % {
|
|
64 |
eventdetails[unicode(edname)] = url(edlink[1]) % {
|
|
65 | 65 |
'idcorrevent': idcorrevent, |
66 | 66 |
'host': urllib.quote(event.hostname), |
67 | 67 |
'service': service, |
Also available in: Unified diff