Tuesday, May 21st 2013, 3:28pm UTC+2

You are not logged in.

  • Login
  • Register

Enterprise

Trainee

Posts: 46

Birthday: Aug 13th 1988 (24)

Gender: male

Occupation: Systemadministrator

Number of monitoring servers: 2

Nagios Version: 3.4.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 600

Number of services: 3200

OS: Linux / Windows / sontige

Plugin Version: 1.1.15

NDO Version: 1

Other Addons: pnp4nagios 6.16

1

Wednesday, April 11th 2012, 4:47pm

check_multi Fehler bei der Installation

Hallo zusammen,

Ich hänge momentan an der Installation von check_multi und irgendwie finde ich nicht so recht nen Ansatzpunkt wie ich das Problem lösen kann die Installation lief so ab.

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
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
root@:~/check_multi-0.26# ./configure; make all; make install
checking whether make sets $(MAKE)... yes
checking for chmod... /bin/chmod
checking for cp... /bin/cp
checking for ethtool... no
checking for gunzip... /bin/gunzip
checking for id... /usr/bin/id
checking for a BSD-compatible install... /usr/bin/install -c
checking for mailx... /usr/bin/mailx
checking for perl... /usr/bin/perl
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating subst
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/t/Makefile
config.status: creating sample_config/Makefile

 -------------------------------------------------------------------
 --- check_multi configure summary (SVN $)
 -------------------------------------------------------------------

 Release date   $
 Author         $
 Configure args :

 --- Directories
 -------------------------------------------------------------------
 Install ${prefix}         /usr/local/nagios
 Exec ${exec_prefix}       ${prefix}
 Libexec directory         ${exec_prefix}/libexec
 CGI directory (sbin)      ${exec_prefix}/sbin
 HTML directory (data)
 Contrib directory
 Temporary directory       /tmp/check_multi
 Temp dir permissions      41777

 --- System options
 -------------------------------------------------------------------
 Parent timeout (BIG T)    60
 Child timeout (small t)   11
 Nagios name               nagios
 RC if no checks defined   3
 RC if caught a signal     3
 default cmdfile extension cmd
 ignore missing cmd file?  0
 Client perl path          /usr/bin/perl

 --- Output options
 -------------------------------------------------------------------
 Name / Label              ''
 Report option default     13
 HTML target frame         _self
 Child checks indented?    1
 Ascii indentation char    ' '
 Collapse tree?            1
 Collapse plus style       style='color:#4444FF;line-height:0.1em;font-size:1.5em;cursor:crosshair'
 Extinfo in status.cgi?    0
 Verbosity level default   0
 pnp version               0.6
 PNP URL                   /pnp4nagios
 PNP chart with mouseover  0

 --- Links
 -------------------------------------------------------------------
 action URL               ''
 notes URL                ''
 documentation URL        ''

 --- Advanced Options
 -------------------------------------------------------------------
 illegal chars in cmdfile \r
 check_multi persistent?  0
 cmdfile update interval  86400
 Feed_passive autocreate  1
 Feed_passive directory   ${prefix}/etc/check_multi/feed_passive


*** Next step:  type 'make all'. ***

make[2]: Entering directory `/root/check_multi-0.26/contrib/notify_service'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/check_multi-0.26/contrib/notify_service'
make[2]: Entering directory `/root/check_multi-0.26/contrib/status_query'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/check_multi-0.26/contrib/status_query'
make hook
make[1]: Entering directory `/root/check_multi-0.26'
cd: 1: can't cd to .git/hooks
make[1]: Leaving directory `/root/check_multi-0.26'

 Make process finished

 *** Next step:  make test ***

            or:  make test-all           (for all tests)
            or:  make test-checkresults
            or:  make test-extreme       (random tag and macro values)
            or:  make test-feeds-passive (requires Perl module XML::Simple)
            or:  make test-livestatus    (requires livestatus module and Perl Module Monitoring::Livestatus)
            or:  make test-macros
            or:  make test-perfdata
            or:  make test-statusdat

 *** and then:   make install ***

     - This installs the check_multi plugin

make[1]: Entering directory `/root/check_multi-0.26/plugins'
/usr/bin/install -c -m 755  -d /usr/local/nagios/libexec
/usr/bin/install -c -m 755  check_multi /usr/local/nagios/libexec
make[1]: Leaving directory `/root/check_multi-0.26/plugins'

Please run 'make install-contrib' to install contrib files
Please run 'make install-config'  to install sample config files


Ich vermute mal das mir irgendwas fehlt oder ich irgend einen config schalter nicht gesetzt habe.

Den das Plugin gibt mir nur das aus.

Quoted

UNKNOWN - 0 plugins checked, [parse_files: cannot open config file /usr/local/nagios/etc/check_multi.cmd: No such file or directory,no checks defined]
<script language='JavaScript'> function Toggle(node) { if (node.nextSibling.style.display == 'none') { if (node.childNodes.length > 0) { node.childNodes.item(0).replaceData(0,1,String.fromCharCode(8211)) } node.nextSibling.style.display = 'block' } else { if (node.childNodes.length > 0) { node.childNodes.item(0).replaceData(0,1,'+') } node.nextSibling.style.display = 'none' } } </script><a onclick='Toggle(this)' style='color:#4444FF;line-height:0.3em;font-size:1.5em;cursor:crosshair'>&ndash;</a><div style='display:block'><div><table style='border-left-width:1px; border-right-width:0px; border-left-style:dotted' id='multi_table'></table></div></div>



Jemand ne Idee was da falsch läuft?


Nagios: 3.3.1
Debian: 5

mess

Master

Posts: 2,164

Location: Esslingen

Number of monitoring servers:

Nagios Version:

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts:

Number of services:

OS:

Plugin Version:

NagVis Version:

NDO Version:

Perfparse Version:

Other Addons:

2

Thursday, April 12th 2012, 6:48am

Jemand ne Idee was da falsch läuft?

Da laeuft nix falsch :).

Ausser dass check_multi gern ein cmd-File haben moechte, das ihm sagt, was es denn tun soll:

Quoted

UNKNOWN - 0 plugins checked, [parse_files: cannot open config file /usr/local/nagios/etc/check_multi.cmd: No such file or directory,no checks defined]

Beispiele findest du

Gruss - Matthias
-> check_multi und check_generic
Problem solved? Dann einfach mal flattrn, das hilft dem Forum!

Enterprise

Trainee

Posts: 46

Birthday: Aug 13th 1988 (24)

Gender: male

Occupation: Systemadministrator

Number of monitoring servers: 2

Nagios Version: 3.4.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 600

Number of services: 3200

OS: Linux / Windows / sontige

Plugin Version: 1.1.15

NDO Version: 1

Other Addons: pnp4nagios 6.16

3

Friday, April 13th 2012, 10:47am

Ok, das funktioniert jetzt.

Aber irgendwie werden alle Checks nur lokal ausgeführt auf dem Nagios Server selbst. Bei Service ist allerdings der richtige Host definiert.

Source code

1
2
3
4
5
6
7
define service {
   name                 multi-service
   use                  service-template-interval-10min
   check_command        check_multi!-f /usr/local/nagios/etc/check_multi.cmd -r 1+2+4+8
   service_description  check_multi_test
   host_name            mysystem911
}


Source code

1
2
3
4
define command {
  command_name         check_multi
  command_line         $USER1$/check_multi $ARG1$ $ARG2$ $ARG3$ $ARG4$
}


Source code

1
2
3
4
5
6
7
8
9
10
11
12
#
# check_multi.cmd
#
# sample config file for check_multi plugin
#
# (c) Matthias Flacke, 2007-8
#
#--- some local checks on the nagios system
#

#--- processes
command[ proc_acpid ]           = check_procs -c 1: -C apache2

mess

Master

Posts: 2,164

Location: Esslingen

Number of monitoring servers:

Nagios Version:

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts:

Number of services:

OS:

Plugin Version:

NagVis Version:

NDO Version:

Perfparse Version:

Other Addons:

4

Friday, April 13th 2012, 3:09pm

Aber irgendwie werden alle Checks nur lokal ausgeführt auf dem Nagios Server selbst. Bei Service ist allerdings der richtige Host definiert.

Klar, das ist wie bei jedem Plugin - um den Transport muss man sich selber kuemmern.

Such mal nach den Stichworten NRPE oder check_by_ssh, das sind die wichtigsten Methoden, aktive Checks auf Remote-Servern auszufuehren.

Gruss - Matthias
-> check_multi und check_generic
Problem solved? Dann einfach mal flattrn, das hilft dem Forum!