Compare commits
2 Commits
83c27bf84a
...
13cabc55d0
Author | SHA1 | Date | |
---|---|---|---|
13cabc55d0 | |||
b207dd2fc7 |
@ -32,7 +32,7 @@ Things I plan to add at some point or another:
|
||||
* Buttons to operate on services à la nagstamon (recheck, connect via SSH, etc.)
|
||||
* Regexes to modify the output of services (to prune unecessary stuff)
|
||||
* Filters to hide services (acked ones, or depending on regexes)
|
||||
* Support for other (free as in free speech) monitoring servers
|
||||
* Support for other (as in free speech) monitoring servers
|
||||
* Choose which columns are shown in services result
|
||||
* Better icinga2 support (use API because things are missing in the json output ?)
|
||||
|
||||
|
@ -346,10 +346,13 @@ class Indicator extends PanelMenu.Button {
|
||||
});
|
||||
scrollBox.add_actor(tableBox);
|
||||
|
||||
for ( let entryCount of this.serverLogic.getProcessedStatus ( ) )
|
||||
_status [ entryCount.status ] ++;
|
||||
|
||||
for ( let entry of this.serverLogic.getProcessedStatus ( ) )
|
||||
{
|
||||
_status [ entry.status ] ++;
|
||||
if ( entry.status != 'OK' )
|
||||
if ( ( ! _status [ 'WARNING' ] && ! _status [ 'CRITICAL' ] && ! _status [ 'UNKNOWN' ] && entry.status == 'OK' ) ||
|
||||
( ( _status [ 'WARNING' ] || _status [ 'CRITICAL' ] || _status [ 'UNKNOWN' ] ) && entry.status != 'OK' ) )
|
||||
{
|
||||
let infoBox = new St.BoxLayout({
|
||||
style_class: 'monito-service-line monito-service-line-' + entry.status,
|
||||
|
Loading…
Reference in New Issue
Block a user