Solved

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

Posted on 2009-04-05
6
855 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

786 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