05.05.2011, 04:07 UTC+2

Sie sind nicht angemeldet.

snmptt Problme

hburgfel

Anfänger

Beiträge: 6

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 500

Anzahl Services: 700

Betriebssystem(e): RHEL 5

Plugin-Version(en): 1.4.15

NDO-Version: 1

1

03.05.2011, 09:58

snmptt Problme

Hallo

Ich habe seit kurzem ein Nagios System übernommen und migriere von Centos auf RHEL5

Ich möchte auch snmptraps abfangen. Ich habe die einstellungen wie im Nagios Wiki gemacht und möchte SNMPTT nicht als Deamon nutzen sondern als Standalone.

Wenn ich mir nun ein Trap von einem Ilo Hp port senden lasse passiert aber nichts mit der Datenbank und im Log wird auch nichts erfasst..

Anbei sende ich meine snmptt.conf ,snmptrapd.conf und snmptt.ini

Vielleicht können Sie mir helfen.
»hburgfel« hat folgende Dateien angehängt:
  • snmptrapd.conf.txt (106 Byte - 4 mal heruntergeladen - zuletzt: Gestern, 16:12)
  • snmptt.conf.txt (14,34 kB - 6 mal heruntergeladen - zuletzt: Gestern, 11:48)
  • snmptt.txt (26,7 kB - 5 mal heruntergeladen - zuletzt: Gestern, 16:58)

pitchfork

Super Moderator

Beiträge: 14 496

Geburtstag: 13.06.1971 (39)

Geschlecht: Männlich

Wohnort: Kassel

Beruf: Sysadmin SAP / Linux / AIX

Anzahl Nagios-Server: 2

Hobbys: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios-Version(en): 3.2.1

Icinga-Version(en): ---

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 310

Anzahl Services: 4500

Betriebssystem(e): Debian 5.0 Lenny

Plugin-Version(en): 1.4.x

NagVis-Version: 1.4.1

NDO-Version: ---

IDO-Version: ---

Perfparse-Version: ---

Sonstige Addon's: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk

2

03.05.2011, 10:11

Mit den config Files lässt sich erst mal wenig anfangen. Man kann ja nicht wissen ob sie überhaupt verwendet werden.

1. Läuft der snmptrapd? Testen mit ps -ef und netstat -pln
2. Sind start Meldungen m Syslog zu finden?
3. Mit welchen Optionen wurde der snmptrapd gestartet
PNP Developer.
PNP 0.6.12 ist online !
Fragen zu PNP mit Angabe der verwendeten PNP Version werden bevorzugt beantwortet.
OMD - Open Monitoring Distribution

hburgfel

Anfänger

Beiträge: 6

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 500

Anzahl Services: 700

Betriebssystem(e): RHEL 5

Plugin-Version(en): 1.4.15

NDO-Version: 1

3

03.05.2011, 11:55

Hallo



Net Stat hat folgendes Ergebnis:



Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:963                 0.0.0.0:*                   LISTEN      3325/rpc.statd
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      10702/snmpd
tcp        0      0 127.0.0.1:44296             0.0.0.0:*                   LISTEN      4144/ovconfd
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      3778/mysqld
tcp        0      0 127.0.0.1:52300             0.0.0.0:*                   LISTEN      4142/coda
tcp        0      0 127.0.0.1:47629             0.0.0.0:*                   LISTEN      4115/ovcd
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      3286/portmap
tcp        0      0 0.0.0.0:5555                0.0.0.0:*                   LISTEN      3675/xinetd
tcp        0      0 127.0.0.1:50997             0.0.0.0:*                   LISTEN      4115/ovcd
tcp        0      0 127.0.0.1:44790             0.0.0.0:*                   LISTEN      4218/opcacta
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      3658/cupsd
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      3829/sendmail: acce
tcp        0      0 127.0.0.1:39133             0.0.0.0:*                   LISTEN      4166/opcmsga
tcp        0      0 0.0.0.0:5053                0.0.0.0:*                   LISTEN      3870/ovtrcd
tcp        0      0 0.0.0.0:383                 0.0.0.0:*                   LISTEN      4123/ovbbccb
tcp        0      0 :::993                      :::*                        LISTEN      3323/imap-login
tcp        0      0 :::995                      :::*                        LISTEN      3806/dovecot
tcp        0      0 :::110                      :::*                        LISTEN      3806/dovecot
tcp        0      0 :::143                      :::*                        LISTEN      3323/imap-login
tcp        0      0 :::80                       :::*                        LISTEN      12671/httpd
tcp        0      0 :::22                       :::*                        LISTEN      3645/sshd
tcp        0      0 :::443                      :::*                        LISTEN      12671/httpd
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               10702/snmpd
udp        0      0 0.0.0.0:162                 0.0.0.0:*                               23642/snmptrapd
udp        0      0 0.0.0.0:34219               0.0.0.0:*                               4008/avahi-daemon:
udp        0      0 0.0.0.0:957                 0.0.0.0:*                               3325/rpc.statd
udp        0      0 0.0.0.0:960                 0.0.0.0:*                               3325/rpc.statd
udp        0      0 0.0.0.0:5353                0.0.0.0:*                               4008/avahi-daemon:
udp        0      0 0.0.0.0:111                 0.0.0.0:*                               3286/portmap
udp        0      0 0.0.0.0:631                 0.0.0.0:*                               3658/cupsd
udp        0      0 0.0.0.0:55034               0.0.0.0:*                               4166/opcmsga
udp        0      0 2.144.10.103:123            0.0.0.0:*                               3691/ntpd
udp        0      0 127.0.0.1:123               0.0.0.0:*                               3691/ntpd
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               3691/ntpd
udp        0      0 :::39334                    :::*                                    4008/avahi-daemon:
udp        0      0 :::5353                     :::*                                    4008/avahi-daemon:
udp        0      0 ::1:123                     :::*                                    3691/ntpd
udp        0      0 fe80::250:56ff:fea3:17a:123 :::*                                    3691/ntpd
udp        0      0 :::123                      :::*                                    3691/ntpd
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28075/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28055/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28051/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28047/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28043/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28039/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28035/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28031/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28027/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28023/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28019/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28015/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28011/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28007/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           28003/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27999/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27995/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27991/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27987/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27983/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27979/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27975/ping
raw        0      0 0.0.0.0:1                   0.0.0.0:*                   7           27971/ping
raw     6768      0 0.0.0.0:1                   0.0.0.0:*                   7           4166/opcmsga
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     12076  3926/xfs            /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     8601   2928/iscsid         CT_NAMESPACE
unix  2      [ ACC ]     STREAM     LISTENING     12549  4016/gam_server     @/tmp/fam-root-
unix  2      [ ACC ]     STREAM     LISTENING     12138  3939/winbindd       /var/cache/samba/winbindd_privileged/pipe
unix  2      [ ACC ]     STREAM     LISTENING     8937   3144/audispd        /var/run/audispd_events
unix  2      [ ACC ]     STREAM     LISTENING     9515   3381/dbus-daemon    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     9607   3410/sdpd           /var/run/sdp
unix  2      [ ACC ]     STREAM     LISTENING     9748   3478/pcscd          /var/run/pcscd.comm
unix  2      [ ACC ]     STREAM     LISTENING     9781   3492/acpid          /var/run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     11472  3658/cupsd          /var/run/cups/cups.sock
unix  2      [ ACC ]     STREAM     LISTENING     11729  3806/dovecot        /var/run/dovecot/dict-server
unix  2      [ ACC ]     STREAM     LISTENING     11732  3806/dovecot        /var/run/dovecot/login/default
unix  2      [ ACC ]     STREAM     LISTENING     11737  3806/dovecot        /var/run/dovecot/auth-worker.3809
unix  2      [ ACC ]     STREAM     LISTENING     12136  3939/winbindd       /var/run/winbindd/pipe
unix  2      [ ACC ]     STREAM     LISTENING     12522  4008/avahi-daemon:  /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     8572   2915/brcm_iscsiuio  RACT_NAMESPACE
unix  2      [ ACC ]     STREAM     LISTENING     12586  4031/ndo2db         /opt/nagios/var/ndo.sock
unix  2      [ ACC ]     STREAM     LISTENING     11892  3851/gpm            /dev/gpmctl
unix  2      [ ACC ]     STREAM     LISTENING     11681  3778/mysqld         /var/lib/mysql/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     9814   3506/hald           @/var/run/hald/dbus-ch7kNxh7oO
unix  2      [ ACC ]     STREAM     LISTENING     9815   3506/hald           @/var/run/hald/dbus-GFs65C2aAZ


Das ergibt ps -ef | grep snmptrapd

Quellcode

1
root     23642     1  0 May02 ?        00:00:00 /usr/sbin/snmptrapd -Lsd -p /var/run/snmptrapd.pid




den snmptrapd habe ich einfach über chkconfig snmptrapd on und den service gestartet.



Muss ich hier noch mehr angeben?

bern

Profi

Beiträge: 1 355

Anzahl Nagios-Server: 2-5

Nagios-Version(en): 1-3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 80-200

Anzahl Services: 1400-2000

Betriebssystem(e): Linux

Plugin-Version(en): Whatever I can download, patch, or cobble together myself :-)

Sonstige Addon's: n2rrd, PNP, livestatus

4

03.05.2011, 15:14

Dürfen die Traps denn auch vom Kabel auf den Host ... ?

Quellcode

1
iptables -n -v -L

hburgfel

Anfänger

Beiträge: 6

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 500

Anzahl Services: 700

Betriebssystem(e): RHEL 5

Plugin-Version(en): 1.4.15

NDO-Version: 1

5

Gestern, 08:22

Guten Morgen

Das ergebnist von iptables -n -v -L ist





Quellcode

1
2
3
4
5
6
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

bern

Profi

Beiträge: 1 355

Anzahl Nagios-Server: 2-5

Nagios-Version(en): 1-3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 80-200

Anzahl Services: 1400-2000

Betriebssystem(e): Linux

Plugin-Version(en): Whatever I can download, patch, or cobble together myself :-)

Sonstige Addon's: n2rrd, PNP, livestatus

6

Gestern, 09:57

Hm. Also Traps dürfen 'rein, snmptrapd läuft, lauscht auf 0.0.0.0, gibt weiter an snmptt, der weiter an MySQL, mysqld läuft, lauscht auch auf 0.0.0.0, außerdem sind im snmptt extra Logfiles und unknown Traps eingeschaltet. Sieht, soweit meine (begrenzte) Erfahrung reicht, eigentlich gut aus und selbst wenn die MySQL nicht will (falsches Paßwort o.ä.), sollten snmptt's eigene Logfiles Aktivität mitbekommen ...

Kommen die Traps auch durchs LAN (?) bis zum Nagios hin?

Quellcode

1
2
ifconfig | grep -B 2 -A 7 "inet .*$OFFIZIELLE_IP "
tcpdump -i any -n -p udp port snmptrap and host $OFFIZIELLE_IP

pitchfork

Super Moderator

Beiträge: 14 496

Geburtstag: 13.06.1971 (39)

Geschlecht: Männlich

Wohnort: Kassel

Beruf: Sysadmin SAP / Linux / AIX

Anzahl Nagios-Server: 2

Hobbys: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios-Version(en): 3.2.1

Icinga-Version(en): ---

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 310

Anzahl Services: 4500

Betriebssystem(e): Debian 5.0 Lenny

Plugin-Version(en): 1.4.x

NagVis-Version: 1.4.1

NDO-Version: ---

IDO-Version: ---

Perfparse-Version: ---

Sonstige Addon's: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk

7

Gestern, 10:02

und nicht zu vergessen snmptrapd loggt via syslog ( Option -Ls )
Wenn also keine Trap geloggt wird, ist auch keiner angekommen.
PNP Developer.
PNP 0.6.12 ist online !
Fragen zu PNP mit Angabe der verwendeten PNP Version werden bevorzugt beantwortet.
OMD - Open Monitoring Distribution

Ähnliche Themen