Page 1 of 1

Weblogic monitoring in nagiosxi is throwing error

Posted: Fri Feb 27, 2015 10:21 am
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 $?

Re: Weblogic monitoring in nagiosxi is throwing error

Posted: Fri Feb 27, 2015 11:16 am
by abrist
When you ruin the test command, do you notice any extra escaping ( \) added to the command (in your username/password, etc)?