Weblogic monitoring in nagiosxi is throwing error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosadmin15
Posts: 4
Joined: Wed Jan 28, 2015 9:17 am

Weblogic monitoring in nagiosxi is throwing error

Post by nagiosadmin15 »

Hi Nagios Team,

I have configured nagios wlsagent on nagios server and i am trying to monitor weblogic on remote machines using manual service configuration. where manual service check is giving successful results but when i configure that service the same for one host it is trowing 'java.io.IOException: Unhandled exception in lookup'

command executed from command line:
/usr/local/nagios/libexec/check_weblogic 'hostname=xxxxx&port=xxx&username=xxxx&password='xxxx'&jvm=UsedMemory,90,95'

Output
efmserver is in RUNNING state, status OK|HeapSize=1024MB;;;0;1024 UsedMemory=783MB;;;0;1024 JvmProcessorLoad=0%;;;0;100

Output when i click on check command in configre -> Services ->

COMMAND: /usr/local/nagios/libexec/check_weblogic 'hostname=xxxx&port=xxx&username=xxx&password='xxx'&jvm=UsedMemory,90,95'
OUTPUT: efmserver is in RUNNING state, status OK|HeapSize=1024MB;;;0;1024 UsedMemory=803MB;;;0;1024 JvmProcessorLoad=0%;;;0;100

Error displayed in Service_status_Details:

java.io.IOException: Unhandled exception in lookup



content of check_weblogic

#!/bin/bash

PORT="9091"

DATA=$(wget -q -O - http://127.0.0.1:9091/wlsagent/WLSAgent --post-data=$@ 2> /dev/null)
[ $? != 0 ] && exit 2
echo ${DATA} | awk -F\| '{ print $2"|"$3 ; exit $1 }'
exit $?
Syam Chodipalli
[email protected]
Steelwedge Technologies Pvt Ltd.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Weblogic monitoring in nagiosxi is throwing error

Post by abrist »

When you ruin the test command, do you notice any extra escaping ( \) added to the command (in your username/password, etc)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked