Weblogic monitoring in nagiosxi is throwing error
Posted: Fri Feb 27, 2015 10:21 am
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 $?
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 $?