LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 01: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, 11:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,251

Rep: Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432
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, 07:14 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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, 8 views)
File Type: txt egp_check_snmp_disks.pl.txt (10.9 KB, 8 views)
 
Old 09-03-2012, 03: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, 06:08 PM   #5
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

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 10:49 AM.
 
2 members found this post helpful.
Old 09-04-2012, 01: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, 06:05 PM   #7
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

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


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios + snmp aeby Linux - Server 3 08-30-2009 12:15 AM
snmp/nagios nataloi Linux - Software 1 04-12-2009 12:20 AM
Nagios and SNMP Deaclen Linux - Software 1 02-28-2007 10:12 AM
Nagios and snmp authentication ebel.velda Linux - Software 1 02-28-2007 10:08 AM
Using SNMP in NAGIOS Bzw Linux - Networking 3 12-06-2004 08:13 AM

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

All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration