throwsb / nagios-checks

Monitoring Check Scripts used with Nagios and NagiosXI
GNU Affero General Public License v3.0
4 stars 7 forks source link

check_wls.pl throws error after weblogic upgrade. #1

Open Darshanky opened 6 years ago

Darshanky commented 6 years ago

bash-4.1$ /usr/local/groundwork/nagios/libexec/check_by_ssh -H hostname.local -t 60 -l "edenmon" -C "libexec/check_wls.pl -R -J libexec/jmx.py -L libexec/wls_config_admin" -E

Warning: missing wlst /u01/app/oracle/product/middleware12c/oracle_common/common/bin/wlst.sh UNKNOWN1:

The new location of the file after upgrade is /u01/app/oracle/product/Oracle_BI12C/oracle_common/common/bin/wlst.sh

Can you please advise on updating new location in the script

adi6711 commented 3 years ago

Hi , Used check_wls.pl , jmx.py and wls_confg file to monitor weblogic (version 14.1.1.0) in nagios XI but getting below error.

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -C -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;ThreadTotCount | Server1=UNKNOWN;90;95;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -T -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;StuckThreadCount | Server1=UNKNOWN;90;95;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -r -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;UNKNOWN DATA; | Server1=UNKNOWN;;;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -o -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;UNKNOWN DATA; | Server1=UNKNOWN;;;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -j -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;UNKNOWN DATA; | Server1=UNKNOWN;;;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -t -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 UNKNOWN Server1=UNKNOWN;UNKNOWN DATA; | Server1=UNKNOWN;;;;

[root@rhel74sree05 ~]# /usr/local/ncpa/plugins/check_wls.pl -C -L /usr/local/ncpa/etc/wls_config -w 90 -c 95 -d Pull line > #wls_config Pull line > Pull line > #The hostname or IP starts out with "hst::". The last Pull line ># instance of "hst::" will be the Pull line > # name used. Pull line > hst::10.4.4.186 Pull line > Pull line > #The path to jmx.py starts out with "jmx::". The default Pull line > # is /usr/local/nagios/libexec/jmx.py Pull line > jmx::/usr/local/ncpa/plugins/jmx.py Pull line > Pull line > #The path to wlst starts out with "wlst::". Pull line > wlst::/opt/app/oracle/wls141100/wlserver Pull line > Pull line > #The credentials used to connect to a managed server can Pull line > # either be with a userConfigFile and userKeyFile or a Pull line > # username and password. You can only use one set. Pull line > # example with key files. Pull line > #ucfg::</path/to/userConfigFile> Pull line > #ukey::</path/to/userKeyFile> Pull line > Pull line > usr::weblogic Pull line > pwd::weblogic@123 Pull line > Pull line > #The Port/Managed Server name starts out with "srv::" Pull line > # and each port and managed server is separated by a ":". Pull line > # One grouping per line. Pull line > srv::7001:Server1 Pull File Srvlst > 7001:Server1 SERV LIST > 7001:Server1 HOST > 10.4.4.186, PORT > 7001, MGSERV > Server1, USR > weblogic, PW > weblogic@123 ATYPE > USRPW Server1:UNKNOWN UNKNOWN Server1=UNKNOWN;90;95;; UNKNOWN PROB LIST > Server1=UNKNOWN;ThreadTotCount UNKNOWN Server1=UNKNOWN;ThreadTotCount | Server1=UNKNOWN;90;95;;

Plz sugget how to fix