Solved

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

Posted on 2009-04-05
6
846 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 61

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 61

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 61

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 61

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now