Thread: Trapsnmp nagios
View Single Post
  #8 (permalink)  
Old 23-Jun-2009, 08:25
malcolmlewis's Avatar
malcolmlewis malcolmlewis is online now
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,684
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Trapsnmp nagios

Quote:
Originally Posted by ophicius
yes,

linux-fxqr:/var/log # ps -ef | grep snmptrapd
root 21833 1 0 08:56 ? 00:00:00 snmptrapd


but when i do :

snmptrap -v 1 -m ALL -c loiuc localhost '' coldStart


i've

> linux-fxqr:/var/log # snmptrap -v 1 -c loiuc localhost '' coldStart
> /etc/snmp/snmp.conf: line 6: Warning: Unknown token: com2sec.
> /etc/snmp/snmp.conf: line 13: Warning: Unknown token: group.
> /etc/snmp/snmp.conf: line 18: Warning: Unknown token: view.
> /etc/snmp/snmp.conf: line 22: Warning: Unknown token: access.
> unknown host: coldStart



My SNMP.conf
> com2sec Local 192.168.77.0/24 loiuc
> group rogroup v1 Local
> view all included .1 80
> access rogroup "" v1 noauth
> exact all none none



-------
but about snmptrap, how can i do to restart .. because snmptrapd& isn't
really good, why i do not have this file on /init.d/... only snmpd...
thanks
Hi
Don't think you have configured up snmpd.conf quite correctly. To start
just run as root user;

Code:
snmpconf -g basic_setup
The startup file is not in /etc/init.d by default, to add run the
following;

Code:
sudo
cp /usr/share/doc/packages/net-snmp/rc.snmptrapd /etc/init.d/snmptrapd
sudo chmod 755 /etc/init.d/snmptrapd
sudo /sbin/chkconfig snmptrapd on
--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 1 day 9:55, 2 users, load average: 0.08, 0.09, 0.03
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

Reply With Quote