# Plugin weblogic # Introduction **Ver**. 07-09-2021 Plugin that collects stats from each server and app in the installation, also collects data from threadpools, jvm and agent snmp.
**Tipo**: Server plugin
# Compatibility
**Systems where it has been tested**CentOS 7, Fedora
**Systems where it should work**Any linux system
# Prerequisites Required: - A Weblogic server - To have RESTful Management Services enabled in weblogic - Pandora FMS Data Server enabled. - Pandora FMS Plugin Server enabled. # Configuration To use the plugin you need to have RESTful Management Services activated on your weblogic server, to do this go to : Domain -> Configuration -> General -> Advanced -> Enable RESTful Management Services And restart the Admin Server. [![image-1631097652682.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/image-1631097652682.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/image-1631097652682.png) # Plugin general parameters ``` python pandora_weblogic.py -u -us -p ``` If the execution is correct we will see a 1. # Parameters specifics The plugin has the following parameters:
**Parámetro****Descripción**
-u <url-with-port> --ip <url-with-port>urlwith the port, mandatory.
-us <user> --user <user>weblogic user, required.
-p <password> --password <password>password weblogic, required.
-g GROUP, --group GROUPPandora FMS target group (optional)
--data\_dir DATA\_DIRPandora FMS data directory. By default it is /var/spool/pandora/data\_in/ (optional)
# Configuration in pandora **Installation from the console** To register the plugin, from the console, go to the "register plugin" section. **[![register_plugin.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register-plugin.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register-plugin.png)** Click on select file. **[![register_plugin2.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register-plugin2.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register-plugin2.png)** Select the pspz2 file containing the plugin. [![register1_weblogic.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register1-weblogic.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register1-weblogic.png) A message that it has been successfully installed will be displayed. [![register2_weblogic.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register2-weblogic.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register2-weblogic.png) Once the plugin is registered, we will see it in the plugins section. [![serversingles.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/serversingles.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/serversingles.png) In the parameters section, all the parameters contained in the plugin will appear and can be configured, remember that not all of them are mandatory, only those that are specified. [![register3_weblogic.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register3-weblogic.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register3-weblogic.png) Below you can assign a value to each macro. [![register4_weblogic.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register4-weblogic.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register4-weblogic.png) The best way to manage server plugins in Pandora is from "/usr/share/pandora\_server/util/plugin" so we will send it to that path. Then we will move to the folder where we have put it ("/usr/share/pandora\_server/util/plugin" is the recommended one"). We move from home with :
``` cd /usr/share/pandora_server/util/plugin/ ``` We run the plugin to see that it works: ``` python pandora_weblogic.py -u -us -p ``` **As a server plugin** Go to servers > plugins: [![image-1629974405286.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974405286.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974405286.png) Click in add: [![image-1629974430627.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1629974430627.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1629974430627.png) We put in the name and description of your choice: [![weblogic1.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/weblogic1.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/weblogic1.png) We enter as command the path to the plugin, and as parameters the ones we have entered by executing the plugin, the "\_field\_" fields are macros defined below. [![weblogic2.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/weblogic2.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/weblogic2.png) We put for each macro the description that you prefer and as value the data of your url, user and pass. [![weblogic3.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/weblogic3.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/weblogic3.png) Once this is done, if we execute the plugin from the terminal, the agent with the modules will have been created. # Modules generated An agent will be created for each server and application of our Weblogic, with modules with their stats, and an agent with JVM data, threadpools and agent snmp. **Modules Server**
cluster name
current machine
health
heapFreeCurrent
heapSizeCurrent
heapSizeMax
java version
OpenSocketsCurrentCount
oSname
oSversion
state
weblogic version
**Modules Aplication**
completedRequest
pendingRequest
health
state
type
**Modules Snmp agent,jvm y threadpools**
JVMRuntime.heapfreecurrent
JVMRuntime.heapfreepercent
JVMRuntime.heapsizecurrent
JVMRuntime.heapsizemax
JVMRuntime.javavendor
JVMRuntime.javaversion
JVMRuntime.javavmvendor
JVMRuntime.name
JVMRuntime.osname
JVMRuntime.osversion
JVMRuntime.processcpuload
JVMRuntime.uptime
SNMPAgentRunTime.attributechangetrapcount
SNMPAgentRunTime.countermonitortrapcount
SNMPAgentRunTime.failedauthenticationcount
SNMPAgentRunTime.failedauthorizacioncount
SNMPAgentRunTime.failedencrytioncount
SNMPAgentRunTime.gaugemonitortrapcount
SNMPAgentRunTime.logmessagetrapcount
SNMPAgentRunTime.masteragentxport
SNMPAgentRunTime.monitortrapcount
SNMPAgentRunTime.serverstarttrapcount
SNMPAgentRunTime.serverstoptrapcount
SNMPAgentRunTime.stringmonitortrapcount
SNMPAgentRunTime.udplistenport
ThreadpoolRunTime.executecompletedrequestcount
ThreadpoolRunTime.executethreadidlecount
ThreadpoolRunTime.executetotalthreadcount
ThreadpoolRunTime.hoggingthreadcount
ThreadpoolRunTime.minthreadsconstraintcompleted
ThreadpoolRunTime.minthreadsconstraintpending
ThreadpoolRunTime.overloadrejectrequests
ThreadpoolRunTime.pendinguserrequestcount
ThreadpoolRunTime.queuelenght
ThreadpoolRunTime.sharedcapacityforworkmanager
ThreadpoolRunTime.standbythreadcount
ThreadpoolRunTime.stuckthreadcount
ThreadpoolRunTime.throughtput
[![modulos1.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/modulos1.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/modulos1.png) [![modulos2.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/scaled-1680-/modulos2.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-09/modulos2.png)