LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-08-2013, 12:09 PM   #1
techux
Member
 
Registered: Mar 2013
Posts: 49

Rep: Reputation: Disabled
Doubts about SNMP


I have been reading about SNMP,I have to set-up some server with centos, debian. The idea is to use some snmp manager for monitoring these servers.

I have read how to install snmp in linux, know what is a mib, OID. I installed net-snmp and net-snmp-utils

my doubt is about how to integrate or monitor the server from the manager/monitor.


1- Do I need to add the mibs from my linux server to the snmp manager? or do I just need add the IP and the community.

what I look for monitor is cpu usage, memory, disk space, and some processes of an application that would be running in the server.

2- how frequently the monitor poll the devices to know if there is something wrong.

3- I would like that is there is any error, the agent send a trap to the server to notify about this event. what configuration does it require in the manager/agent side?


thanks
 
Old 04-08-2013, 06:58 PM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,733
Blog Entries: 3

Rep: Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629
Quote:
Originally Posted by techux View Post
from the manager/monitor.
Mike:
tell me more about this host.

Subscribed with interest...

Last edited by Habitual; 04-08-2013 at 07:07 PM.
 
Old 04-11-2013, 10:03 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,827

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Quote:
Originally Posted by techux View Post
I have been reading about SNMP,I have to set-up some server with centos, debian. The idea is to use some snmp manager for monitoring these servers. I have read how to install snmp in linux, know what is a mib, OID. I installed net-snmp and net-snmp-utils my doubt is about how to integrate or monitor the server from the manager/monitor.
The word "doubt" and the word "question" mean different things.
Quote:
1- Do I need to add the mibs from my linux server to the snmp manager? or do I just need add the IP and the community.
You load the MIB on the server to be monitored. From there, you can then run an SNMP query which will return the new set of values that the MIB represents.
Quote:
what I look for monitor is cpu usage, memory, disk space, and some processes of an application that would be running in the server.
Those are all pretty much there in the 'standard' SNMP configuration, in the ".enterprise" or "system" classes. Read the man page on snmpwalk, or see some of the THOUSANDS of easily-found examples on Google.
Quote:
2- how frequently the monitor poll the devices to know if there is something wrong.
You're the administrator, so you decide how often you want to poll things.
Quote:
3- I would like that is there is any error, the agent send a trap to the server to notify about this event. what configuration does it require in the manager/agent side?
When you set up SNMP on the server to be monitored, you can also set up where to send traps, and what to send. Again, read the man page on snmpd.conf:
http://www.debianhelp.co.uk/manpages/snmpdmanpage.txt

If you're doing an interval poll, sending traps won't get you alot, since the system monitor will only be behind by whatever the maximum poll rate is. For example, if the poll rate is 5 minutes, and a service fails, the LONGEST it could be down is < 5 minutes. Sending a trap sooner won't buy you a whole lot.

Nagios and Zabbix are great monitoring tools that can use SNMP, and they are also amply documented.
 
Old 04-11-2013, 03:09 PM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,733
Blog Entries: 3

Rep: Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629
Quote:
Originally Posted by TB0ne View Post
Nagios and Zabbix are great monitoring tools that can use SNMP, and they are also amply documented.
zabbix is rock solid.
 
Old 04-13-2013, 06:04 PM   #5
techux
Member
 
Registered: Mar 2013
Posts: 49

Original Poster
Rep: Reputation: Disabled
thanks..

The monitor we are using is solarwinds.

I can monitor the disk, cpu, memory. the basic default stuff, at least.

Now I want to monitor some processes, like httpd, oracle and some other 3rd party services.

in the snmpd.conf I can set proc httpd, proc sshd and then query it with snmpwalk with the OID .1.3.6.1.4.1.2021.2

I am trying to configure solarwinds to show the prTable and launch an alert if a process is not running, I cant find this option in the alert section so far. it let me query for a column of the table but not the whole information of the table...

meanwhile I am not sure if the "proc" should be used with the intention of creating an alert and send a trap...or if the manager should detect it automatically, or both...
 
Old 04-16-2013, 10:58 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,251

Rep: Reputation: 395Reputation: 395Reputation: 395Reputation: 395
Quote:
Originally Posted by techux View Post
The monitor we are using is solarwinds.

I am trying to configure solarwinds to show the prTable and launch an alert if a process is not running, I cant find this option in the alert section so far. it let me query for a column of the table but not the whole information of the table...
So really much more of a solarwinds question than SNMP really. Have you tried solarwinds support?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to associate SNMP OID with specific parameter under SNMP agent? m4rtin Linux - Server 1 09-16-2011 09:04 AM
Configuring Custom SNMP MIB to Default DELL OMSA SNMP prabakar4all Linux - Server 0 07-29-2011 11:44 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 02:46 PM.

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