LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2012, 12:16 AM   #1
crypt90
LQ Newbie
 
Registered: Jun 2012
Location: India
Distribution: Redhat and Centos
Posts: 14

Rep: Reputation: 0
nagios-snmp


I want to configure nagios snmp to monitor remote hosts.How can I create service and commands.cfg I need an example using check_snmp_disk to monitor remote host Thanx..
 
Old 09-02-2012, 10:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by crypt90 View Post
I want to configure nagios snmp to monitor remote hosts.How can I create service and commands.cfg I need an example using check_snmp_disk to monitor remote host Thanx..
Well, if you need examples, did you try looking at the Nagios site and/or the Nagios exchange, where they list MANY?
http://www.nagios.com/solutions/snmp-traps
http://exchange.nagios.org/directory...d-HOWTOs/page7
http://xavier.dusart.free.fr/nagios/en/snmptraps.html
 
Old 09-02-2012, 06:14 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, I decided to use http://www.norgie.net/tools/check_snmp_disks/, but it seemed to me it needed a few tweaks, so the amended version is attached.
Attached Files
File Type: txt egp_check_snmp_disks.conf.txt (296 Bytes, 17 views)
File Type: txt egp_check_snmp_disks.pl.txt (10.9 KB, 12 views)
 
Old 09-03-2012, 02:09 PM   #4
crypt90
LQ Newbie
 
Registered: Jun 2012
Location: India
Distribution: Redhat and Centos
Posts: 14

Original Poster
Rep: Reputation: 0
define command{
command_name snmp_load
command_line /usr/local/nagios/libexec/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3 -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load
}

Actually I want to make this code work How can I do it Looks complicated for me thanx for your replies
 
Old 09-03-2012, 05:08 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by crypt90 View Post
...Looks complicated for me...
That's because it is "new" and that will pass.
The information you need is buried in one of these links below, but you will need to acquire the specifics yourself. Pay special attention to values in
Code:
/usr/share/snmp/snmpd.conf
specifically these:
Code:
rwuser  secretpassword  
rouser  secretpassword  
rocommunity  secretpassword xxx.xxx.171.149 
rwcommunity  secretpassword xxx.xxx.171.149 
com2sec paranoid  default   secretpassword
Get away from the check_whatever stuff for the time being and focus on the basics of snmp, such as
Code:
snmpwalk -v 1 -c public IP .1.3.6.1.4.1.2021.10.1.5.1
snmpwalk -v 1 -c public IP .1.3.6.1.4.1.2021.10.1.5.2
snmpwalk -v 1 -c public IP .1.3.6.1.4.1.2021.10.1.5.3
Where IP is the IPA.DDR.ESS of the server you wish to monitor. Do this on Cacti host.
The above commands are NOT part of the Cacti install. The information you seek using snmp can be gathered with or without Cacti.

I found my solution by reading up some of, or all of these...

SNMP Items with ZABBIX [Zabbix]
HowTos/Cacti on CentOS 4.x - CentOS Wiki
WARNING: Result from SNMP not valid. Partial Result: U
How-To: Monitor your servers with SNMP and Cacti | Debian/Ubuntu Tips & Tricks
Virtual Dave :: snmp/Sample snmpd.conf for cacti use
Snmpd Listen to Specific IP Address ( BIND To Selected Interfaces )
Virtual Dave :: snmp/net-snmp
How do I configure my snmpd.conf on Debian/Ubuntu for Cacti monitoring? - AYKsolutions Forum
Net-SNMP tutorial
Install and configure the Net-SNMP agent for Unix
Net-SNMP
Net-Snmp Tutorial - interfaces
Process Monitoring
Using SNMP and RRDTool on FreeBSD
SNMP Reports How-To
Monitoring with NET-SNMP
Linux SNMP OID’s for CPU,Memory and Disk Statistics
Cacti Net-SNMP *NIX Memory Usage - Template
Monitoring Windows Server 2008 R2 with SNMP and Cacti « Aaron Walrath – Another IT Guy's Meanderings
CentOS 5.6 - snmpd.conf(5)
snmpd(8)
Net-SNMP


and please don't get it twisted, just because it says "Zabbix" or "Cacti" or whatever, they are talking about communicating with a remote host using the snmp basics.

We don't use Cacti any further, (unless someone pays for it) in favor of Zabbix for our c9 internal monitoring.

Good Luck.

Sign up here...http://forums.cacti.net/

Last edited by Habitual; 09-04-2012 at 09:49 AM.
 
2 members found this post helpful.
Old 09-04-2012, 12:25 PM   #6
crypt90
LQ Newbie
 
Registered: Jun 2012
Location: India
Distribution: Redhat and Centos
Posts: 14

Original Poster
Rep: Reputation: 0
Thanx for the replay dude actually very helpful to me this is very confusing have to learn now
Good replay thanx again...
 
Old 09-04-2012, 05:05 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Thank me after you get some info back from snmpwalk
 
1 members found this post helpful.
  


Reply



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 + snmp aeby Linux - Server 3 08-29-2009 11:15 PM
snmp/nagios nataloi Linux - Software 1 04-11-2009 11:20 PM
Nagios and SNMP Deaclen Linux - Software 1 02-28-2007 09:12 AM
Nagios and snmp authentication ebel.velda Linux - Software 1 02-28-2007 09:08 AM
Using SNMP in NAGIOS Bzw Linux - Networking 3 12-06-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration