Dears,
I am trying do debug problem with network interfaces statistics in Solaris 10 OS.
Zabbix agent was installed on machine from binary (tried versions 3.2 and 3.0).
After add machine to zabbix and mechanism interface discovery I noticed that just one interface work correctly, shows traffic in/out - others are with error "Cannot look up interface "xxxxx" in kernel statistics facility".
Example from zabbix server. First works OK, second with error.
zabbix_get -s sc1201 -I 10.14.141.87 -k net.if.in[e1000g0]
7774856257
zabbix_get -s sc1201 -I 10.14.141.87 -k net.if.in[e1000g4]
ZBX_NOTSUPPORTED: Cannot look up interface "e1000g4" in kernel statistics facility
In solaris kstat I see that zabbix gets interface statistics from parameters obytes64/rbytes64.
Just first one works correctly (e1000g0).
root@dest_server# kstat -n e1000g0
module: e1000g instance: 0
name: e1000g0 class: net
brdcstrcv 4110588
brdcstxmt 83211
collisions 0
crtime 71.361545752
ierrors 0
ifspeed 1000000000
ipackets 84980977
ipackets64 84980977
multircv 0
multixmt 0
norcvbuf 0
noxmtbuf 0
obytes 3726443176
obytes64 8021410472 -> out traffic
oerrors 0
opackets 68162412
opackets64 68162412
rbytes 3480043602
rbytes64 7775010898 -> in traffic
snaptime 12466093.2397138
unknowns 0
root@dest_server# kstat -n e1000g4
module: e1000g instance: 4
name: e1000g4 class: net
brdcstrcv 3381100
brdcstxmt 709889
collisions 0
crtime 73.744497144
ierrors 12701
ifspeed 1000000000
ipackets 49198239
ipackets64 49198239
multircv 9771516
multixmt 7688294
norcvbuf 0
noxmtbuf 0
obytes 2840727680
obytes64 2840727680
oerrors 0
opackets 44386455
opackets64 44386455
rbytes 3148835225
rbytes64 3148835225
snaptime 12466096.2313453
unknowns 0
Zabbix LOG:
28394:20190916:131133.434 Requested [net.if.in[e1000g0]]
28394:20190916:131133.440 Sending back [7773090165]
[...]
28391:20190916:131555.080 Requested [net.if.in[e1000g4]]
28391:20190916:131555.092 Sending back [ZBX_NOTSUPPORTED: Cannot look up interface "e1000g4" in kernel statistics facility]
Did anyone have similar issue? Maybe other zabbix version I should try or any kstat settings?
Thanks for any help.
I am trying do debug problem with network interfaces statistics in Solaris 10 OS.
Zabbix agent was installed on machine from binary (tried versions 3.2 and 3.0).
After add machine to zabbix and mechanism interface discovery I noticed that just one interface work correctly, shows traffic in/out - others are with error "Cannot look up interface "xxxxx" in kernel statistics facility".
Example from zabbix server. First works OK, second with error.
zabbix_get -s sc1201 -I 10.14.141.87 -k net.if.in[e1000g0]
7774856257
zabbix_get -s sc1201 -I 10.14.141.87 -k net.if.in[e1000g4]
ZBX_NOTSUPPORTED: Cannot look up interface "e1000g4" in kernel statistics facility
In solaris kstat I see that zabbix gets interface statistics from parameters obytes64/rbytes64.
Just first one works correctly (e1000g0).
root@dest_server# kstat -n e1000g0
module: e1000g instance: 0
name: e1000g0 class: net
brdcstrcv 4110588
brdcstxmt 83211
collisions 0
crtime 71.361545752
ierrors 0
ifspeed 1000000000
ipackets 84980977
ipackets64 84980977
multircv 0
multixmt 0
norcvbuf 0
noxmtbuf 0
obytes 3726443176
obytes64 8021410472 -> out traffic
oerrors 0
opackets 68162412
opackets64 68162412
rbytes 3480043602
rbytes64 7775010898 -> in traffic
snaptime 12466093.2397138
unknowns 0
root@dest_server# kstat -n e1000g4
module: e1000g instance: 4
name: e1000g4 class: net
brdcstrcv 3381100
brdcstxmt 709889
collisions 0
crtime 73.744497144
ierrors 12701
ifspeed 1000000000
ipackets 49198239
ipackets64 49198239
multircv 9771516
multixmt 7688294
norcvbuf 0
noxmtbuf 0
obytes 2840727680
obytes64 2840727680
oerrors 0
opackets 44386455
opackets64 44386455
rbytes 3148835225
rbytes64 3148835225
snaptime 12466096.2313453
unknowns 0
Zabbix LOG:
28394:20190916:131133.434 Requested [net.if.in[e1000g0]]
28394:20190916:131133.440 Sending back [7773090165]
[...]
28391:20190916:131555.080 Requested [net.if.in[e1000g4]]
28391:20190916:131555.092 Sending back [ZBX_NOTSUPPORTED: Cannot look up interface "e1000g4" in kernel statistics facility]
Did anyone have similar issue? Maybe other zabbix version I should try or any kstat settings?
Thanks for any help.