|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Multimedia Questions about media applications, codecs (DVD, music, video, pdf) configuration (usage, bugs) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hello,
i would like to do any trapsnmp with nagios on opensuse, but i've a problem with the configuration. i'm reading tutorial about trapsnmp and they tell me to configure the snmptrapd.conf file on /etc/init.d/snmptrapd.conf and put that in "OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid", but i don't have this file on my suse. i just have snmpd.conf must i used snmpd.conf ? if yes could you tell me how i must include this line "OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"" SNMPD.conf Quote:
|
|
|||
|
yes i 've created this file
Quote:
Quote:
|
|
||||
|
Quote:
Have you manually started snmptrapd from the command line to see if it's working ok? (you may want to enable logging to start with) Code:
snmptrapd& Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default up 12:51, 2 users, load average: 0.07, 0.02, 0.00 GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14 |
|
|||
|
when i do snmptrapd& i've that :
linux-fxqr:/var/log # snmptrapd& [11] 21832 what can i do now lol |
|
||||
|
Quote:
So if you use ps -ef you see the process running ok? Have you tried sending a test trap and see if it's detected? eg; Code:
snmptrap -v 2c -m ALL -c public localhost '' coldStart Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default up 14:49, 3 users, load average: 0.22, 0.10, 0.02 GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14 |
|
|||
|
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 Quote:
My SNMP.conf Quote:
------- 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 |
|
||||
|
Quote:
Don't think you have configured up snmpd.conf quite correctly. To start just run as root user; Code:
snmpconf -g basic_setup 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 |
|
|||
|
Thanks for the help malcolmlewis
in my /etc/snmp/ i've snmpd.conf and snmptrapd.conf Snmpd.conf # Please see /usr/share/doc/packages/net-snmp/EXAMPLE.conf for a # more complete example and snmpd.conf(5). # # Writing is disabled by default for security reasons. If you'd like # to enable it uncomment the rwcommunity line and change the community # name to something nominally secure (keeping in mind that this is # transmitted in clear text). # don't use ' < > in strings for syslocation or syscontact # Note that if you define the following here you won't be able to change # them with snmpset syslocation salleserver syscontact Sysadmin (root@localhost) # These really aren't meant for production use. They include all MIBS # and can use considerable resources. See snmpd.conf(5) for information # on setting up groups and limiting MIBS. rocommunity test 127.0.0.1 rocommunity test 192.168.20.16 # rwcommunity mysecret 127.0.0.1 and snmptrapd.conf traphandle default /usr/sbin/snmptt disableAuthorization yes donotlogtraps yes i'm going to test with on my hp procurve, i tell you what |
|
|||
|
hi,
i would like to put that in my nagios file configuration : Quote:
Quote:
|
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|