Wrong ports counter / reset counter
Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
Thanks! Onno.
Hi,
No one any idea? Just updated to last SVN but still no luck. Version: 0.14.3.5094
Regards,
Onno. -----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Onno van der Leun Sent: donderdag 6 maart 2014 14:39 To: observium@observium.org Subject: [Observium] Wrong ports counter / reset counter
Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
Thanks! Onno. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
On 2014-03-06 07:39, Onno van der Leun wrote:
Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
I think this is probably down to an incorrect SQL query somewhere, or there might be orphaned ports left in the database after a device has been removed.
adam.
Hi Adam,
Thank you for your reply. Is there any way reset the port counters? Or a way to check for orphaned ports?
Regards, Onno.
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: maandag 10 maart 2014 17:18 To: Observium Network Observation System Subject: Re: [Observium] Wrong ports counter / reset counter
On 2014-03-06 07:39, Onno van der Leun wrote:
Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
I think this is probably down to an incorrect SQL query somewhere, or there might be orphaned ports left in the database after a device has been removed.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
There aren't any counters, it's counting the entries in the database.
Have you checked in /deleted-ports/ ?
It's likely that our total is included deleted ports, but the other numbers aren't.
adam.
On 2014-03-10 10:30, Onno van der Leun wrote:
Hi Adam,
Thank you for your reply. Is there any way reset the port counters? Or a way to check for orphaned ports?
Regards, Onno.
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: maandag 10 maart 2014 17:18 To: Observium Network Observation System Subject: Re: [Observium] Wrong ports counter / reset counter
On 2014-03-06 07:39, Onno van der Leun wrote: Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
I think this is probably down to an incorrect SQL query somewhere, or there might be orphaned ports left in the database after a device has been removed.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hi Adam,
I found the cause of this "issue". It seems that suddenly (at least in older versions we didn't notice this behavior) also 'warnings' on ports are counted as 'down'.
From the switches we have, I only see this behavior with JunOS devices. What happens is that when a port is configured with an logical unit, and the physical unit is disabled, the logical unit stays administrative up:
{master:0} onno@switch> show configuration interfaces ge-0/0/12 { disable; unit 0 { family ethernet-switching; } }
onno@switch> show interfaces terse ge-0/0/12 Interface Admin Link Proto Local Remote ge-0/0/12 down down ge-0/0/12.0 up down eth-switch
This causes the physical port to be ignored because of the admin state 'down', but the logical unit isn't. This can be verified under 'ports'->'Alerts'. There the port is not marked with red but with yellow.
In my opinion, there is no need to alert on these ports because the "master port" is already set administrative down. If you agree, could this be fixed in the next update? (if even possible within the code)
Met vriendelijke groet, Kind regards,
Onno.
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: maandag 10 maart 2014 17:46 To: Observium Network Observation System Subject: Re: [Observium] Wrong ports counter / reset counter
There aren't any counters, it's counting the entries in the database.
Have you checked in /deleted-ports/ ?
It's likely that our total is included deleted ports, but the other numbers aren't.
adam.
On 2014-03-10 10:30, Onno van der Leun wrote:
Hi Adam,
Thank you for your reply. Is there any way reset the port counters? Or a way to check for orphaned ports?
Regards, Onno.
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: maandag 10 maart 2014 17:18 To: Observium Network Observation System Subject: Re: [Observium] Wrong ports counter / reset counter
On 2014-03-06 07:39, Onno van der Leun wrote: Hi,
I've some weird behaviour with observium. Since some time the ports counter on the frontpage is displaying wrong values. Eg. It's showing that there are 264 ports down, but when I click the link, there are only 23 ports down. Also when I add up the up, down, ignored and disabled ports, the total number (13326) is less than the number observium shows under 'total' (14991)
Does anyone have an idea where to look? Or is there a way to reset the counters?
I think this is probably down to an incorrect SQL query somewhere, or there might be orphaned ports left in the database after a device has been removed.
adam. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Onno van der Leun