Ad Widget

Collapse

Invenotry directly from Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dalle
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 402

    #1

    Invenotry directly from Dashboard

    I've wrote a small patch to jump inside inventory directly from Dashboard
    in particular on "last 20 issue" if you click on a server you are going to find inside "Links" sections a new link that jump directly to "inventory" so
    you just need to populate "extended properties" inside each
    host (anyway is useful to have in one system all the data about your
    monitored infrastracture) the responsible, the number to call if you see
    an error, the reference of and service mail etc.. and after that the 1°st level support will know who call in case of trouble etc..

    the patch is a modify on line 747 of "include/blocks.inc.php"

    $menus.= "['".S_LATEST_DATA."',\"javascript: redirect('latest.php?groupid=0&hostid=".$trigger['hostid']."')\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],";
    $menus = rtrim($menus,',');
    and just add this line "$menus.= "['".S_INVENTORY."',\"javascript: redirect('hostprofiles.php?hostid=".$trigger['hostid']."')\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],";" so your file will be so:

    $menus.= "[".zbx_jsvalue(S_LINKS).",null,null,{'outer' : ['pum_oheader'],'inner' : ['pum_iheader']}],";
    $menus.= "['".S_LATEST_DATA."',\"javascript: redirect('latest.php?groupid=0&hostid=".$trigger['hostid']."')\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],";
    $menus.= "['".S_INVENTORY."',\"javascript: redirect('hostprofiles.php?hostid=".$trigger['hostid']."')\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],";
    $menus = rtrim($menus,',');
    the result is
    like in picture:


    you can modify your file or use my own modified.
    I hope that this little new feature will be applied on release 1.8.3 of zabbix

    Attached Files
    Last edited by dalle; 20-07-2010, 10:34. Reason: i've wrote badly "inventory" :(
    Andrea Dalle Vacche
    website:http://www.smartmarmot.com/
    e-mail:
    Author of:Mastering Zabbix Book - second edition
    Zabbix Network Monitoring Essentials
  • dalle
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 402

    #2
    Seems that this add is included on new 1.8.3
    "Added link to host profile from dashboard, if host has profile information populated."
    It's more or less the same as I've published so on 1.8.3 is useless
    Andrea Dalle Vacche
    website:http://www.smartmarmot.com/
    e-mail:
    Author of:Mastering Zabbix Book - second edition
    Zabbix Network Monitoring Essentials

    Comment

    Working...