Hello, I used to monitor network in windows using perfcounters, by adding these parameters into .conf file of the agent automaticaly during installation.
Like so:
PerfCounter=uNetwork.in0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Получено байт/сек",60
PerfCounter=uNetwork.out0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Отправлено байт/сек",60
PerfCounter=uNetwork.all0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Всего байт/сек",60
Unfortunately, they are not supported somehow after 1.6->1.8 upgrade.
Here is what agent's log saying:
7644:20091208:203003.015 Unable to add performance counter '\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Всего байт/сек' to query: The specified object is not found on the system.
I'm afraid that this have something to do with all these \ _ = ( ) chars or perhaps rus literals. Still, this used to work in 1.6.
Tested on two PC's
Like so:
PerfCounter=uNetwork.in0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Получено байт/сек",60
PerfCounter=uNetwork.out0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Отправлено байт/сек",60
PerfCounter=uNetwork.all0,"\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Всего байт/сек",60
Unfortunately, they are not supported somehow after 1.6->1.8 upgrade.
Here is what agent's log saying:
7644:20091208:203003.015 Unable to add performance counter '\Сетевой интерфейс(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller - Packet Scheduler Miniport)\Всего байт/сек' to query: The specified object is not found on the system.
I'm afraid that this have something to do with all these \ _ = ( ) chars or perhaps rus literals. Still, this used to work in 1.6.
Tested on two PC's
. Thanks for the clue Rincewind (perfcounters with non-latin characters works fine) !
Comment