Monday, May 20th 2013, 2:47pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

Timozj

Beginner

Posts: 38

Number of monitoring servers: 1

Nagios Version: 2.7

OS: Suse Linux 9.3

Plugin Version: 1.4.8

1

Tuesday, April 17th 2007, 9:53am

Frage zu SNMPTT

Halli Hallo ;),
und zwar hab ich mal eine Frage zur Installation von SNMPTT. Ich bin grade dabei alles zu installieren und bin auf eine Frage gestoßen. Habe die Installation laut der Anleitung weitestgehend durchgeführt. Muss jetzt laut Installationsanleitung folgende Befehle ausführen:

Source code

1
2
3
4
5
6
7
Add the service using chkconfig:

chkconfig --add snmptt

Configure the service to start at runlevel 2345:

chkconfig --level 2345 snmptt on


Da kommt bei mir die Ausgabe:

Source code

1
2
snmptt: unknown service
snmptt: not a runlevel service


Über einen Lösungshinweis würde ich mich sehr freuen.

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

2

Tuesday, April 17th 2007, 10:57am

Die Befehle dienen dazu, den Service zur init.d hinzuzufügen.

Das kann aber von Distro zu Distro unterschiedlich sein.
In deinem Fall (SuSe) solltest du das start/init.d Script nach /etc/init.d kopieren und dann über Yast den Runlevel editor aufrufen und snmptt als "autostart aktiv" makieren.

Verstanden worauf ich hinaus will? ?(

Mfg Ca
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

Timozj

Beginner

Posts: 38

Number of monitoring servers: 1

Nagios Version: 2.7

OS: Suse Linux 9.3

Plugin Version: 1.4.8

3

Tuesday, April 17th 2007, 11:29am

Danke erstmal für die Antwort,
bekomme leider diese Fehlermeldung:

Source code

1
2
3
/etc/init.d/snmptt start gab 127 (Fehler nicht spezifiziert) zurück:
/etc/init.d/snmptt: line 13: /etc/init.d/functions: Datei oder Verzeichnis nicht gefunden
Starting snmptt: /etc/init.d/snmptt: line 21: daemon: command not found


Gruß Timo

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

4

Tuesday, April 17th 2007, 11:37am

Edit;

Wie sieht dein init.d script aus?

Du kannst das Script anpassen und statt der functions die /etc/rc.status benutzen.
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

This post has been edited 1 times, last edit by "Asa" (Apr 17th 2007, 11:38am)


Timozj

Beginner

Posts: 38

Number of monitoring servers: 1

Nagios Version: 2.7

OS: Suse Linux 9.3

Plugin Version: 1.4.8

5

Tuesday, April 17th 2007, 11:53am

Also ich habe die Datei "snmptt-init.d" in das Verzeichnis "etc/init.d" kopiert und in "snmptt" umbenannt. In meinem "ect" Verzeichnis befindet sich ein Ordner "rc.d", der allerdings nur eine Verknüpfung auf das "init.d" Verzeichnis ist....

Hier der Code:

Source code

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
#!/bin/bash
# init file for snmptt
# Alex Burger - 8/29/02
# 	      - 9/8/03 - Added snmptt.pid support to Stop function
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Daemon
#
# processname: /usr/sbin/snmptt
# pidfile: /var/run/snmptt.pid

# source function library
. /etc/init.d/functions

OPTIONS="--daemon"
RETVAL=0
prog="snmptt"

start() {
	echo -n $"Starting $prog: "
        daemon /usr/sbin/snmptt $OPTIONS
	RETVAL=$?
	echo
	touch /var/lock/subsys/snmptt
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc /usr/sbin/snmptt 2>/dev/null
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/snmptt
	if test -f /var/run/snmptt.pid ; then
	  [ $RETVAL -eq 0 ] && rm -f /var/run/snmptt.pid
	fi
	return $RETVAL
}

reload(){
        echo -n $"Reloading config file: "
        killproc snmptt -HUP
        RETVAL=$?
        echo
        return $RETVAL
}

restart(){
	stop
	start
}

condrestart(){
    [ -e /var/lock/subsys/snmptt ] && restart
    return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	restart
        ;;
  reload)
	reload
        ;;
  condrestart)
	condrestart
	;;
  status)
        status snmptt
	RETVAL=$?
        ;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|reload}"
	RETVAL=1
esac

exit $RETVAL

Timozj

Beginner

Posts: 38

Number of monitoring servers: 1

Nagios Version: 2.7

OS: Suse Linux 9.3

Plugin Version: 1.4.8

6

Tuesday, April 17th 2007, 12:04pm

wie krieg ich das denn hier gelöscht :D ? will das nicht editieren

This post has been edited 3 times, last edit by "Timozj" (Apr 17th 2007, 12:12pm)


Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

7

Tuesday, April 17th 2007, 12:17pm

was versuchst du da?

Im Normalfall soll/darf/muss snmptt NICHT als daemon laufen (das macht das init-script).

Les dir doch mal den Artikel im Wiki durch, der snmptrapd sollte dauerhaft laufen, die traps entgegen nehmen, und dann per handler an snmptt weitergeben.
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

Timozj

Beginner

Posts: 38

Number of monitoring servers: 1

Nagios Version: 2.7

OS: Suse Linux 9.3

Plugin Version: 1.4.8

8

Tuesday, April 17th 2007, 12:21pm

mein Problem ist glaub ich, dass ich keine Ahnung hab was überhaupt der Deamon-Mode ist .... Den Artikel im Wiki kann ich glaub ich schon auswendig :D. Aber wie bekomm ich denn diesen doofen Fehler weg ?

LG Timo

PS: Ich hatte versucht eine Antwort zu löschen, aber irgendwie geht das wohl nicht ;)

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

9

Wednesday, May 9th 2007, 3:54pm

Hallo,

habe das gleiche SLES9 Problem.

Wenn ich snmptt manuell aufrufe über > snmptt start bleibt er beim laden der snmptt.ini stehen "Config file /etc/snmptt.ini loaded"

Über den RunLevelEditor kann ich es auch nicht starten gleiche Meldung wie oben.

Meine Mysql DB ist auch noch leer

Wer hat eine Lösung ?

MFG qhgerm

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

10

Wednesday, May 9th 2007, 4:15pm

Hallo,

bin jetzt einen Schritt weitergekommen.

Nun hängt es beim Zugriff auf die DB

Config file /etc/snmptt.ini loaded
DBI connect('database=snmptt;host=localhost;
port=3306','root ',...) failed: Access denied for user 'root '@'localhost' (using password: YES) at /usr/sbin/snmptt line 5289
MySQL error: Unable to connect to database: Access denied for user 'root '@'localhost' (using password: YES)

Was könnte ich hier noch prüfen ?

MFG qhgerm

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

11

Thursday, May 10th 2007, 11:34am

Guck dir deine Fehlermeldung mal an.

Der Username der verwendet wird ist 'root_', du hast in der snmptt.ini hinter dem "snmpttuser=root" noch ein leerzeichen zuviel.
Mach das weg und probiers erneut

Mfg Carsten,
der sich gerade aus dem Urlaub wieder meldet =)
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

12

Thursday, May 10th 2007, 1:44pm

Hi Asa,

und schönen Urlaub gehabt. Auf was man alles achten muss in den config dateien ;-)

Dachte eigentlich ich hätte mein erstes Problem gelöst ist aber nicht der Fall. Jetzt bleibt er wieder Config file /etc/snmptt.ini loaded stehen.

Außerdem mag meine /etc/snmptrapd.conf dieses hier nicht:

Wiki Auszug: "echo "traphandle default /usr/local/sbin/snmptt" > /etc/snmptrapd.confDer Eintrag “traphandle default” bedeutet, dass jeder eingehende Trap an den snmptt übergeben wird.

Ab NET-SNMP Version 3.0x muss als erste Zeile noch der Eintrag “disableAuthorization yes” in “/etc/snmptrapd.conf” eingefügt werden. Anderenfalls werden per default alle eingehenden Traps abgelehnt(mangels Autorisierung).
— crocodile 2006/12/23 17:29

Jetzt kann der snmptrapd testweise gestartet werden. snmptrapd -On -C -c /etc/snmptrapd.conf

Habe es so reingeschrieben:
disableAuthorization yes
traphandle default /usr/local/sbin/snmptt > /etc/snmptrapd.conf

Zudem habe ich unter /usr/local/sbin/ kein snmptt File

Bekomme dann folgenden Fehler:
/etc/snmptrapd.conf: line 1: Warning: Unknown token: disableAuthorization.

Das Thema SNMPTT kostet mich echt nerven und ich bin kurz davor aufzugeben ;(

MFG qhgerm

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

13

Thursday, May 10th 2007, 4:42pm

Jo, wie Urlaub so ist :-)

Naja, nicht aufgeben, du ist doch fast am Ziel.

Wenn du SLES9 benutzt, beachte das hier

Nun, deine Probleme der Reihe nach...

erstmal lösch deine /etc/snmptrapd.conf.
Dann leg eine neue mit dem Inhalt hier an:

Source code

1
2
disableAuthorization Yes
traphandle default /usr/sbin/snmptt


Wenn du beim starten den Fehler

Quoted

/etc/snmptrapd.conf: line 1: Warning: Unknown token: disableAuthorization.

kriegst, kannst du die erste Zeile in der /etc/snmptrapd.conf wieder löschen, der wird dann nicht benötigt.

Wenn du unter /usr/local/sbin/ kein snmptt hast, dann guck halt mit folgendem Befehl wo dein snmptt liegt:

Source code

1
which snmptt

Ggf. musst du dann noch den Pfad (s.o.) in der /etc/snmptrapd.conf anpassen.

Übrigens, das er bei "Loading Config file /etc/snmptt.ini" stehen bleibt ist ganz normal.
Mehr wird da nicht kommen - was auch?
snmptt lauscht später ja nicht als Dienst, sondern wird direkt von snmptrapd aufgerufen und kriegt dann seinen "Input" (den SNMP-Trap).

Wichtig ist, das er beim starten von snmptt von Hand (so wie du es gerade Testweise machst) keine Fehlermeldungen gibt.
Ist das der Fall, kannst du snmptt wieder beenden (wozu soll es denn laufen?).

Grundvoraussetzung für die Installation ist erstmal, das du überhaupt die Verfahrensweise des Gesamten SNMP-Trap Systems verstehst.
Ist ähnlich wie beim Auto - wenn du nicht weisst, wie es vom Ablauf her funktioniert kannst du es auch nicht reparieren :)

Mfg Ca
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

14

Friday, May 11th 2007, 4:31pm

THX für den Tip mit dem NET-SNMP 5.1

Ich bin grad dabei das NET-SNMP5.4 zu kompilieren.

Ist doch richtig das das mit den Perl Modulen kompiliert wird oder ?
./configure --with-perl-modules

Echt geiles Forum hier. Ohne die Hilfe die man hier bekommt, wäre es nahezu unmöglich als unerfahrener so etwas auf die Reihe zu kriegen. THX

MFG qhgerm

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

15

Friday, May 11th 2007, 4:37pm

Perl module musste net angeben, die kannste auch später über cpan installieren :baby:
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

16

Friday, May 11th 2007, 4:50pm

So bin mit der Installation durch. Jetzt funktionieren meine SNMP abfragen in Nagios natürlich nicht mehr. Die check_perc.pl und so.

Was muss ich denn nun alles und wo konfigurieren damit meine neue Version von NET-SNMP vernünftig lüppt ?

Hatte vorher das RPM von SLES installiert was natürlich ein bisschen einfacher ablief

Hat das schon einer gemacht der mir ein paar Infos geben kann.

Ich danke euch

MFG qhgerm

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

17

Monday, May 14th 2007, 9:09am

> snmptrapd
No log handling enabled - turning on stderr logging
Warning: no access control information configured.
This receiver will *NOT* accept any incoming notifications.

Anbei meine Fehlermeldung

MFG qhgerm

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

18

Monday, May 14th 2007, 9:38am

Zu den perl-modulen:

Installier mal über cpan das Paket hier.

Zu deinem snmptrapd-Problem:
Hast du denn die Konfiguration bereits durchgearbeitet und den Daemon auch mit Parametern gestartet?

Mfg Carsten
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.

qhgerm

Beginner

Posts: 50

Birthday: Feb 13th

Gender: male

Location: Deutschland

Occupation: MCSE

Number of monitoring servers: 1

Hobbies: Linux, Nagios

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >110

Number of services: >250

OS: SLES 10

Plugin Version: 1.4.12

NagVis Version: 1.4

NDO Version: 1.4b7

Perfparse Version: pnp-0.4.10

Other Addons: NSClient++0.2.6, SMS_client2.0.9a, NET-SNMP-5.3.0.1, PHP5

19

Monday, May 14th 2007, 10:03am

Hi,

wo finde ich denn eine HowTo oder sowas ? Habe noch keine config angepasst

MFG qhgerm

Asa

Professional

Posts: 877

Gender: male

Location: Oldenburg

Occupation: Angestellter

Number of monitoring servers: 3

Hobbies: Technik aller Art

Nagios Version: n/a

Icinga Version: 1.7.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~1000

Number of services: ~10000

OS: SLES11

Plugin Version: 1.4.13

Other Addons: NagTrap, SNMPTT, Lilac, PNP, Thruk und mehr ;-)

20

Monday, May 14th 2007, 10:10am

im Wiki ist doch alles ganz gut beschrieben, ansonsten brauchste nurnoch die snmptt.ini nach bestem Wissen und Gewissen anzupassen
NSClient++ Fan

Zitat von »http://twitter.com/motherofnagios«

There is a "Nagios Workshop" in Germany. Not sure if this is compliant with our trademark policy.