Hi

 

We upgraded to the PRO version last week so that we could look at the billing feature.

 

We did all the needed setup stuff including install of jdgraph etc and added the required cron jobs.

 

We created a few tests bills on a couple of ports

 

We left it for a few hours and got absolutely nothing.

 

We ran poll-billing manually and kept on seeing that it returned “No Data”

 

We searched online and believe that this bug might be referenced here:

 

http://jira.observium.org/browse/OBSERVIUM-711

 

We enabled OBS_DEBUG in poll-billing.php and immediately could see the problem.  The snmpget command was being invoked requesting v2 High Capacity counters against snmp v1 targets.

 

The reason is that the conditional clause when building the snmpget command is wrong. Currently line 86 reads:

 

    if ($port['snmp_version'] == "1" || $port['port_64bit'] == "0") {

 

However the snmpv1 string that should be looked for is “v1” not “1”.  Changing the clause to:

 

    if ($port['snmp_version'] == "v1" || $port['port_64bit'] == "0") {

 

Solves all the problems and poll-billing then correctly returns data from snmp v1 devices.

 

Can the please be fixed in an upcoming SVN release so we do not have to reapply the fix if poll-billing.php gets changed for other reasons.

 

KR’s

 

Mark