LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Using SNMP in NAGIOS (https://www.linuxquestions.org/questions/linux-networking-3/using-snmp-in-nagios-261657/)

Bzw 12-02-2004 04:51 AM

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!

Bob

Mara 12-02-2004 03:22 PM

Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.

mritch 12-03-2004 12:16 AM

hi.

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:

http://www.siliconvalleyccie.com/linux-hn/mrtg.htm
http://www.siliconvalleyccie.com/lin...m#_Toc88489207

ask, if you'd like more info.

sl mritch.

Bzw 12-06-2004 07:13 AM

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!

Bob


All times are GMT -5. The time now is 04:30 PM.