I've finally Zabbix working on my OpenVZ VPS machines and bumped into the next challange: a network monitoring problem. Why not?
The eth0 interface isn't supported on a VPS. Instead there's at default a venet0 interface available. Probably the parameters to read out receive and transmit values aren't therefore supported in Zabbix. I could of course parse /proc/net/dev and readout the values myself using Bash or Perl.
I did some experimenting with Bash and defined on the Agent two UserParameters that did their job perfectly until their was some shifting with positions of the bytes in the /proc/net/dev output.
UserParameter=venet0.receive, cat /proc/net/dev | grep venet0 | cut -b 9-18
UserParameter=venet0.transmit, cat /proc/net/dev | grep venet0 | cut -b 67-77
Before I throw myself into a new subproject advanced programing with Perl or Bash to get this done, I was wondering if there's someone around that already got over this or a similar problem.
Regards,
Marc
The eth0 interface isn't supported on a VPS. Instead there's at default a venet0 interface available. Probably the parameters to read out receive and transmit values aren't therefore supported in Zabbix. I could of course parse /proc/net/dev and readout the values myself using Bash or Perl.
I did some experimenting with Bash and defined on the Agent two UserParameters that did their job perfectly until their was some shifting with positions of the bytes in the /proc/net/dev output.
UserParameter=venet0.receive, cat /proc/net/dev | grep venet0 | cut -b 9-18
UserParameter=venet0.transmit, cat /proc/net/dev | grep venet0 | cut -b 67-77
Before I throw myself into a new subproject advanced programing with Perl or Bash to get this done, I was wondering if there's someone around that already got over this or a similar problem.
Regards,
Marc

Comment