LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-06-2014, 01:57 AM   #1
nazir1985
LQ Newbie
 
Registered: Aug 2014
Posts: 7

Rep: Reputation: Disabled
Please Help in SNMP for RedHat 6.3


Dears,
I Have Configured correct configuration on in snmpd.conf file and also the snmpd service is running, but my monitoring software cannot connect to the server, i have checked the Community String and it's correct, but cannot connect please help me dears to figure out what is the problem??

[root@newmed snmp]# service snmpd status
snmpd (pid 3161) is running...
[root@newmed snmp]# ps -ef | grep snmp
root 3161 1 0 09:24 ? 00:00:00 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid
root 3258 3075 0 09:53 pts/0 00:00:00 grep snmp
[root@newmed snmp]#
 
Old 08-06-2014, 05:34 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
What about the firewall aka iptables .. ?
Code:
iptables -nvL
 
Old 08-06-2014, 05:37 AM   #3
nazir1985
LQ Newbie
 
Registered: Aug 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
What about the firewall aka iptables .. ?
Code:
iptables -nvL
Dear thank you for your reply,
Below is the Output for iptables command:

[root@newmed ~]# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
4603 371K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
10 720 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
1 60 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
4 208 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
69 7380 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT 4215 packets, 561K bytes)
pkts bytes target prot opt in out source destination
[root@newmed ~]#
 
Old 08-06-2014, 06:31 AM   #4
nazir1985
LQ Newbie
 
Registered: Aug 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you chrism01, Already solved.

Thank you chrism01,
i already solved the issue by deleting the reject all line by using the below command:
iptables -L INPUT --line-numbers
iptables -D INPUT (Line No. to be Deleted)

now the monitoring software can connect the server,
but is it correct to delete the reject line??

69 7380 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
 
  


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
Assistance with SNMP on Redhat/CentOS stuaz Linux - Newbie 2 12-11-2008 09:46 AM
Net-Snmp on RedHat Linux 4 WS Faiza Linux - Newbie 1 12-07-2006 01:47 PM
snmp on redhat linux csross Linux - Networking 1 03-17-2006 10:51 AM
how to enable snmp on redhat box sixth_sense Linux - Networking 2 06-07-2004 02:55 AM
Can anybody help me about snmp get on the Redhat Linux,Thanks. ramon_ok Linux - Networking 0 04-12-2004 10:59 PM

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

All times are GMT -5. The time now is 10:18 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