Ad Widget

Collapse

CRITICAL ISSUE Possible Bug - 1.1beta2 upgrade 1.1beta5 -> agentd (supported tests)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SAT QPass
    Member
    • Oct 2005
    • 61

    #1

    CRITICAL ISSUE Possible Bug - 1.1beta2 upgrade 1.1beta5 -> agentd (supported tests)

    Zabbix is running and compiled on the following box
    Red Hat Enterprise Linux ES release 3 (Taroon Update 5)

    To summarize the issue, 1.1beta2 zabbix_agentd reports some 125 tests that it is capable of. However, when I compiled 1.1beta5 zabbix_agentd on the very same box, zabbix_agentd reported only 20 some tests. This obviously poses a great consternation to me and I am hoping some here could please shed some light on the situation. I have included the output from ./configure -enable-agent (exit status with option information) and the output of zabbix_agentd -p for both 1.1beta2 and 1.1.beta5.
    For reference, the box and packages have NOT changed between compiles.

    Any help would be greatly appreciated.

    Output from 1.1beta2 ./configure --enable-agent is attached.

    1.1beta2 ./zabbix_agentd -p (zabbix_unsupported statements removed because of character limit for post):

    Code:
    system.localtime              [1138214916.00]
    cksum[*]                      [/etc/services] [4222085344.0]
    cpu[idle1]                    [98.947368]
    cpu[idle5]                    [97.639485]
    cpu[idle15]                   [97.851003]
    cpu[nice1]                    [0.028783]
    cpu[nice5]                    [0.010059]
    cpu[nice15]                   [0.012592]
    cpu[system1]                  [0.402961]
    cpu[system5]                  [1.059549]
    cpu[system15]                 [0.850365]
    cpu[user1]                    [0.061678]
    cpu[user5]                    [1.179419]
    cpu[user15]                   [1.274568]
    diskfree[*]                   [/] [103162244.0]
    disktotal[*]                  [/] [110736608.0]
    diskused[*]                   [/] [7574364.00]
    diskfree_perc[*]              [/] [93.160018]
    diskused_perc[*]              [/] [6.839982]
    file[*]                       [/etc/passwd] [1.000000]
    filesize[*]                   [/etc/passwd] [5101.000000]
    inodefree[*]                  [/] [13989477.000000]
    inodetotal[*]                 [/] [14073856.000000]
    inodefree_perc[*]             [/] [99.400456]
    md5sum[*]                     [/etc/services] [485eacadb2a1d18fcf66483f81829f02]
    memory[buffers]               [87375872.000000]
    memory[cached]                [716696.000000]
    memory[free]                  [3005861888.000000]
    memory[shared]                [0.000000]
    memory[total]                 [4193787904.000000]
    netloadin1[*]                 [lo] [473.600000]
    netloadin5[*]                 [lo] [490.666667]
    netloadin15[*]                [lo] [540.728889]
    netloadout1[*]                [lo] [473.600000]
    netloadout5[*]                [lo] [490.666667]
    netloadout15[*]               [lo] [540.728889]
    ping                          [1.000000]
    proc_cnt[*]                   [inetd] [0.000000]
    swap[free]                    [4293586944.000000]
    swap[total]                   [4293586944.000000]
    system[procload]              [0.040000]
    system[procload5]             [0.100000]
    system[procload15]            [0.050000]
    system[hostname]              [hostname] []
    system[uname]                 [uname -a] [Linux 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux ]
    system[uptime]                [18540411.000000]
    system[users]                 [who|wc -l] [2.000000]
    version[zabbix_agent]         [1.1beta2]
    agent.ping                    [1.000000]
    agent.version                 [1.1beta2]
    proc.num[*]                   [inetd] [0.000000]
    proc.mem[*]                   [inetd,root,sum] [0.000000]
    vm.memory.total               [4193787904.000000]
    vm.memory.shared              [0.000000]
    vm.memory.buffers             [87375872.000000]
    vm.memory.cached              [716696.000000]
    vm.memory.free                [3005861888.000000]
    vfs.fs.free[*]                [/] [103162244.000000]
    vfs.fs.total[*]               [/] [110736608.000000]
    vfs.fs.used[*]                [/] [7574364.000000]
    vfs.fs.pfree[*]               [/] [93.160018]
    vfs.fs.pused[*]               [/] [6.839982]
    vfs.fs.inode.free[*]          [/] [13989477.000000]
    vfs.fs.inode.total[*]         [/] [14073856.000000]
    vfs.fs.inode.pfree[*]         [/] [99.400456]
    vfs.file.atime[*]             [/etc/passwd] [1138214916.000000]
    vfs.file.cksum[*]             [/etc/services] [4222085344.000000]
    vfs.file.ctime[*]             [/etc/passwd] [1137179255.000000]
    vfs.file.exists[*]            [/etc/passwd] [1.000000]
    vfs.file.md5sum[*]            [/etc/services] [485eacadb2a1d18fcf66483f81829f02]
    vfs.file.mtime[*]             [/etc/passwd] [1137179255.000000]
    vfs.file.regexp[*]            [/etc/passwd,root] [root]
    vfs.file.size[*]              [/etc/passwd] [5101.000000]
    system.cpu.idle1              [98.947368]
    system.cpu.idle5              [97.639485]
    system.cpu.idle15             [97.851003]
    system.cpu.nice1              [0.028783]
    system.cpu.nice5              [0.010059]
    system.cpu.nice15             [0.012592]
    system.cpu.sys1               [0.402961]
    system.cpu.sys5               [1.059549]
    system.cpu.sys15              [0.850365]
    system.cpu.user1              [0.061678]
    system.cpu.user5              [1.179419]
    system.cpu.user15             [1.274568]
    net.if.ibytes1[*]             [lo] [473.600000]
    net.if.ibytes5[*]             [lo] [490.666667]
    net.if.ibytes15[*]            [lo] [540.728889]
    net.if.obytes1[*]             [lo] [473.600000]
    net.if.obytes5[*]             [lo] [490.666667]
    net.if.obytes15[*]            [lo] [540.728889]
    system.cpu.load1              [0.040000]
    system.cpu.load5              [0.100000]
    system.cpu.load15             [0.050000]
    system.hostname               [hostname] []
    system.swap.free              [4293586944.000000]
    system.swap.total             [4293586944.000000]
    system.uname                  [uname -a] [Linux 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux]
    system.uptime                 [18540411.000000]
    system.users.num              [who|wc -l] [2.000000]
    io[disk_io]                   [1570861.000000]
    io[disk_rio]                  [1492871.000000]
    io[disk_wio]                  [1558227.000000]
    io[disk_rblk]                 [1474326.000000]
    io[disk_wblk]                 [163769.000000]
    system[proccount]             [85.000000]
    system[procrunning]           [cat /proc/loadavg|cut -f1 -d'/'|cut -f4 -d' '] [2.000000]net[listen_23]                [0017] [0.000000]
    net[listen_80]                [0050] [0.000000]
    check_port[*]                 [80] [0.000000]
    check_service[*]              [ssh,127.0.0.1,22] [1.000000]
    dns[*]                        [127.0.0.1,localhost] [0.000000]
    check_service_perf[*]         [ssh,127.0.0.1,22] [0.001164]
    1.1beta5 ./configure --enable-agent is attached.

    1.1beta5 ./zabbix_agentd -p:

    Code:
    system.localtime                              [u|1138214988]
    vfs.file.exists[/etc/passwd]                  [u|1]
    vfs.file.time[/etc/passwd,modify]             [u|1137179255]
    vfs.file.size[/etc/passwd]                    [u|5101]
    vfs.file.regexp[/etc/passwd,root]             [s|root]
    vfs.file.regmatch[/etc/passwd,root]           [u|1]
    cpu[idle1]                                    [m|ZBX_NOTSUPPORTED]
    io[disk_io]                                   [d|1570865.000000]
    kern[maxfiles]                                [u|471859]
    memory[buffers]                               [u|87375872]
    system[uname]                                 [s|Linux 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux]
    sensor[temp1]                                 [m|ZBX_NOTSUPPORTED]
    swap[total]                                   [u|4293586944]
    version[zabbix_agent]                         [s|1.1beta5]
    agent.ping                                    [u|1]
    agent.version                                 [s|1.1beta5]
    kernel.maxfiles                               [u|471859]
    kernel.maxproc                                [m|ZBX_NOTSUPPORTED]
    vfs.file.cksum[/etc/services]                 [u|4222085344]
    vfs.file.md5sum[/etc/services]                [s|485eacadb2a1d18fcf66483f81829f02]
    system.cpu.switches                           [m|ZBX_NOTSUPPORTED]
    system.cpu.intr                               [u|2913199900]
    net.tcp.dns[127.0.0.1,localhost]              [u|0]
    net.tcp.listen[80]                            [m|ZBX_NOTSUPPORTED]
    net.tcp.port[,80]                             [u|0]
    net.tcp.service[ssh,127.0.0.1,22]             [u|1]
    net.tcp.service.perf[ssh,127.0.0.1,22]        [d|0.001590]
    net.if.in[lo,bytes]                           [u|2390210730]
    net.if.out[lo,bytes]                          [u|2390210730]
    net.if.collisions[lo]                         [u|0]
    vfs.fs.size[/,free]                           [u|103162244]
    vfs.fs.inode[/,free]                          [u|13989477]
    vfs.dev.read[sda,operations]                  [u|21344]
    vfs.dev.write[sda,sectors]                    [u|217404190]
    vm.memory.size[total]                         [u|4193787904]
    proc.num[inetd,,]                             [u|0]
    proc.mem[inetd,,]                             [u|0]
    system.cpu.util[all,user,avg1]                [u|0]
    system.cpu.load[all,avg1]                     [d|0.110000]
    system.swap.size[all,free]                    [u|4293586944]
    system.swap.in[all]                           [m|ZBX_NOTSUPPORTED]
    system.swap.out[all,count]                    [m|ZBX_NOTSUPPORTED]
    system.hostname                               [s|]
    system.uname                                  [s|Linux 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux]
    system.uptime                                 [u|18540483]
    system.users.num                              [d|2.000000]
    Attached Files
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    The report provided by 1.1beta5 agent does not give you all possible conbinations of supported parameters. It just provides basic information. For example, it says that vm.memory.size[total] is supported, however in reality all the following parameters are supported:

    vm.memory.size[total]
    vm.memory.size[free]
    vm.memory.size[cached]
    vm.memory.size[used]
    vm.memory.size[shared]
    vm.memory.size[buffers]

    See ZABBIX Manual for complete list of supported parameters by platform. Do not rely on output of zabbix_agentd -p.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • SAT QPass
      Member
      • Oct 2005
      • 61

      #3
      Originally posted by Alexei
      The report provided by 1.1beta5 agent does not give you all possible conbinations of supported parameters. It just provides basic information. For example, it says that vm.memory.size[total] is supported, however in reality all the following parameters are supported:

      vm.memory.size[total]
      vm.memory.size[free]
      vm.memory.size[cached]
      vm.memory.size[used]
      vm.memory.size[shared]
      vm.memory.size[buffers]

      See ZABBIX Manual for complete list of supported parameters by platform. Do not rely on output of zabbix_agentd -p.
      If that were in fact true.... Then I am curious as to why the server only received the variables listed from -p. I upgraded from 1.1beta2 to 1.1beta5 via the SQL path and yet, all the previously configured items were all coming back as NOT SUPPORTED via the frontend and zabbix_server.log file.

      Code:
      000468:20060124:143835 Parameter [disk_read_ops5[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [cksum[/vmlinuz]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops15[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_read_ops15[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [kern[maxproc]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops15[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_read_ops15[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [sensor[temp1]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops1[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_read_ops1[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [sensor[temp2]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops1[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_read_ops1[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [sensor[temp3]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [cksum[/etc/inetd.conf]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops5[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_read_ops5[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [disk_write_ops5[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:143835 Parameter [cksum[/usr/sbin/sshd]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [check_service[imap]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [disk_read_ops5[hda]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [netloadout15[lo]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [diskfree[/tmp]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [inodefree[/]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [proc_cnt[sshd]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [netloadin1[lo]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [diskused[/var]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [cksum[/etc/services]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [disk_write_ops5[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [net[listen_23]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [disktotal[/usr]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [mysql[uptime]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [check_service[nntp]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [disk_read_ops5[hdb]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [netloadout1[eth0]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [diskfree[/usr]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      000468:20060124:144000 Parameter [inodetotal[/home]] is not supported by agent on host [mercsis2.sea1.qpass.net] Old status [0]
      Do I have to completely dump my database and start from scratch? Why would all the previously defined items fail?

      As soon as I restored the 1.1beta2 zabbix_agentd they were all supported again.

      Code:
      000468:20060125:121615 Cannot connect to [mercsis2.sea1.qpass.net] [Connection refused]
      000468:20060125:121615 Host [mercsis2.sea1.qpass.net] will be checked after [60] seconds
      000468:20060125:121715 Enabling host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadout15[lo]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [disktotal[/home]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [inodetotal[/usr]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [proc_cnt[sshd]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [check_service[ftp]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadin1[lo]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskfree[/home]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [inodefree[/tmp]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [net[listen_23]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskused[/tmp]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadout1[eth0]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [disktotal[/opt]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [inodetotal[/]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [proc_cnt[syslogd]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [check_service[http]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadin5[eth0]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskfree[/opt]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [inodefree[/usr]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [net[listen_80]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskused[/usr]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadin15[eth0]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [cksum[/etc/passwd]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadout1[eth1]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [disktotal[/tmp]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [proc_cnt[zabbix_agentd]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [check_service[imap]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadin5[eth1]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskfree[/tmp]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [inodefree[/]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [ping] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [diskused[/var]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [netloadin15[eth1]] became supported by agent on host [mercsis2.sea1.qpass.net]
      000468:20060125:122000 Parameter [cksum[/etc/services]] became supported by agent on host [mercsis2.sea1.qpass.net]

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Apologies for providing incorrect information. The old naming of items is NOT supported anymore. You have to rename your items. Keeping old naming supported would greately increase agent's internal structure, that's why we decided to drop backward compatibility at some point.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • elkor
          Senior Member
          • Jul 2005
          • 299

          #5
          OK,

          I'm back in the zabbix game for a while, need to upgrade to beta5 or better.

          That being said, Alexei.. could you provide a map of olditem to newitem names so that a sql script can be generated to update older databases?

          Or, if you have one already... post it?

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            It would be quite difficult to create such a patch. Some parsing will be required and this cannot be done by SQL.

            I believe the mapping is quite straight forward. Look at ZABBIX Manual, it has old naming in description of the new items.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • elkor
              Senior Member
              • Jul 2005
              • 299

              #7
              I made a quick item to item map and script to update the items in the database.

              I posted it on the wiki in the users contribution section so if anyone wants to use it, update it, or add something I've missed feel free

              http://www.zabbix.com/doku/doku.php?....1beta5_syntax

              Comment

              Working...