Page 1 of 1

Advanced Juniper Polling

Posted: Fri Nov 22, 2019 4:36 pm
by JeremyJohns
I'm trying to get polling on Juniper ACX5048s, and Juniper MX204s. We used to use libreNMS which uses a "generic poller" and is able to generically pull a lot more data than I've been able to get out of Nagios thus far.

Specifically what I'm looking for is the ability to poll these data points:
VRF Status
VRF Routes
BGP/IBGP Neighbor Status
BGP/IBGP Neighbor Routes Received
BGP/IBGP Neighbor Uptime
CPU Temperature
CPU Utilization
RAM Utilization
Chassis Alarm Status
System Alarm Status
Interface SFP TX/RX Light levels (dbm)


I've been able to get all of this data from LibreNMS but the NMS isn't good for our access equipment and overloads it so it's not an option.
I've considered reaching out to them to ask them how they are generically polling the Juniper but I haven't done that yet.

Here is what I have done:
I run my configuration wizard and use the Network Switch / Router wizard which pulls in Hostname and Status/Bandwidth for all the ports I'm interested in polling.
I then ran the SNMP Walk wizard, I cleared the OID field, I set my timeout for 1500 seconds, max results of 100000, force scan yes.
I get several hundred responses but none of what I need. The issue is further confounded because the snmp polling data doesn't reveal valuable interface names/labels just most data strings with ifindex#s.

I thought perhaps my MIBs were the issue so I reached out to Juniper and they sent me roughly 200 MIBs that are specifically designed for my firmware. I got with our Nagios vendor and they explained I could bulk import those MIB by adding them to the /usr/share/snmp/mibs, and then doing, chown root:nagios *.txt, chmod 664 *.txt, to the MIB files.

I ran the SNMP walk again to the same results.

I got with Juniper tech support and they gave me roughly 20-30 OIDS that "would" give me the data I was looking for, I loaded those OIDs into the SNMP Wizard, and only got responses from 2 of the OIDS that were basically worthless.

I highly doubt I'm the only person using nagios and Juniper so I'm hoping that one of you guys can assist me in getting these data points polling actively.

Re: Advanced Juniper Polling

Posted: Mon Nov 25, 2019 3:22 pm
by cdienger
I'm not certain, but I think LibreNMS uses SNMP as well. Did you follow these steps to enable it:

https://docs.librenms.org/Support/SNMP- ... s/#juniper

?

Are the devices expecting a specific version of SNMP?

Check which version of the wizard is being used by going to Admin > System Extensions > Manage Config Wizards, and try updating them to the latest using the Check for Updates and Install Updates button. Newer version will allow you to select a specific MIB to use when walking a device.

If you have specific OIDs to test with, try running the snmpget command on the command line. For example:

Code: Select all

snmpget -v2c -c public juniper_ip_addr OID

Re: Advanced Juniper Polling

Posted: Wed Dec 04, 2019 11:01 am
by JeremyJohns
I'm not entirely unable to poll the Junipers.
I used the router/switch wizard and I am able to get the interface statuses and bandwidth graphs.
My issue arises when i try to execute this more specific and focused polling to get like CPU temperature.
I have a local Juniper that I can directly connect to and poll with a MIB walker and the oids/mibs work properly.
When i take those same oids and put them into nagios, it fails.

I've done this same process with one of our Zhone GPON chassis (essentially a big switch) and it works without issue.

Re: Advanced Juniper Polling

Posted: Wed Dec 04, 2019 12:41 pm
by mbellerue
What command are you trying with Nagios that fails? Is there any output to the command?

Re: Advanced Juniper Polling

Posted: Mon Dec 16, 2019 3:44 pm
by benjaminsmith
Hi Jeremy,

It's been a few days since we last heard from you. Were you able to get your issue resolved? When you have a moment, let us know. Thanks.