Skip to content

Commit

Permalink
Added some more service type icons
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsMichelsen committed Feb 2, 2015
1 parent 6c47884 commit 0cda899
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Binary file added web/htdocs/images/icons/connections.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/htdocs/images/icons/events.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/htdocs/images/icons/job.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/htdocs/images/icons/kernel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions web/plugins/icons/builtin.py
Expand Up @@ -663,8 +663,16 @@ def paint_basic_service_types(what, row, tags, custom_vars):
return 'disk_io'
elif svc_desc.startswith('Uptime'):
return 'uptime'
elif svc_desc.startswith('Kernel'):
return 'kernel'
elif svc_desc.startswith('Events'):
return 'events'
elif svc_desc.startswith('TCP Connections'):
return 'connections'
elif svc_desc.startswith('Postfix'):
return 'mail_queue'
elif svc_desc.startswith('Job'):
return 'job'
elif svc_desc.startswith('NTP') or svc_desc == 'System Time':
return 'time'

Expand Down

0 comments on commit 0cda899

Please sign in to comment.