LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-28-2007, 06:44 AM   #1
sachin1361
Member
 
Registered: Feb 2007
Posts: 126

Rep: Reputation: 15
nagions and snmp


I am using RHEL-5 with nagios latest version. I want to monitor sendmail queue which is on host2 ,through nagios(host1).
Below is what I did and at last getting some error.Please check where I am missing.


[mf1@host2 ~]$ file `which mailq`
/usr/bin/mailq: symbolic link to /etc/alternatives/mta-mailq

[mf1@host2 ~]$ /usr/local/nagios/libexec/check_mailq -w2 -c4 -t7
ok: mailq (1)is below threshold (2/4)unsent=1;2;3;0

[mf1@host2 ~]$ grep mailq /etc/snmp/snmpd.conf
exec .1.3.6.1.4.1.2021.53 mailq-check /usr/local/nagios/libexec/check_mailq -w2 -c4 -t7

[mf1@host1 ~]$ snmpget -v 2c host2 -c community .1.3.6.1.4.1.2021.53
timeout: No response from host2
 
Old 12-01-2007, 05:56 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sachin1361 View Post
timeout: No response from host2
What does the SNMP daemon log say on host2?
 
Old 12-02-2007, 03:52 AM   #3
elcody02
Member
 
Registered: Jun 2007
Posts: 52

Rep: Reputation: 17
You might also want to investigate on the ACL/VACM config. From the few information given it could possibly be that host1 is not allowed to query the oid on host2.

Normally ACLs/VACM is explained on top of the provided /etc/snmp/snmpd.conf. And by default RHEL disables most oid queries.

Last edited by elcody02; 12-02-2007 at 03:53 AM.
 
Old 12-04-2007, 03:03 PM   #4
tquinn1
LQ Newbie
 
Registered: May 2006
Posts: 19

Rep: Reputation: 1
As you are not getting a reply from the other host, and not an unknown OID error, check your firewall on both sides to make sure that is not blocking (tracepath is a good tool for this as well). Often when I am not getting an error having to do with the OID or authentication, the problem is with either the firewall or services. Make sure your snmp daemon is running, and you might want to run the check local on host2 to see if it works locally first.

The other suggestions are also something to always keep in the back of your mind. It is true that a lot of distros ship a "crippled" version of SNMP as a security measure. Anything potentially harmful is disabled, and it is up to the administrator to understand how to enable the functionality and authentication. Due to the potential for disaster if somebody got RW access via SNMP I think that the added work is a great idea. Keeps you from accidentally throwing the switch unless you know what you are doing.

$.02
 
  


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
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
snmp help fssengg Programming 2 03-05-2005 05:15 AM
Snmp onewhoknows Linux - Networking 0 05-14-2004 09:21 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:40 PM.

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