Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-08-2013, 12:09 PM
|
#1
|
Member
Registered: Mar 2013
Posts: 56
Rep: 
|
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
|
|
|
04-08-2013, 06:58 PM
|
#2
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by techux
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.
|
|
|
04-11-2013, 10:03 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,673
|
Quote:
Originally Posted by techux
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.
|
|
|
04-11-2013, 03:09 PM
|
#4
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by TB0ne
Nagios and Zabbix are great monitoring tools that can use SNMP, and they are also amply documented.
|
zabbix is rock solid.
|
|
|
04-13-2013, 06:04 PM
|
#5
|
Member
Registered: Mar 2013
Posts: 56
Original Poster
Rep: 
|
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...
|
|
|
04-16-2013, 10:58 AM
|
#6
|
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,564
|
Quote:
Originally Posted by techux
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?
|
|
|
All times are GMT -5. The time now is 09:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|