This is a Dashing widget and all components needed to outline some general Zabbix server numbers.
##Usage
To use this widget, copy zabbix_info.html
, zabbix_info.coffee
, and zabbix_info.scss
into the /widgets/zabbix_info
directory. Put the zabbix_info.rb
file in your /jobs
folder.
Or simply run dashing install d7ab8e1611330e0fdf76
to let dashing do that for you.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="2">
<div data-id="zabbix_info" data-view="ZabbixInfo"></div>
</li>
##Settings
To provide access from the job to the Zabbix API you've to create a user within Zabbix and place the credentials within a separate file (zabbix_credentials.rb
) in the dashing root folder. The content should look like:
module ZabbixCredentials
SERVER = 'https://zabbix.example.com/api_jsonrpc.php'
USERNAME = 'zabbix_user'
PASSWORD = 'zabbix_password'
end