Ad Widget

Collapse

PATCH1.4 Solaris agent sysinfo must return NOTSUPPORTED if the internface don't exist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juampe
    Junior Member
    • Apr 2007
    • 17

    #1

    PATCH1.4 Solaris agent sysinfo must return NOTSUPPORTED if the internface don't exist

    Using templates, I supose if a element don't exist agent returns ZBX_NOTSUPPORTED
    and ZBX forget it. But I found a case that agent returns some trash and the item is showed as supported.
    The followting host does not have cip0 or hme0, but eri0 does

    SunOS asra1 5.9 Generic_118558-06 sun4u sparc SUNW,Sun-Fire-280R

    root@asra1:[13:34:59]:/#zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t agent.version
    agent.version [s|1.4]

    root@asra1:[13:29:11]:/#ifconfig -a
    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 192.168.134.12 netmask ffffff00 broadcast 192.168.134.255
    ether 0:3:ba:16:e5:50
    root@asra1:[13:29:27]:/#zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t net.if.out[cip0,bytes]
    net.if.out[cip0,bytes] [u|4290759072] [m|ZBX_NOTSUPPORTED]
    root@asra1:[13:35:17]:/#zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t net.if.out[hme0,bytes]
    net.if.out[hme0,bytes] [u|4290759072] [m|ZBX_NOTSUPPORTED]
    root@asra1:[13:31:34]:/#zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t net.if.out[eri0,bytes]
    net.if.out[eri0,bytes] [u|66873639671]

    The problem is only fo SunOS, In linux:

    root@sira:[13:50:02]:/$ uname -a
    Linux sira 2.6.18-3-686 #1 SMP Thu Nov 23 20:49:23 UTC 2006 i686 GNU/Linux
    root@sira:[13:50:37]:/$ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t net.if.out[hme0,bytes]
    net.if.out[hme0,bytes] [m|ZBX_NOTSUPPORTED]
    root@sira:[13:51:06]:/$ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t net.if.out[eth0,bytes]
    net.if.out[eth0,bytes] [u|2767286527]
    Attached Files
Working...