Difference between revisions of "Zabbix Host Sort/Home"

From n0r1sk software solutions
Jump to: navigation, search
Line 3: Line 3:
 
If you want to sort Hosts (via Configuration \ Hosts) by their Interface there is no way to accomplish that in Zabbix 2.2.
 
If you want to sort Hosts (via Configuration \ Hosts) by their Interface there is no way to accomplish that in Zabbix 2.2.
 
So we decided to write a short JavaScript "Plugin" for Firefox and the Grease Monkey AddOn.
 
So we decided to write a short JavaScript "Plugin" for Firefox and the Grease Monkey AddOn.
 +
<html>
 +
<style type="text/css">
 +
.n0r1sk-button {
 +
-moz-box-shadow:inset 0px 1px 0px 0px #c1ed9c;
 +
-webkit-box-shadow:inset 0px 1px 0px 0px #c1ed9c;
 +
box-shadow:inset 0px 1px 0px 0px #c1ed9c;
 +
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #9dce2c), color-stop(1, #8cb82b) );
 +
background:-moz-linear-gradient( center top, #9dce2c 5%, #8cb82b 100% );
 +
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9dce2c', endColorstr='#8cb82b');
 +
background-color:#9dce2c;
 +
-webkit-border-top-left-radius:6px;
 +
-moz-border-radius-topleft:6px;
 +
border-top-left-radius:6px;
 +
-webkit-border-top-right-radius:6px;
 +
-moz-border-radius-topright:6px;
 +
border-top-right-radius:6px;
 +
-webkit-border-bottom-right-radius:6px;
 +
-moz-border-radius-bottomright:6px;
 +
border-bottom-right-radius:6px;
 +
-webkit-border-bottom-left-radius:6px;
 +
-moz-border-radius-bottomleft:6px;
 +
border-bottom-left-radius:6px;
 +
text-indent:0;
 +
border:1px solid #83c41a;
 +
display:inline-block;
 +
color:#ffffff;
 +
font-family:Arial;
 +
font-size:15px;
 +
font-weight:bold;
 +
font-style:normal;
 +
height:50px;
 +
line-height:50px;
 +
width:100px;
 +
text-decoration:none;
 +
text-align:center;
 +
text-shadow:1px 1px 0px #689324;
 +
}
 +
.n0r1sk-button:hover {
 +
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #8cb82b), color-stop(1, #9dce2c) );
 +
background:-moz-linear-gradient( center top, #8cb82b 5%, #9dce2c 100% );
 +
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#8cb82b', endColorstr='#9dce2c');
 +
background-color:#8cb82b;
 +
}.n0r1sk-button:active {
 +
position:relative;
 +
top:1px;
 +
}
 +
</style>
 +
</html>
  
Here is the actual version for download -> [http://www.n0r1sk.com/_NON_WIKI_CONTENT/zabbix/zabbix_sort_by_n0r1sk_v2.js Link]
+
 
 +
 
 +
Here is the actual version for download -> <html><a href="http://www.n0r1sk.com/_NON_WIKI_CONTENT/zabbix/zabbix_sort_by_n0r1sk_v2.user.js" target="_blank" class="n0r1sk-button">INSTALL</a></html>[http://www.n0r1sk.com/_NON_WIKI_CONTENT/zabbix/zabbix_sort_by_n0r1sk_v2.js Link]
  
 
You only have to install Firefox with the Grease Monkey Addon (see links below) and to add a new user-script to it.
 
You only have to install Firefox with the Grease Monkey Addon (see links below) and to add a new user-script to it.

Revision as of 13:44, 9 August 2014

Features

If you want to sort Hosts (via Configuration \ Hosts) by their Interface there is no way to accomplish that in Zabbix 2.2. So we decided to write a short JavaScript "Plugin" for Firefox and the Grease Monkey AddOn.


Here is the actual version for download -> INSTALLLink

You only have to install Firefox with the Grease Monkey Addon (see links below) and to add a new user-script to it. In the script you only have to copy the content of the above JavaScript to the script editor in Grease Monkey. Also you have to tell Grease Monkey that it has to apply the script on the "http://zabbix.yourcompany.com/hosts.php*" website. The wildcard "*" is needed!

After that you have to reload Zabbix, log in and now our "Plugin" should work.  :)



For further information please contact us: proceed to contact form

Based on:

- Zabbix 2.2 Link
- Firefox Link
- Grease Monkey Plugin Link
- jQuery plugin: Tablesorter 2.0 by Christian Bach Link



last edit 09.08.2014 by Mario