Ad Widget

Collapse

Patch: Adding system.cpu.num and net.if.total to frontends/php/create/data.sql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freak
    Member
    • Oct 2007
    • 52

    #1

    Patch: Adding system.cpu.num and net.if.total to frontends/php/create/data.sql

    Based on the patched (http://www.zabbix.com/forum/showthread.php?t=8122) data.sql:

    Code:
    --- trunk-new/frontends/php/create/data.sql-old     2007-10-19 08:58:13.000000000 +0200
    +++ trunk-new/frontends/php/create/data.sql 2007-10-19 08:57:12.000000000 +0200
    @@ -124,6 +124,7 @@
     insert into help_items values(0,'net.if.collisions[if]','Out-of-window collision. Collisions count.');
     insert into help_items values(0,'net.if.in[if <,mode>]','Network interface input statistic. Integer value. If mode is missing bytes is used.');
     insert into help_items values(0,'net.if.out[if <,mode>]','Network interface output statistic. Integer value. If mode is missing bytes is used.');
    +insert into help_items values(0,'net.if.total[if <,mode>]','Network interface input/output total statistic. Integer value. If mode is missing bytes is used.');
     insert into help_items values(0,'net.tcp.dns[ip, zone]','Checks if DNS service is up. 0 - DNS is down, 1 - DNS is up.');
     insert into help_items values(0,'net.tcp.listen[port]','Checks if this port is in LISTEN state. 0 - it is not, 1 - it is in LISTEN state.');
     insert into help_items values(0,'net.tcp.port[<ip>, port]','Check, if it is possible to make TCP connection to the port number. 0 - cannot connect, 1 - can connect. IP address is optional. If ip is missing, 127.0.0.1 is used. Example: net.tcp.port[,80]');
    @@ -134,6 +135,7 @@
     insert into help_items values(0,'system.cpu.intr','Device interrupts.');
     insert into help_items values(0,'system.cpu.load[<cpu> <,mode>]','CPU(s) load. Processor load. The cpu and mode are optional. If cpu is missing all is used. If mode is missing avg1 is used. Note that this is not percentage.');
     insert into help_items values(0,'system.cpu.switches','Context switches.');
    +insert into help_items values(0,'system.cpu.num[<mode>]','Number of CPUs. If mode is missing online is used.');
     insert into help_items values(0,'system.cpu.util[<cpu> <,type> <,mode>]','CPU(s) utilisation. Processor load in percents. The cpu, type and mode are optional. If cpu is missing all is used.If type is missing user is used. If mode is missing avg1 is used.');
     insert into help_items values(0,'system.hostname','Return host name. String value. Example of returned value: www.zabbix.com');
     insert into help_items values(0,'system.localtime','System local time. Time in seconds.');
    Last edited by freak; 19-10-2007, 09:03. Reason: renaming the old file to old and the new file to data.sql
  • freak
    Member
    • Oct 2007
    • 52

    #2
    missing items

    ...or is there a reason for things like system.cpu.num, net.if.total, web.page.* not being in the database, hence not being available in the list of supported things when adding an Item through the web interface?

    Otherwise I'll have a look around now for all missing items and add them to data.sql because I find it quite convenient to have them all in there.

    Sebastian

    Comment

    Working...