Read/Process Output of a Weblogic Monitor Process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

Read/Process Output of a Weblogic Monitor Process

Post by jh129666 »

We have an existing weblogic monitor that we want to move to Nagios.

Below is an example of the monitor output.

Is Nagios XI able to read/process that output as it is (I'm assuming it can't)?

If not, what changes would need to be made?


red

<h7>Troubleshooting/Information Links</h7>
<a href="https://wiki.corp.medplus.com/wiki/BB_A ... 5>Weblogic Alert Troubleshooting</h5></a>
<a href="https://wiki.corp.medplus.com/wiki/Webl ... 5>Weblogic Monitoring</h5></a>

<!-- Red Alert: hub-s402-m05 has 20 lost Multicast Messages.
Red Alert: JMS ISSUES:
Red Alert: Server: hub-s401-m02 JMS Server/Queue: ec1-jms!jms-401-m02@DocumentDistributedQueue Current: 0 Pending: 22 Oldest Message: 268 min.
-->

<h4><b><font color="Red">hub-s402-m05 has 20 lost Multicast Messages.</b></font></h4>

<h4><b><font color="Red">JMS ISSUES:</b></font></h4>

<h4><b><font color="Red">Server: hub-s401-m02 JMS Server/Queue: ec1-jms!jms-401-m02@DocumentDistributedQueue Current: 0 Pending: 22 Oldest Message: 268 min.</b></font></h4>
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Read/Process Output of a Weblogic Monitor Process

Post by tmcdonald »

What are you actually monitoring? I wrote some documentation on monitoring weblogic not too long ago, and JMX is always an option.
Former Nagios employee
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

Re: Read/Process Output of a Weblogic Monitor Process

Post by jh129666 »

We're monitoring a number of things in the weblogic domain: clusters, JVM, JDBC, threads, JMS, etc.

We'd like to continue using the existing weblogic monitor process and have Nagios process the output file that gets generated.

I was hoping Nagios could use the existing format, or we could somehow modify the existing format to something that Nagios can use.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Read/Process Output of a Weblogic Monitor Process

Post by tmcdonald »

Nagios uses a plugin system to perform checks. Basically a plugin will exit with a number 0 to 3, and give some text string. That number determines the OK, Warn, Critical, or Unknown status of the check, and the text is just informational. So what you would need to do is write a check to parse that output (possibly using regex) and alert based on that. It's not the hardest thing in the world, but it is certainly not a one-size-fits-all solution.
Former Nagios employee
Locked