Monday, May 20th 2013, 6:48pm 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.

Posts: 134

Birthday: Feb 25th 1977 (36)

Gender: male

Location: Löffingen

Occupation: SAP Basis Admin

Number of monitoring servers: 3

Hobbies: MTB, Schwimmen

Nagios Version: 3

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 300

Number of services: 2500

OS: Red Hat

Plugin Version: 1.4

NagVis Version: 1.5.8

Other Addons: CENTREON, OMD, check_mk, Multisite, rrdtool, Nagvis

1

Friday, April 27th 2012, 9:45am

mk_oracle für HP-UX

Hallo Zusammen,

mk_oracle für HP-UX funktioniert bei mir nicht.

Neuste Version ist vorhanden und bringt folgendes...

Source code

1
2
3
4
5
6
7
<Server11>root:/usr/lib/check_mk_agent/plugins # bash -x mk_oracle
++ UNIX95=true
++ ps -ef -o args
++ sed -n '/^\(ora\|xe\)_pmon_\([^ ]*\)/s//\2/p'
+ SIDS=
+ '[' -z '' ']'
+ exit 0


Infos gibts auch hier aber ich werde nicht ganz schlau draus
mk_oracle: port to HP-UX

So wie es sich für mich darstellt liefert der Aufruf von ps in Zusammenhang mit sed kein Ergebnis - SIDS wird nicht gefüllt und dann steigt das Script aus...

Hier steht aber das es auch mit HP-UX geht (unsere Version HP-UX Server11 B.11.31 U ia64 3371412685 unlimited-user license).

Bitte um Hilfe

Gruß Pullistricker

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

Friday, April 27th 2012, 10:00am

Wie sieht der Abschnitt im Source-Code aus?

Posts: 134

Birthday: Feb 25th 1977 (36)

Gender: male

Location: Löffingen

Occupation: SAP Basis Admin

Number of monitoring servers: 3

Hobbies: MTB, Schwimmen

Nagios Version: 3

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 300

Number of services: 2500

OS: Red Hat

Plugin Version: 1.4

NagVis Version: 1.5.8

Other Addons: CENTREON, OMD, check_mk, Multisite, rrdtool, Nagvis

3

Friday, April 27th 2012, 10:08am

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
#!/bin/sh
# +------------------------------------------------------------------+
# |         	____ _           	_    	__  __ _  __       	|
# |        	/ ___| |__   ___  ___| | __   |  \/  | |/ /       	|
# |       	| |   | '_ \ / _ \/ __| |/ /   | |\/| | ' /        	|
# |       	| |___| | | |  __/ (__|   <	| |  | | . \        	|
# |        	\____|_| |_|\___|\___|_|\_\___|_|  |_|_|\_\       	|
# |                                                              	|
# | Copyright Mathias Kettner 2010         	mk@mathias-kettner.de |
# +------------------------------------------------------------------+
#
# This file is part of Check_MK.
# The official homepage is at http://mathias-kettner.de/check_mk.
#
# check_mk is free software;  you can redistribute it and/or modify it
# under the  terms of the  GNU General Public License  as published by
# the Free Software Foundation in version 2.  check_mk is  distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY;  with-
# out even the implied warranty of  MERCHANTABILITY  or  FITNESS FOR A
# PARTICULAR PURPOSE. See the  GNU General Public License for more de-
# ails.  You should have  received  a copy of the  GNU  General Public
# License along with GNU Make; see the file  COPYING.  If  not,  write
# to the Free Software Foundation, Inc., 51 Franklin St,  Fifth Floor,
# Boston, MA 02110-1301 USA.

# Check_MK agent plugin for monitoring ORACLE databases

# Get list of all running databases
SIDS=$(UNIX95=true ps -ef -o args | sed -n '/^\(ora\|xe\)_pmon_\([^ ]*\)/s//\2/p')
if [ -z "$SIDS" ] ; then exit 0 ; fi

CACHE_MAXAGE=120

...
...
...

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

4

Friday, April 27th 2012, 11:40am

Ersetz' 'mal testweise Zeile 29 durch

Source code

1
SIDS=$(UNIX95=true ps -ef -o args | sed -n '/^ora_pmon_\([^ ]*\)/s//\1/p')

Posts: 134

Birthday: Feb 25th 1977 (36)

Gender: male

Location: Löffingen

Occupation: SAP Basis Admin

Number of monitoring servers: 3

Hobbies: MTB, Schwimmen

Nagios Version: 3

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 300

Number of services: 2500

OS: Red Hat

Plugin Version: 1.4

NagVis Version: 1.5.8

Other Addons: CENTREON, OMD, check_mk, Multisite, rrdtool, Nagvis

5

Friday, April 27th 2012, 11:47am

Ok - jetzt bleibt er bei Zeile 95 hängen...

./mk_oracle: line 95: setsid: command not found

setsid scheint unser HP-UX nicht zu kenne...ich spreche da mal mit dem entsprechendem Admin.

Merci soweit - ich melde mich dann wieder...

Posts: 134

Birthday: Feb 25th 1977 (36)

Gender: male

Location: Löffingen

Occupation: SAP Basis Admin

Number of monitoring servers: 3

Hobbies: MTB, Schwimmen

Nagios Version: 3

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 300

Number of services: 2500

OS: Red Hat

Plugin Version: 1.4

NagVis Version: 1.5.8

Other Addons: CENTREON, OMD, check_mk, Multisite, rrdtool, Nagvis

6

Wednesday, August 22nd 2012, 12:52pm

Hallo Zusammen,

ich greife das Thema jetzt nochmal auf weil ich gerade an der Umsetzung dran bin:

SAP Monitoring mit OMD ;-)

Gibts hier von irgendwem noch weitere Infos?

Wer sich dafür interessiert darf mich gerne anschreiben (das meiste findet man hier im Portal):

Umgesetzt habe ich bisher:

CCMS-Monitoring (ResponseTime, LongRunners, UsersLoggIn, activeAlerts(SAP PI))
SAP Mandant überwachen (check_oracle_health)
Kurzdumps überwachen (check_oracle_health)
SAP Anmeldung überwachen (check_sap.pl)

der Rest wird duch chek_mk_agent überwacht

Was mir noch fehlt ist mk_oracle für HP-UX - könnte ich natürlich auch über check_oracel_health lösen....

Similar threads