On 2010-11-11 12:59, Gerd Müller wrote:
Hi Krzystof,
thank you for your the net-snmp plugin for haproxy. It's a great help.
Since I am using OpenNMS I had to make small patch. OIDs for frontends
and backends end with .0 wheres the actual instance is the last but one.
OpenNMS and other snmp tools expects the instance as last. So here is my
minimal patch. Would be cool if you could apply it to your code.
101a102
>
131a133
> $nextid =~ s/\.0$// if($type<2);
Hi Gerd,
Thank you for the patch and raising this issue. Please note however,
that we are not able to alter the OIDs format without breaking current
installations, so we should avoid such change. So, the only option is to
build v2 OIDs and provide both versions.
Also, while the current mainline version always puts "0" here, I have a
patch adding subinstances for backends providing separate stats for each
call (use_backend, default_backend) from a different frontend/socket. In
such case, the last fields is also significant. Currently, I have
virtually no time for such activities, but I'm going to push this patch
to Willy one day.
At the end, coud you explain why you need this? Why is it not possible
to address backends and frontends using two fields, like it is required
for servers? Yes, the last one will be "0" but it should not make a problem.
Best regards,
Krzysztof Olędzki