BGP alerts

We are utilizing a different flag on net-snmp and there is a bug in old versions that has invalid output.

@murrant Thanks again for the reply,

So the only way to fix my issue is to upgrade net-snmp?

Thanks,

-Mike

@mvoity Hmm, I just looked through the code and Iā€™m wrong about net-snmp. We arenā€™t using that new flag here.

The devices you are having issues with are IOS-XR? I donā€™t see that we have any test data for IOS-XR BGP. Perhaps something is different on them than IOS and IOS-XE.

Would you be willing to send me some test data?
./scripts/collect-snmp-data.php -m bgp-peers -h HOSTNAME

You can either sanitize it yourself or send me the data privately and Iā€™ll sanitize it for you.

can you email me at [email protected]

Thanks,

-Mike

@murrant

Have you been able to see anything with the logs and info i provided you?

The alerts are still active for my ASR9006, and the sessions are still up.

Thanks!

-Mike

I have a patch I was working on but not finished yet. Iā€™d appreciate if you test it after it is done.

@murrant

That would be awesome!

Thanks for your continued work!

-Mike

Fix merged: https://github.com/librenms/librenms/pull/8208

Sorry for not replying sooner -

how do i merge -

bash-4.1$ ./daily.sh
Updating to latest codebase FAIL
error: Your local changes to ā€˜tests/snmpsim/iosxr.snmprecā€™ would be overwritten by merge. Aborting.
Please, commit your changes or stash them before you can merge.
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

./scripts/github-remove

@murrant

Thanks for your reply,

I am not sure I follow you -

bash-4.1$ ./scripts/github-remove
Traceback (most recent call last):
File ā€œ./scripts/github-removeā€, line 3, in
from subprocess import call, check_output
ImportError: cannot import name check_output

Cool, python <2.7

Just

git checkout tests/snmpsim/iosxr.snmprec
./daily.sh

@murrant I meant to reply earlier, Work and Life has gotten in the way.

That fix didnā€™t remove the alerts.

What data do you need to look at it deeper?

-Mike

Run ./daily.sh as the librenms user again and paste the output.

here you go:

[root@librenms librenms]# su librenms
bash-4.1$ pwd
/opt/librenms
bash-4.1$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updated from 5af51fa to 7b6e4f9 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

Looks like it is updating ok now. Delete the entry from the notifications table in the database. Likely something odd happened to you and now this notification is ā€œorphanedā€.

@murrant Thank you for your reply.

That did not work.

got any other ideas?

-Mike

@mvoity do you have a cron job running it as a different user or something so it fails?

@murrant
The BGP alerts thing we had a few months ago has re-appeared.

I have deleted the alert and then re-added it. Still showing alerts down that are actually up.

What debug info do you need.

-Mike

@murrant

We talked about this about 6 months ago.

I went into the "bgpPeers " table and deleted all the peers that had bad /no information -

Here is one with good information -

I think it may be a bad MIB or its not doing the SNMPwalk correctly.

Ideas?

-Mike