Welcome to Nagios Check Weblogic
I will be updating the SVN soon, but here is the Config files
nagios - command.cfg
define command{
command_name check_ed_test
command_line $USER1$/check_weblogic --hostname=$_SERVICEHOSTADD$ --port=
$_SERVICEPORT$ --username=$_SERVICEUSER$ --password=$_SERVICEPASSWORD$ --config
=$USER1$/lib/$_SERVICECONFIG$
}
nagios - service
define service{
notification_period workhours
check_period 24x7
host localhost
service_description Weblogic Test
check_interval 10
_HOSTADD appserver.local
_PORT 7010
_USER system
_PASSWORD XXXXXX
_CONFIG check_weblogic.cfg
check_command check_ed_test
}
check-Weblogic
# This file uses XPATH Notation to parse XML # Check if a value is OK, WARNING or Critical (This returns performance Data) # /<server>/<mbean>....:WARNING #, CRITICAL #:Field to check # BOOLEAN QUERIES, for TEXT or VALUES # /<server>/<mbean>....:true:Field>="RUNNING" # or # /<server>/<mbean>[Field=value]:true:State="RUNNING" //JDBCDataSourceRuntime[Name='DBPOOLNAME']:100,200:Active ConnectionsCurrentCount //JDBCDataSourceRuntime:100,200:WaitingForConnectionHighCount //JVMRuntime:90,99:HeapFreePercent //ExecuteQueueRuntime:101,200:PendingRequestCurrentCount //ExecuteQueueRuntime:101,200:ExecuteThreadTotalCount </mbean></server></mbean></server></mbean></server>