Solved

Redhat Server 2.6.18-92.el5 - MIB file for Opsview

Posted on 2009-04-05
6
861 Views
Last Modified: 2013-12-23
I am using OpsView to receive alarms from another Redhat server. The problem is that on this particular server, we have an application that has MIB file. How do I introduce the MIB file to Opsview and have the client server send traps?
0
Comment
Question by:bravo2nothing
  • 4
  • 2
6 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 24074959
RHEL uses simple Net-SNMP
It can send traps.

If you are using external app with MIB file you have to introduce SNMP subagent into snmpd.conf, as from applications admin guide.

What is that application?
Whats in /etc/reshat-release
uname -a

Some RHEL releases of Net-SNMP did not work at all, so check if it has host mib as such before even trying to get sub-agent. If problem is there do up2date or yum update.
0
 

Author Comment

by:bravo2nothing
ID: 24075370
The application is a telephony softswitch. Note the uname entry in the title.

My question is what am I missing from the snmpd.conf file?

Is it simply an entry as +MIB filename?
0
 
LVL 62

Expert Comment

by:gheist
ID: 24076933
http://www.snmpview.de/snmpd_conf.php
part about "exec"
you have to know location of agent executable so that snmpd can publish its output.
snmpd as such has no idea about your aplication, oracle, and other installed apps.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Accepted Solution

by:
bravo2nothing earned 0 total points
ID: 24078804
Gheist, I really appreciate your help but this my first adventure into SNMP and therefore I will freely admit to being a little stupid! I don't understand what syntax has to be used with the context of this file. For the sake of not wishing to keep asking stupid questions, could you show me with the use of an example for stupid people!??

Thanks!
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 500 total points
ID: 24079295
Copy/paste from page linked above:

# Run a shell script containing:
#
# #!/bin/sh
# echo hello world
# echo hi there
# exit 35
#
# Note:  this has been specifically commented out to prevent
# accidental security holes due to someone else on your system writing
# a /tmp/shtest before you do. Uncomment to use it.
#
#exec shelltest /bin/sh /tmp/shtest

# Then,
# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.8
# enterprises.ucdavis.extTable.extEntry.extIndex.1 = 1
# enterprises.ucdavis.extTable.extEntry.extIndex.2 = 2
# enterprises.ucdavis.extTable.extEntry.extNames.1 = "echotest"
# enterprises.ucdavis.extTable.extEntry.extNames.2 = "shelltest"
# enterprises.ucdavis.extTable.extEntry.extCommand.1 = "/bin/echo hello world"
# enterprises.ucdavis.extTable.extEntry.extCommand.2 = "/bin/sh /tmp/shtest"
# enterprises.ucdavis.extTable.extEntry.extResult.1 = 0
# enterprises.ucdavis.extTable.extEntry.extResult.2 = 35
# enterprises.ucdavis.extTable.extEntry.extOutput.1 = "hello world."
# enterprises.ucdavis.extTable.extEntry.extOutput.2 = "hello world."
# enterprises.ucdavis.extTable.extEntry.extErrFix.1 = 0
# enterprises.ucdavis.extTable.extEntry.extErrFix.2 = 0
0
 
LVL 62

Expert Comment

by:gheist
ID: 24085062
MIB file goes to management system and works AFTER you have configured SNMP sub-agent in snmpd. Same on Windows also.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question