[nos-bbs] SNMP MRTG with JNOS
Bill Vodall
wa7nwp at gmail.com
Sun Mar 2 14:24:58 EST 2014
I've been wanting to get MRTG working with JNOS since I saw the
postings that it was available. This is a tool we used very
successfully back in the good old packet days with Linux..
It's getting close. I can poll the JNOS server from the hosted Linux box.
(docs are at: <http://www.physics.umanitoba.ca/~maiko/jnos2/documents/practical/snmp/setup.html>
)
=====
+ snmpget -v1 -c jnos 192.168.27.12 1.3.6.1.2.1.2.2.1.16.2
IF-MIB::ifOutOctets.2 = Counter32: 0
+ snmpget -v1 -c jnos 192.168.27.12 1.3.6.1.2.1.2.2.1.10.2
IF-MIB::ifInOctets.2 = Counter32: 487927
+ snmpget -v1 -c jnos 192.168.27.12 1.3.6.1.2.1.1.3.0
SNMPv2-MIB::sysUpTime.0 = Timeticks: (0) 0:00:00.00
+ snmpget -v1 -c jnos 192.168.27.12 1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: wa7nwp.ampr.org
======
Buglet #1 - it appears the output data being returned is always 0 even
if there is data sent... Not a issue right now as I just want to
get receive working.
Buglet #2 - it appears that passing a port query to JNOS of '0' fails
with an error even though it's documented that the first item in the
IFCONFIG list would be given port 0. To verify that, my packet port
is the third item on the ifconfig list and I query that with port 2 by
snmp as shown above. Again this is not an issue right now. port 0
on the system is Netrom and we don't have that running.
==
I use a simple config created from Maiko's example
#
options[_]: noinfo,nobanner,growright
EnableIPv6: no
NoMib2: yes
#
WorkDir: /var/www/mrtg/jnos
#
# JNOS vhf (2) interface
#
Target[vhf]: 2:jnos at 192.168.27.115:
MaxBytes[vhf]: 150
Title[vhf]: WA7NWP (vhf) traffic
PageTop[vhf]: <h1>WA7NWP (vhf) traffic</h1>
<div id="sysdetails">
Percentages are with respect to 1200 Baud throughput
</div>
===
So new images are generated by MRTG but I'm getting these errors?
It looks like the query fails maybe because it's trying to do a V4
poll? My mrtg will be dated since this is running on an old box.
Any suggestions appreciated..
Bill
=================
2014-03-02 11:09:22 -- SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.27.115" [192.168.27.115].161)
community: "jnos"
request ID: 459674857
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
2014-03-02 11:09:22 -- SNMPGET Problem for ifInOctets.2 ifOutOctets.2
on jnos at 192.168.27.115::::::v4only
at /usr/bin/mrtg line 1926
More information about the nos-bbs
mailing list