Page 1 of 1

Read/Process Output of a Weblogic Monitor Process

Posted: Tue May 06, 2014 3:02 pm
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>

Re: Read/Process Output of a Weblogic Monitor Process

Posted: Tue May 06, 2014 3:04 pm
by tmcdonald
What are you actually monitoring? I wrote some documentation on monitoring weblogic not too long ago, and JMX is always an option.

Re: Read/Process Output of a Weblogic Monitor Process

Posted: Tue May 06, 2014 3:12 pm
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.

Re: Read/Process Output of a Weblogic Monitor Process

Posted: Tue May 06, 2014 3:44 pm
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.