No description, website, or topics provided.
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile.PL
README
make_screen.csv
make_screen.pl
make_screen.tx
network_traffic_zabbix_xml.xml

README

make xml file for ZABBIX screen xml with reference to this csv file.

edit make_screen.csv file.
--------------------------------------------------------------------------------

The meaning of each item

1 = xml filename,
2 = host name,
3 = graph name,
4 = screen name,

[example]

[csv]
network_traffic_zabbix,web01,Network Traffic(eth0),Hoge Service Network Traffic
network_traffic_zabbix,web02,Network Traffic(eth0),Hoge Service Network Traffic
network_traffic_zabbix,app01,Network Traffic(eth0),Hoge Service Network Traffic
cpu_zabbix,app02,CPU Utilization,Hoge CPU Utilization
cpu_zabbix,app03,CPU Utilization,Hoge CPU Utilization
cpu_zabbix,db01,CPU Utilization,Hoge CPU UtilizationS
cpu_zabbix,db02,CPU Utilization,Hoge CPU UtilizationS
cpu_zabbix,cache01,CPU Utilization,Hoge CPU Utilization


[setting data]
xml filename = network_traffic_zabbix_xml.xml
host name = web01
graph name = Hoge Service Network Traffic
.
.

!!!!! Attention !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Screen made of this script are determined by the two graphs side.
If you want to customize three or more appropriately, please.this maked screen
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


[output file = network_traffic_zabbix.xml]
=============================================================
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="1.0" date="12.06.20" time="20.06">
  <screens>
    <screen>
      <screenitems>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>web01</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>0</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>web02</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>1</x>
          <y>0</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>app01</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>1</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
      </screenitems>
      <name>Hoge Service Network Traffic</name>
      <hsize>2</hsize>
      <vsize>1</vsize>
    </screen>
  </screens>
</zabbix_export>
=============================================================


[output file = cpu_zabbix.xml]
=============================================================
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="1.0" date="12.06.20" time="20.06">
  <screens>
    <screen>
      <screenitems>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>web01</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>0</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>web02</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>1</x>
          <y>0</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>app01</host>
            <name>Network Traffic(eth0)</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>1</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>app02</host>
            <name>CPU Utilization</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>1</x>
          <y>1</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>app03</host>
            <name>CPU Utilization</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>1</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>db01</host>
            <name>CPU Utilization</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>1</x>
          <y>2</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>db02</host>
            <name>CPU Utilization</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>0</x>
          <y>2</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
        <screenitem>
          <resourcetype>0</resourcetype>
          <resourceid>
            <host>cache01</host>
            <name>CPU Utilization</name>
          </resourceid>
          <width>500</width>
          <height>100</height>
          <x>1</x>
          <y>3</y>
          <colspan>0</colspan>
          <rowspan>0</rowspan>
          <elements>0</elements>
          <valign>0</valign>
          <halign>0</halign>
          <style>0</style>
          <dynamic>0</dynamic>
        </screenitem>
      </screenitems>
      <name>Hoge CPU Utilization</name>
      <hsize>2</hsize>
      <vsize>3</vsize>
    </screen>
  </screens>
</zabbix_export>
=============================================================

--------------------------------------------------------------------------------

enjoy make zabbix screen xml

$ perl make-screen.pl

:)