Nagios - weblogic plugin check_wls.pl
Posted: Fri Jan 13, 2017 9:15 am
Hi There,
I am trying to monitor weblogic application server. Although the perl command returns OK status , when executed from Unix shell. I am getting following error being displayed on Nagios web console -
Anyone got any clues where I have gone wrong?
(No output returned from plugin)
This is the configuration I have applied so far.
---- localhost.cfg ----
define service{
use local-service
host_name localhost ; The name of the host the service is associated with
service_description WEBLOGIC ; The service description
check_command check_wls!10!5!/usr/local/nagios/etc/wls_config ; The command used to monitor the service
notifications_enabled 0
}
---- commands.cfg -----
# 'check_wls' command definition
define command{
command_name check_wls
command_line /usr/local/nagios/libexec/check_wls.pl -C -L $ARG3$ -w $ARG1$ -c $ARG2$
}
---- actual user command ----
[root@HP4440-03 objects]# /usr/local/nagios/libexec/check_wls.pl -C -L /usr/local/nagios/etc/wls_config -w 90 -c 95
OK| Managed_Server=6;90;95;;
---------- Nagios web console---------
WEBLOGIC UNKNOWN 01-11-2017 15:28:40 0d 2h 37m 44s 4/4 (No output returned from plugin)
I am trying to monitor weblogic application server. Although the perl command returns OK status , when executed from Unix shell. I am getting following error being displayed on Nagios web console -
Anyone got any clues where I have gone wrong?
(No output returned from plugin)
This is the configuration I have applied so far.
---- localhost.cfg ----
define service{
use local-service
host_name localhost ; The name of the host the service is associated with
service_description WEBLOGIC ; The service description
check_command check_wls!10!5!/usr/local/nagios/etc/wls_config ; The command used to monitor the service
notifications_enabled 0
}
---- commands.cfg -----
# 'check_wls' command definition
define command{
command_name check_wls
command_line /usr/local/nagios/libexec/check_wls.pl -C -L $ARG3$ -w $ARG1$ -c $ARG2$
}
---- actual user command ----
[root@HP4440-03 objects]# /usr/local/nagios/libexec/check_wls.pl -C -L /usr/local/nagios/etc/wls_config -w 90 -c 95
OK| Managed_Server=6;90;95;;
---------- Nagios web console---------
WEBLOGIC UNKNOWN 01-11-2017 15:28:40 0d 2h 37m 44s 4/4 (No output returned from plugin)