problem with ucdavis MIBs

This is a discussion on problem with ucdavis MIBs within the SNMP Users forums, part of the Networking and Network Related category; hi there. i have two working installs of cacti using snmp to retrieve iptables bandwidth (using exec() in snmpd.conf) ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2007
Ernesto Franchini
 
Posts: n/a
Default problem with ucdavis MIBs


hi there.
i have two working installs of cacti using snmp to retrieve iptables
bandwidth (using exec() in snmpd.conf)

1)-- one server is running debian and it works fine:

(from snmpd.conf)
exec .1.3.6.1.4.1.2021.49 iplist /root/iptables_traffic_iplist.sh -g
exec .1.3.6.1.4.1.2021.49.42 ipindex /root/iptables_traffic_iplist.sh -i
exec .1.3.6.1.4.1.2021.50 traffic_in /root/iptables_traffic_eval.sh in
exec .1.3.6.1.4.1.2021.51 traffic_out /root/iptables_traffic_eval.sh out

# snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.49

UCD-SNMP-MIB::ucdavis.49.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.49.2.1 = STRING: "iplist"
UCD-SNMP-MIB::ucdavis.49.3.1 = STRING:
"/usr/local/sbin/snmp_ips/iptables_traffic_iplist.sh -g"
UCD-SNMP-MIB::ucdavis.49.42.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.49.42.2.1 = STRING: "ipindex"
UCD-SNMP-MIB::ucdavis.49.42.3.1 = STRING:
"/usr/local/sbin/snmp_ips/iptables_traffic_iplist.sh -i"
UCD-SNMP-MIB::ucdavis.49.42.100.1 = INTEGER: 2
UCD-SNMP-MIB::ucdavis.49.42.101.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.49.42.101.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.49.42.102.1 = INTEGER: 0
[..cut..]

2)-- second server is running Slackware and has problems:

(from snmpd.conf)
exec .1.3.6.1.4.1.2021.49 iplist /root/iptables_traffic_iplist.sh -g
exec .1.3.6.1.4.1.2021.49.42 ipindex /root/iptables_traffic_iplist.sh -i
exec .1.3.6.1.4.1.2021.50 traffic_in /root/iptables_traffic_eval.sh in
exec .1.3.6.1.4.1.2021.51 traffic_out /root/iptables_traffic_eval.sh out

# snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.49

UCD-SNMP-MIB::ucdavis.49 = No Such Object available on this agent at
this OID

but if i remove the OID part fron exec
(ie. "exec iplist /root/iptables_traffic_iplist.sh -g" ) this query
returns the values i'm looking for (so exec() is executed correctly)

# snmpwalk -v 2c -c pr-public localhost UCD-SNMP-MIB::extOutput
UCD-SNMP-MIB::extOutput.1 = STRING: 192.168.200.161
UCD-SNMP-MIB::extOutput.2 = STRING: 1
UCD-SNMP-MIB::extOutput.3 = STRING: 254
UCD-SNMP-MIB::extOutput.4 = STRING: 296

so, the simple question is: what is happening?
how can i make things working on slack install?

thanks and cheers!

--
Ernesto Franchini <ernesto.franchini@prodigit.it>
Linux System Administrator
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.antagonism.org/qmr-faq.shtml
http://www.thedjbway.org/

Prodigit SRL _
Via Mecenate 76/9 - 20138 Milano ASCII ribbon campaign ( )
Tel. 02/509081 - Fax. 02/50908080 - against HTML email X
www.prodigit.it & vCards / \

"Madness, like small fish, runs in hosts, in vast numbers of instances."

- You may now sacrifice $PAGAN_OBJECT to $FAVOURITE_DIETY and reboot
into your newly installed Slackware on Raid -

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0