30.05.2011, 05:47 UTC+2

Sie sind nicht angemeldet.

Nagios startet nach einem "perl-cleaner --reallyall" nicht mehr

cat03

Anfänger

Beiträge: 24

Geburtstag: 04.04.1982 (29)

Geschlecht: Männlich

Beruf: IT-Manager

Anzahl Nagios-Server: 3

Hobbys: Alles rund um Linux

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 67

Anzahl Services: 2000-2500

Betriebssystem(e): Linux, Windows

Plugin-Version(en): 1.4.15

NagVis-Version: 1.4.4

NDO-Version: 1

Sonstige Addon's: Lilac

1

24.05.2011, 14:36

Nagios startet nach einem "perl-cleaner --reallyall" nicht mehr

Hallo Leute

Ich verwende Nagios in Gentoo. Heute hab ich wieder mal ein Update des Systems gemacht, und es wurde Perl auch upgedatet.
dev-lang/perl-5.12.3-r1 <--- [5.12.2-r6]

Beim Perlclean werden 49 Pakete reinstalliert unter anderem auch Nagios. Nach einem Neustart von Nagios funktioniert es nicht mehr. Es sind so viel Fehlermeldung das ich das Problem nicht herausfinden kann. An meiner Config kanns ja normal nicht liegen, hat ja vor dem Reinstall funktioniert. Mir ist auch aufgefallen das im Verzeichnis /etc/nagios/objects/ snd einige Configs hinzugekommen die ich vorher nicht hatte. Aber es war kein Update von Nagios nur ein Reinstall zweck dem Perl. Ich versteh das nicht. Dieses Verzeichnis nach dem Reinstall:

Quellcode

1
2
commands.cfg       contacts.cfg    escalations.cfg  hosts.cfg      printer.cfg     services.cfg  templates.cfg     windows.cfg
contactgroups.cfg  dependencies.cfg  hostgroups.cfg   localhost.cfg  servicegroups.cfg  switch.cfg      timeperiods.cfg

Dazugekommen ist: localhost, printer, switch, templates, windows

Und jetzt kommt diese Mega Fehlermeldung. Ich habs mal getestet. Ist bei allen Nagios-Servern so.

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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/etc/init.d/nagios start

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config directory '/etc/nagios/objects'...
Processing object config file '/etc/nagios/objects/services.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config file '/etc/nagios/objects/printer.cfg'...
Processing object config file '/etc/nagios/objects/switch.cfg'...
Processing object config file '/etc/nagios/objects/hosts.cfg'...
Processing object config file '/etc/nagios/objects/dependencies.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/contactgroups.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/escalations.cfg'...
Processing object config file '/etc/nagios/objects/servicegroups.cfg'...
Processing object config file '/etc/nagios/objects/hostgroups.cfg'...
Processing object config file '/etc/nagios/objects/windows.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Warning: Duplicate definition found for service 'VNC' on host 'sony' (config file '/etc/nagios/objects/services.cfg', starting on line 1868)
Warning: Duplicate definition found for service 'HTTP' on host 'localhost' (config file '/etc/nagios/objects/services.cfg', starting on line 1188)
Warning: Duplicate definition found for service 'SSH' on host 'localhost' (config file '/etc/nagios/objects/services.cfg', starting on line 1110)
Warning: Duplicate definition found for service 'VNC' on host 'adl51' (config file '/etc/nagios/objects/services.cfg', starting on line 3261)
Warning: Duplicate definition found for service 'VNC' on host 'adl52' (config file '/etc/nagios/objects/services.cfg', starting on line 3261)
Warning: Duplicate definition found for service 'VNC' on host 'adl50' (config file '/etc/nagios/objects/services.cfg', starting on line 3261)
Warning: Duplicate definition found for service 'VNC' on host 'seiko' (config file '/etc/nagios/objects/services.cfg', starting on line 3261)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Warning: Service 'Beranekshop Backup aktualitaet' on host 'backuppc'  has a notification interval less than its check interval!  Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning: Service 'Check Raid' on host 'backuppc'  has a notification interval less than its check interval!  Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Error: Contact group 'admins' specified in service 'PING' for host 'hplj2605dn' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Printer Status' for host 'hplj2605dn' is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'linksys-srw224p' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Port 1 Bandwidth Usage' for host 'linksys-srw224p' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Port 1 Link Status' for host 'linksys-srw224p' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Uptime' for host 'linksys-srw224p' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Load' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Festplattenspeicher' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'MYSQL Datenbank Lilac' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'RAM Specherverbrauch' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'SMTP' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Webmin' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'check_ping' for host 'localhost' is not defined anywhere!
Warning: Service 'Festplattenspeicher VMs' on host 'pro'  has a notification interval less than its check interval!  Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Error: Contact group 'admins' specified in service 'C:\ Drive Space' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'CPU Load' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Explorer' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Memory Usage' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'NSClient++ Version' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Uptime' for host 'winserver' is not defined anywhere!
Error: Contact group 'admins' specified in service 'W3SVC' for host 'winserver' is not defined anywhere!
        Checked 198 services.
Checking hosts...
Warning: Host 'APC1' has no services associated with it!
Warning: Host 'Netzwerksteckdose1+9' has no services associated with it!
Warning: Host 'Netzwerksteckdose12+13' has no services associated with it!
Warning: Host 'Netzwerksteckdose2+10' has no services associated with it!
Warning: Host 'Netzwerksteckdose3' has no services associated with it!
Warning: Host 'Netzwerksteckdose4+6' has no services associated with it!
Warning: Host 'Netzwerksteckdose5+11' has no services associated with it!
Warning: Host 'Netzwerksteckdose7+8' has no services associated with it!
Error: Contact group 'admins' specified in host 'hplj2605dn' is not defined anywhere!
Error: Contact group 'admins' specified in host 'linksys-srw224p' is not defined anywhere!
Error: Contact group 'admins' specified in host 'localhost' is not defined anywhere!
Warning: Host 'patchpanel' has no services associated with it!
Error: Contact group 'admins' specified in host 'winserver' is not defined anywhere!
        Checked 44 hosts.
Checking host groups...
        Checked 16 host groups.
Checking service groups...
        Checked 27 service groups.
Checking contacts...
        Checked 2 contacts.
Checking contact groups...
        Checked 2 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 43 commands.
Checking time periods...
        Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 12
Total Errors:   31

***> One or more problems was encountered while running the pre-flight check...

        Check your configuration file(s) to ensure that they contain valid
        directives and data defintions.  If you are upgrading from a previous
        version of Nagios, you should be aware that some variables/definitions
        may have been removed or modified in this version.  Make sure to read
        the HTML documentation regarding the config files, as well as the
        'Whats New' section to find out what has changed.

 * Configuration Error. Please fix your configfile                                                                                                              [ !! ]
 * ERROR: nagios failed to start


lg cat03
JABBER:

husky

Anfänger

Beiträge: 46

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.1, 3.2.3

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 130

Anzahl Services: 230

Betriebssystem(e): Ubuntu 10.04, WinXP

Plugin-Version(en): 1.4.14, 1.4.15

NagVis-Version: 1.5.5

NDO-Version: MKLivestatus 1.1.8

Sonstige Addon's: NagiosQL 3.0.3, NagTrap 0.1.3, Snmptt 1.3, check_mk 1.1.8, check_logfiles 3.4.2.2

2

24.05.2011, 14:53

naja ist doch ganz klar. die config dateien, die hinzugekommen sind, enthalten einfach nur testwerte, dort wird uA ein testrechner definiert mit ein paar checks, usw.
wo hast du deine config dateien abgelegt? diese verzeichnisse musst du wieder von hand in die nagios.cfg eintragen, damit er sie beim start auch beachtet.
spontan würde ich sagen, du kannst die hinzugekommenen dateien löschen, wenn du entsprechendes in deinen configfiles drin hast und sie in der nagios.cfg eingetragen sind.

nachtrag:
wenn dir löschen zu schnell geht, kannste die ja auch auskommentieren in der nagios.cfg, dann beachtet nagios diese files nicht mehr.

cat03

Anfänger

Beiträge: 24

Geburtstag: 04.04.1982 (29)

Geschlecht: Männlich

Beruf: IT-Manager

Anzahl Nagios-Server: 3

Hobbys: Alles rund um Linux

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 67

Anzahl Services: 2000-2500

Betriebssystem(e): Linux, Windows

Plugin-Version(en): 1.4.15

NagVis-Version: 1.4.4

NDO-Version: 1

Sonstige Addon's: Lilac

3

24.05.2011, 16:00

Oh, wow, das ist heavy. Ich dachte nicht das die Configs überschrieben werden. Ähm, sowas hatte ich bisher noch bei keiner Anwendung. Ich mein, nur mal ein Beispiel: Ich update meine VDR, und dann sind alle Aufnahmetimer, Channellists, usw. weg? Das würde ja gar nicht gehen.

Warum wird das bei einer Reinstallation überschrieben? Sieht doch irgendwie nach Bug aus, zumindest für mich.

Nachtrag: Also ich hab jetzt mal bei jedem Server das ganze /etc/nagios zurück gespielt. Funktioniert alles wieder wie vorher. Passiert das jetzt jedes mal wenn Nagios neu gebaut wird? Sämtlich Einstellungen am Thema des Webinterfaces wurden ja auch überspielt, wobei das jetzt fatal ist. Kann ich ja wieder einspielen.

lg
cat03
JABBER:

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »cat03« (24.05.2011, 21:59)


pitchfork

Super Moderator

Beiträge: 14 613

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

4

25.05.2011, 06:20

Zitat von »cat03«

Warum wird das bei einer Reinstallation überschrieben? Sieht doch irgendwie nach Bug aus, zumindest für mich.


Ja, aber keiner von Nagios. Wende dich mal an die Paket Maintainer deiner Distribution!

Man sollte halt immer ein Handtuch dabei haben ( grade heute am 25.5. ) und ein Backup wäre auch nicht schlecht.
PNP Developer.
PNP 0.6.13 ist online !
Fragen zu PNP mit Angabe der verwendeten PNP Version werden bevorzugt beantwortet.
OMD - Open Monitoring Distribution

Wolfgang

Erleuchteter

Beiträge: 5 397

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.1

Icinga-Version(en): Icinga 1.0.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: >70

Anzahl Services: >200

Betriebssystem(e): SLES10

Plugin-Version(en): 1.4.11

Sonstige Addon's: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6

5

25.05.2011, 08:00

Das hört sich danach an, als würde jeweils ein "make install-config" ausgeführt.
Nagios-Doc: Wiki-Format (3.x) oder als (3.0.6)

Icinga-Doc: (de) (en)

PNP-Troubleshooting (de) (en)

cat03

Anfänger

Beiträge: 24

Geburtstag: 04.04.1982 (29)

Geschlecht: Männlich

Beruf: IT-Manager

Anzahl Nagios-Server: 3

Hobbys: Alles rund um Linux

Nagios-Version(en): 3.2.3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 67

Anzahl Services: 2000-2500

Betriebssystem(e): Linux, Windows

Plugin-Version(en): 1.4.15

NagVis-Version: 1.4.4

NDO-Version: 1

Sonstige Addon's: Lilac

6

26.05.2011, 13:53

Ich werde das Abklären, warum hier Beispieldaten eingespielt werden. Es wird ja wohl nicht nur mir so gehen. Ich poste dann das Ergebnis hier.

lg
cat03
JABBER:

Ähnliche Themen