202 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Oracle Database 11gR2 - Get the dependencies right ...
Tue, Dec 12th 2017 28
DB2 on Windows - where does the db2nodes.cfg file live ?
Thu, Dec 7th 2017 52
Windows Server 2012 - Ooops, I locked my account
Thu, Dec 7th 2017 134
Nagios and NRPE - There's more ...
Wed, Dec 6th 2017 78
Nagios Remote Plugin Executor (NRPE) and xinetd on Red Hat Enterprise Linux
Wed, Dec 6th 2017 52
WebSphere Liberty Profile - Monitoring via JMX over REST using Jython
Wed, Dec 6th 2017 47
WebSphere Liberty Profile - Snooping About
Wed, Dec 6th 2017 44
Top 10
Windows Server 2012 - Ooops, I locked my account
Thu, Dec 7th 2017 134
Nagios and NRPE - There's more ...
Wed, Dec 6th 2017 78
Mozilla Firefox Quantum - Suppressing Autoplay Videos
Wed, Dec 6th 2017 60
Hmmm, macOS Sierra and XQuartz and X11
Thu, Oct 27th 2016 59
Executing external Python/Jython scripts from within WebSphere Application Server's wsadmin tool
Thu, Feb 27th 2014 56
Nagios Remote Plugin Executor (NRPE) and xinetd on Red Hat Enterprise Linux
Wed, Dec 6th 2017 52
DB2 on Windows - where does the db2nodes.cfg file live ?
Thu, Dec 7th 2017 52
Using Nagios to monitor IBM HTTP Server and IBM WebSphere Liberty Profile
Tue, Dec 5th 2017 47
WebSphere Liberty Profile - Monitoring via JMX over REST using Jython
Wed, Dec 6th 2017 47
Monitoring WebSphere Liberty Profile via JMX and REST over HTTPS
Tue, Dec 5th 2017 46


Tinkering with Elasticsearch and Kibana - on Docker, of course
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

In order to get to grips with the new world of event emission from IBM BPM, I needed to have a combined Elasticsearch / Kibana runtime to which to … emit events.

Using this as source: -

Elasticsearch and Kibana in one container

Simple and lightweight docker image for previewing Elasticsearch and Kibana.

I downloaded the repository file from here, expanded the resulting ZIP file: -

unzip ~/Downloads/nshou-elasticsearch-kibana-e07aa6ed04af.zip 

switched to the appropriate directory: -

cd ~/nshou-elasticsearch-kibana-e07aa6ed04af

took a quick look at the Dockerfile: -

cat Dockerfile

FROM openjdk:jre-alpine

LABEL maintainer "nshou <nshou@coronocoya.net>"

ENV ES_VERSION=5.6.2
    KIBANA_VERSION=5.6.2

RUN apk add --quiet --no-progress --no-cache nodejs wget
 && adduser -D elasticsearch

USER elasticsearch

WORKDIR /home/elasticsearch

RUN wget -q -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
 |  tar -zx
 && mv elasticsearch-${ES_VERSION} elasticsearch
 && wget -q -O - https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz
 |  tar -zx
 && mv kibana-${KIBANA_VERSION}-linux-x86_64 kibana
 && rm -f kibana/node/bin/node kibana/node/bin/npm
 && ln -s $(which node) kibana/node/bin/node
 && ln -s $(which npm) kibana/node/bin/npm

CMD sh elasticsearch/bin/elasticsearch -E http.host=0.0.0.0 --quiet & kibana/bin/kibana --host 0.0.0.0 -Q

EXPOSE 9200 5601


and then created the image: -

docker build -t elastic-search-kibana:elastickib .

Sending build context to Docker daemon   7.68kB
Step 1/9 : FROM openjdk:jre-alpine
jre-alpine: Pulling from library/openjdk
88286f41530e: Pull complete 
720349d0916a: Pull complete 
9431a0557160: Pull complete 
Digest: sha256:6bb5c6b7b685b63cb2d937bded1afbcc5738a5ea4b7c4e219199e55e7dda70f8
Status: Downloaded newer image for openjdk:jre-alpine
 ---> e2f6fe2dacef
Step 2/9 : LABEL maintainer "nshou <nshou@coronocoya.net>"
 ---> Running in 1e003af9f082
 ---> df191a529d94
Removing intermediate container 1e003af9f082
Step 3/9 : ENV ES_VERSION 5.6.2 KIBANA_VERSION 5.6.2
 ---> Running in c8664902a7f7
 ---> 90c47efaf56a
Removing intermediate container c8664902a7f7
Step 4/9 : RUN apk add --quiet --no-progress --no-cache nodejs wget  && adduser -D elasticsearch
 ---> Running in 9fa9ade91bc4
 ---> 5445495027dc
Removing intermediate container 9fa9ade91bc4
Step 5/9 : USER elasticsearch
 ---> Running in f15c2522650a
 ---> fd83a9e51b4b
Removing intermediate container f15c2522650a
Step 6/9 : WORKDIR /home/elasticsearch
 ---> c4b5b83af736
Removing intermediate container c834e8cbb240
Step 7/9 : RUN wget -q -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz  |  tar -zx  && mv elasticsearch-${ES_VERSION} elasticsearch  && wget -q -O - https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz  |  tar -zx  && mv kibana-${KIBANA_VERSION}-linux-x86_64 kibana  && rm -f kibana/node/bin/node kibana/node/bin/npm  && ln -s $(which node) kibana/node/bin/node  && ln -s $(which npm) kibana/node/bin/npm
 ---> Running in fdc3ce9e0fc3
 ---> 772dbe7ad146
Removing intermediate container fdc3ce9e0fc3
Step 8/9 : CMD sh elasticsearch/bin/elasticsearch -E http.host=0.0.0.0 --quiet & kibana/bin/kibana --host 0.0.0.0 -Q
 ---> Running in 19b3ae4f083c
 ---> 077e18084009
Removing intermediate container 19b3ae4f083c
Step 9/9 : EXPOSE 9200 5601
 ---> Running in 160b93b21db3
 ---> 9a2583574e8a
Removing intermediate container 160b93b21db3
Successfully built 9a2583574e8a
Successfully tagged elastic-search-kibana:elastickib

checked my Docker image repository: -

docker images

REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
elastic-search-kibana   elastickib          9a2583574e8a        2 hours ago         310MB
websphere-liberty       webProfile7         905fc63e8e9b        3 weeks ago         411MB
openjdk                 jre-alpine          e2f6fe2dacef        3 weeks ago         81.4MB
ibmcom/datapower        latest              5d04824ab687        2 months ago        758MB

started a container: -

docker run -d -p 9200:9200 -p 5601:5601 elastic-search-kibana:elastickib

checked the running container: -

docker ps -a

CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS              PORTS                                            NAMES
82a69369a551        elastic-search-kibana:elastickib   "/bin/sh -c 'sh el..."   7 seconds ago       Up 2 seconds        0.0.0.0:5601->5601/tcp, 0.0.0.0:9200->9200/tcp   cranky_visvesvaraya

and then connected to Kibana: -



and to Elasticsearch: -


which is nice

I'm now following this: -


and will go ahead and setup my BPM 8.6 VM … 

Let's see how I get on …



---------------------
http://portal2portal.blogspot.com/2017/10/tinkering-with-elasticsearch-and-kibana.html
Oct 10, 2017
8 hits



Recent Blog Posts
28
Oracle Database 11gR2 - Get the dependencies right ...
Tue, Dec 12th 2017 9:46a   Dave Hay
Having just installed Oracle 11.2 ( 11gR2 ) onto a Red Hat Enterprise Linux 7.4 VM, I was kinda getting fed up with the sqlplus command not working …..sqlplus sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directoryls -al `locate libclntsh.so`-rwxrwx---. 1 oracle oracle 48797739 Dec 12 08:49 /home/oracle/app/oracle/product/11.2.0/dbhome_1/inventory/backup/2017-12-12_08-48-58AM/Scripts/ext/lib/libclntsh.so.11.1-rwxrwx---. 1 orac
52
DB2 on Windows - where does the db2nodes.cfg file live ?
Thu, Dec 7th 2017 2:13p   Dave Hay
I was briefly tinkering with the need to update the db2nodes.cfg file to help DB2 Express 11.1 cope with the hostname change of a Windows Server 2012 R2 boxen.I'd created a new VM, via OpenStack, using a snapshot from an existing VM - which I'd NOT yet deleted.Therefore, OpenStack, being the nice IaaS solution that it is, kindly helped me out by creating the new instance with a new hostname.This borked DB2, as you'd expect ….I've seen similar issues with DB2 on Linux: -SQL10003C There are
134
Windows Server 2012 - Ooops, I locked my account
Thu, Dec 7th 2017 11:59a   Dave Hay
One of my colleagues had a bad day with a shared Windows Server 2012 R2 environment, in that he locked out the main account that we use to access the box, via Remote Desktop Protocol (RDP).This is NOT an Active Directory environment, so there's no domain controller in the mix; these are merely local accounts.Thankfully, I had another account that WASN'T locked out, so I RDP'd into the box using that account and used the Advanced User Accounts Control Panel ( aka netplwiz ), which did the tric
78
Nagios and NRPE - There's more ...
Wed, Dec 6th 2017 6:25p   Dave Hay
Following on from my earlier post: -Nagios Remote Plugin Executor (NRPE) and xinetd on Red Hat Enterprise Linuxthings are starting to become more clear.As far as I can establish, on the NRPE client/agent side, we have several components at work here.So we have the NRPE agent itself, as started using xinetd : -/etc/xinetd.d/nrpe # default: on# description: NRPE (Nagios Remote Plugin Executor)service nrpe{ flags = REUSE socket_type = stream port = 5666 w
52
Nagios Remote Plugin Executor (NRPE) and xinetd on Red Hat Enterprise Linux
Wed, Dec 6th 2017 2:15p   Dave Hay
As per a few previous posts, I'm tinkering ( there's that word again, I must think of another simile ) with Nagios.This time I'm looking to have my Nagios monitoring server ( which runs on Ubuntu ) execute an agent on a remote boxen running Red Hat Enterprise Linux (RHEL).Having installed the pre-requisites ( and I do need to document those steps more clearly ), I setup a NRPE script to be started using xinetd ( A Powerful Replacement For Inetd )cat /etc/xinetd.d/nrpe # default: on# descripti
47
WebSphere Liberty Profile - Monitoring via JMX over REST using Jython
Wed, Dec 6th 2017 1:39p   Dave Hay
For this, I'm using two excellent IBM developerWorks articles as inspiration: -Retrieve performance metrics from the WebSphere Liberty profile, Part 1 - Setup and configurationRetrieve performance metrics from the WebSphere Liberty profile, Part 2 - Data collection by using JythonWithout reposting the entire pair of articles ( which would be a daft idea ), here's a short-cut of what I ended up doing.For the record, I am using Liberty 17.0.0.3: -/opt/ibm/WebSphere/Liberty/bin/server versionWebS
44
WebSphere Liberty Profile - Snooping About
Wed, Dec 6th 2017 11:51a   Dave Hay
I've written about the SuperSnoop Servlet before: -WebSphere Application Server - Binary ScannerWebSphere Liberty Profile on macOS - SuperSnoopingWebSphere Application Server 9 - Snooping AboutWebSphere Application Server - Liberty Profile - Oh, what funand it's one tool that I use, and reuse, whenever I'm testing a build of WebSphere Application Server etc.However, it niggled me that, whilst it DOES run on WebSphere Liberty Profile, it doesn't actually work.Having deployed it: -cp SuperSnoo
60
Mozilla Firefox Quantum - Suppressing Autoplay Videos
Wed, Dec 6th 2017 6:26a   Dave Hay
So I mostly love the new Firefox 57, aka Quantum, although I have a few niggles with it; my main gripe is that the LastPass plugin appears to have been totally borked.One other issue - autoplay videos :-(Given that I don't use Adobe Flash, I was somewhat grumpy to find that the BBC News site was full of videos that'd start auto-playing as soon as I hit the site.Thankfully, the internet came to the rescue - AGAINHow can I stop videos from automatically starting (autoplay)?This takes one off to
46
Monitoring WebSphere Liberty Profile via JMX and REST over HTTPS
Tue, Dec 5th 2017 8:44p   Dave Hay
This is another of those pesky Work-in-Progress articles, and follows on from an earliest post: -Using Nagios to monitor IBM HTTP Server and IBM WebSphere Liberty ProfileMy objective is to have Nagios actively pull various Java-related attributes from WebSphere Liberty Profile, using the Java Management Extensions (JMX) API over REST over HTTPS.This is what I've inferred thus far, using the Liberty REST Explorer: -https://mfp.uk.ibm.com:8443/ibm/api/explorer/#/IBMJMXConnectorRESTand a Google Ch
47
Using Nagios to monitor IBM HTTP Server and IBM WebSphere Liberty Profile
Tue, Dec 5th 2017 8:33p   Dave Hay
This ties up with a piece of work upon which I'm currently engaged.I've configured Nagios 4.3.4 to test IBM HTTP Server (IHS) 8.5.5.12 and the MobileFirst Platform (MFP) runtime, which runs on WebSphere Liberty Profile 17.0.0.3.This is using the out-of-the-box Nagios plugin called check_http: -/usr/local/nagios/libexec/check_httpwhich can be invoked thusly: -/usr/local/nagios/libexec/check_http -H mfp.uk.ibm.com -p 8443 -SHTTP OK: HTTP/1.1 200 OK - 3710 bytes in 0.014 second response time |tim




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition