Re: snmp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Firewall?

On Jan 16, 2008 4:21 AM, Mad Unix <madunix@xxxxxxxxx> wrote:

> [root@linux1 ~]# service snmpd restart
> Stopping snmpd: [  OK  ]
> Starting snmpd: [  OK  ]
>
> vi /etc/snmp/snmpd.conf
>
> rocommunity secret
> #agentaddress 10.5.1.31:161
> #rocommunity public 127.0.0.1
> #rocommunity public 10.5.1.31
> #agentaddress 10.20.30.40:10000
> #agentaddress tcp:161
> #syslocation Bat. C2
> #syscontact someone@xxxxxxxxxxxxx
> #dontPrintUnits true
> #includeAllDisks
> #disk /
> #proc httpd
>
> [root@linux1 ~]# snmpwalk -v 1 -c secret localhost .1.3.6.1.2.1.1.1.0
> SNMPv2-MIB::sysDescr.0 = STRING: Linux linux1.sdc.lan 2.6.18-53.1.4.el5 #1
> SMP Wed Nov 14 10:37:27 EST 2007 x86_64
> [root@linux1 ~]#
>
>
> whith this above configuration the snmpwalk works on the localhost, but
> when
> i try to run it on the main server linux2
> to collect snmp from the linux1, it wont work
>
> [root@linux2 cli]# snmpwalk -v 1 -c secret 10.5.1.31 .1.3.6.1.2.1.1.1.0
> Timeout: No Response from 10.5.1.31
> [root@linux2 cli]# telnet 10.5.1.31 161
> Trying 10.5.1.31...
> telnet: connect to address 10.5.1.31: Connection refused
> telnet: Unable to connect to remote host: Connection refused
>
> any help
>
>
> On Jan 15, 2008 10:11 PM, Roderick Derks <redhat@xxxxxx> wrote:
>
> > These are valid options:
> >
> > rwcommunity  username  127.0.0.1
> > rwcommunity  username 192.168.0.1
> > rocommunity  public 0.0.0.0
> > trapcommunity public
> > trapsink 192.168.0.1 public
> > syscontact  NAME_OF_CONTACT
> > syslocation  LOCATION
> >
> > Grtz,
> > Roderick
> >
> >
> > ----- Original Message -----
> > From: "Mad Unix" <madunix@xxxxxxxxx>
> > To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
> > Sent: Tuesday, January 15, 2008 6:30:43 PM (GMT+0100) Europe/Berlin
> > Subject: snmp
> >
> > I have installed snmp on my RHEL5, how can i aaply my community
> > "name_of_comunity" inside the snmpd.conf
> >
> > [root@linux2 cli]# chkconfig --list | grep snmp
> > snmpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
> > snmptrapd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
> > [root@linux2 cli]# locate snmpd.conf
> > /etc/snmp/snmpd.conf
> >
> >
> >
> > --
> > madunix
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
>
>
>
> --
> madunix
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
Romeo Theriault
System Administrator
Information Technology Services
Ph#: 207-561-3517
Em@: romeo.theriault@xxxxxxxxx
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux