Saturday, May 25th 2013, 7:39pm UTC+2

You are not logged in.

  • Login
  • Register

Saschaib

Beginner

Posts: 3

Number of monitoring servers: 1

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 30

Number of services: 200

OS: CentOS, freebsd, WinXP, Win2k8, openfiler

Plugin Version: 1.14.13

NDO Version: 1

1

Wednesday, February 11th 2009, 9:27pm

[solved] - Nagios startet nicht mehr nach Nagios::Plugin installation

Hallo zusammen,

ich wollte unseren Nagios updaten und zwar mit CentOS und dem Installationspaket von DAG über yum
hat soweit auch alle gut funktioniert:
- yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel
- alte Konfiguration übernommen
- zusätzliche Plugins übernommen

alles fein soweit - jetzt habe ich aber noch den MessPC, der über das Plugin check_pcmeasure2.pl abgefragt wird.
Wenn ich dieses Plugin ausführe bekomme ich die Fehlermeldung (hab es grad nicht mehr vorliegen, lässt sich aber ggf. morgen nochmal herausbekommen), dass irgendwas .pm fehlt. Hab dazu recheriert und festgestellt, dass wohl das Nagios::Plugin von perl nicht installiert sei.

nun hab ich das Plugin installiert mit:

- perl -MCPAN -e 'install Nagios::Plugin'

SUPER -> das Plugin check_pcmeasure2.pl läuft wunderbar.
ABER mein nagios lässt sich nicht mehr starten:

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
[root@nagios03 ~]# /usr/bin/nagios -v /etc/nagios/nagios.cfg                    
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
        Checked 138 services.
Checking hosts...
Warning: Host 'sfeuerwand' has no services associated with it!
        Checked 28 hosts.
Checking host groups...
        Checked 13 host groups.
Checking service groups...
        Checked 7 service groups.
Checking contacts...
        Checked 4 contacts.
Checking contact groups...
        Checked 1 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 28 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: 1
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
[root@nagios03 ~]# service nagios restart
Running configuration check... CONFIG ERROR!  Restart aborted.  Check your Nagios configuration.


Da mir die überprüfung der Konfiguration keine Fehlermeldung zurückgibt bin ich etwas ratlos. Könnte es daran liegen, dass die YUM-Pakete nicht mit --enable-embedded-perl erstellt wurden? In der nagios.cfg steht allerding:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# EMBEDDED PERL INTERPRETER OPTION
# This option determines whether or not the embedded Perl interpreter
# will be enabled during runtime.  This option has no effect if Nagios
# has not been compiled with support for embedded Perl.
# Values: 0 = disable interpreter, 1 = enable interpreter

enable_embedded_perl=1



# EMBEDDED PERL USAGE OPTION
# This option determines whether or not Nagios will process Perl plugins
# and scripts with the embedded Perl interpreter if the plugins/scripts
# do not explicitly indicate whether or not it is okay to do so. Read
# the HTML documentation on the embedded Perl interpreter for more 
# information on how this option works.

use_embedded_perl_implicitly=1


Wie kann ich mein Nagios wieder zum Laufen bringen??

Posts: 7,238

Gender: male

Number of monitoring servers: 2

Nagios Version: 3.2.1

Icinga Version: Icinga 1.7.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >70

Number of services: >200

OS: SLES11

Plugin Version: 1.4.15

Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18

2

Wednesday, February 11th 2009, 9:38pm

VIelleicht verwendet "service nagios start" eine andere Konfigurationsdatei als /etc/nagios/nagios.cfg. Alternativ kannst Du mal versuchen, Nagios mit "/usr/bin/nagios -d /etc/nagios/nagios.cfg" zu starten.

Saschaib

Beginner

Posts: 3

Number of monitoring servers: 1

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 30

Number of services: 200

OS: CentOS, freebsd, WinXP, Win2k8, openfiler

Plugin Version: 1.14.13

NDO Version: 1

3

Thursday, February 12th 2009, 9:32am

Hi Wolfgang,

das hab ich ausprobiert - ohne Erfolg. In der Shell kommt keine weitere Meldung, aber nagios läuft auch nicht.

Ich bin mir auch sicher, dass nagios die Datei /etc/nagios/nagios.cfg verwendet. Bei den ersten Starts bin ich auch auf Fehler in dieser Datei hingewiesen worden. :(

hazet

Intermediate

Posts: 275

Birthday: Sep 8th

Gender: male

Location: Augsburg

Number of monitoring servers: 2

Nagios Version: 3.0.5

Distributed monitoring: Nein

Redundant monitoring: Ja

Number of hosts: 160

Number of services: >2000

OS: Ubuntu 8.04

Plugin Version: 1.4.12

NagVis Version: 1.3

NDO Version: 1.4.7b

Other Addons: PNP 0.6.1,NagTrap 0.1.2

4

Thursday, February 12th 2009, 10:09am

Trotzdem: Schau Dir mal das Startscript an, um sicher zu stellen, dass die richtige Config gezogen wird.
Complex problems have simple, easy to understand, wrong answers.
(H. L. Mencken)

Saschaib

Beginner

Posts: 3

Number of monitoring servers: 1

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 30

Number of services: 200

OS: CentOS, freebsd, WinXP, Win2k8, openfiler

Plugin Version: 1.14.13

NDO Version: 1

5

Thursday, February 12th 2009, 10:25am

Sorry Leute hat sich erledigt... wie dumm von mir!!!
Das Startscript hat gestimmt, alles war super. Bei dem Update muss sich irgendwie das doofe SELinux wieder angeschaltet haben.

das nächste mal weiß ich:

- setenforce 0

kann wunder bewirken. Trotzdem wundert es mich, dass Nagios die Fehlermeldung bringt:
"Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration."

P.S.: kann ich das Thema hier irgendwie schließen??

Sascha

Professional

Posts: 872

Birthday: Jun 1st

Gender: male

Number of monitoring servers: 2

Nagios Version: 0.0.0

Icinga Version: 1.8.4

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >500

Number of services: >2000

OS: Win200x, RHEL4/5/6, OES2

Plugin Version: 1.4.16

Other Addons: PNP 0.6, Brain 2.0

6

Thursday, February 12th 2009, 11:20am

Editiere dein Ursprungspost und stelle ein [SOLVED] davor (inklusive Klammern).
Dadurch wird der Post als gelöst markiert und kann anderen bei Problemen als Lösung vorgeschlagen werden.

S