Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-02-2004, 05:51 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Question Using SNMP in NAGIOS

Hi everybody,

I am new here and this is my problem. I use Nagios 1.2 on Suse 9.1 personal.
I am trying to get snmp info from a UNIX host. I wan't mem usage, disk info, cpu info and info from Oracle databases that are running at that host.

I tried every thing, but the only info i get is the "uptime" from that host. Can anyone profied me with the right strings or other info to set this up.

I considered to install Nagmin, but i understand it 's not that easy. And I don't no if that will solve my problems.

Hope anyone can help me!

Old 12-02-2004, 04:22 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,576

Rep: Reputation: 191Reputation: 191
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 12-03-2004, 01:16 AM   #3
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30

iirc nagios was mrtg/lrrd?

ok. first you'll need a running snmpd (it's the server) and it's configured (depends on the snmpd) maybe in /etc/snmpd.conf. have a look into that file. things like diskspace usually have to be enabled there.

as you say you allready get your uptime i asume a snmpd is up and running.
the layout of snmp first looks a bit scary, but if you're once familiar with it it's not half that wild. please don't ask me why it's called "simple network manaegment protocol" (or so?).

to get values from the host you'd like to watch use snmpwalk (man snmpwalk):

$ snmpwalk -v 1 -c public localhost system

"system" should give you quite a lot of output, to stop it: crtl^c

now you could use a more specific string to query. for example disk or memory usage:

$ snmpwalk -v 1 -c public localhost disk
$ snmpwalk -v 1 -c public localhost mem

to actually know what string means what see if there are *-MIB.txt on your system. they describe these short strings better for different interfaces/devices.

$ locate MIB

short introduction.
here's a quite useful link i just googled:

ask, if you'd like more info.

sl mritch.
Old 12-06-2004, 08:13 AM   #4
LQ Newbie
Registered: Dec 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Hi mritch,

Thanks for your reply!

I tried snmpwalk on the Unix host, but he didn't recognized the command. I searched for snmpwalk and *-MIB.txt, but could't find anything.

When I used snmpwalk from the Nagios box with localhost replaced by the hostname of the Unix machine, only the system info works!

I'll get no disk or mem info, even no errors.

When i run the snmpwalk from the Nagios box like this:

snmpwalk -v 1 -c public unixmachine

I'll get a lot of info, but no disk or mem info. The most of them is IP, TCP and UDP info.

Thanks a lot already!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios and SNMP Deaclen Linux - Software 1 02-28-2007 10:12 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 09:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 07:08 AM
About NAGIOS Redhat_guy Linux - Networking 3 06-30-2004 02:43 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 11:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration