Weblogic Support

Hi everyone!
I would like to know if there is a way we could monitor weblogic applications.
Can we monitor if the application is down? Can we monitor the logs if there is any Exception.

Another question: Is there a way in Nagios that we could monitor logs in TXT files?

Best Regards for all!

Thanks in advance…

Renato Isidio

Renato,

Specifically for weblogic, you can use the following two plugins which I developed and have made available on Nagios Exchange at: nagiosexchange.org

check_weblogic_heapfree
check_weblogic_sessions

You can also use another general purpose plugin I developed to scan log files which I’ve made available on Nagios Exchange as well:

scan_log

I hope this helps! If you have any questions on the plugins, just reply to this topic and I’ll do what I can to help.

Sharamun,

thank you for anwering me faster than I expect! I’ll see the plugins you’ve created and if I have any doubt I’ll keep you in touch.

Best Regards! Good Evening!

Hi Sergei Haramundanis!
I’ve tried to use your plugin but I didn’t know what does the parameter means. I have some questions:
1-Could you describe better what that parameters means?
2-Do this plugin works only for monitoring logs locally?
3-Do you know if there is a plugin that makes me monitor the logs and the server remotely without needing to install any NRPE agent?

Thanks in advance!

Best Regards!

Hi Renato,

…not sure which plugin you are asking about, but at the command line specify --help and that will give you some information on the parameters (–help and --version is standard with all nagios compliant plugins).

For your convenience the parameters for each are as follows:

check_weblogic_heapfree:
argument 1: runtime_directory
directory the plugin will use to create required files
argument 2: url
url of the weblogic instance to be monitored
argument 3: userid
weblogic admin/console userid
argument 4: password
weblogic admin/console password
argument 5: heapfree_percent_minimum_threshold
if percentage heapfree is less than this amount it will issue an alert
argument 6: heapfree_delta_percent_maximum_threshold
if the change in percentage heapfree is more than this amount it will issue an alert
argument 7: check_from_time
HHMM for monitoring to start
argument 8: check_to_time
HHMM for monitoring to end

check_weblogic_sessions:
argument 1: runtime_directory
directory the plugin will use to create required files
argument 2: url
url of the weblogic instance to be monitored
argument 3: userid
weblogic admin/console userid
argument 4: password
weblogic admin/console password
argument 5: object_name
ObjectName of a weblogic WebAppComponentRuntime object to be monitored
argument 6: maximum_concurrent_sessions
if OpenSessionsCurrentCount for the object_name is more than this amount it will issue an alert
argument 7: check_from_time
HHMM for monitoring to start
argument 8: check_to_time
HHMM for monitoring to end

scan_log:
argument 1: runtime_directory
directory the plugin will use to create required files
argument 2: pattern_data_file
path to file containing set of patterns to search for in log_file_to_scan to issue alerts on
argument 3: log_file_to_scan
path to log file to be scanned
argument 4: check_from_time
HHMM for monitoring to start
argument 5: check_to_time
HHMM for monitoring to end

One way to execute plugins to monitor components on systems other than the nagios server is via NRPE and is what I recommend. The plugins themselves do the monitoring and the NRPE process on the remote system handles transmitting the results back to the nagios server for notification delivery after the nagios server issues the monitor request via the check_nrpe plugin.

Hi Sergei!
scan_log: How does this pattern_data_file works? Do I have to put a word or string per line? It accepts regular expressions?
Regards!

Renato,

the scan_log pattern_data_file needs to contain the explicit case-sensitive string literals you want to search for in the log file

each line in the pattern_data_file is used to perform a separate scan of the log file

regular expressions are not supported

any matches indicate an alert is to be issued

if more than one match is found, the last one found is reported preceded by the # of matches found in square brackets ]

Hi Sergei!
I’ve tried to include your plugin as a service but when I verify the configuration file it returns me an error that the service is not defined anywhere. I know that your plug-in wasn’t defined as a service. How can i do that?

Thanks in advance!

Hi Sergei!
i’ve solved the problem. I put a command tag into the commands.cfg like this:

define command{ command_name scan_log command_line $USER1$/scan_log $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ }
And the problem was solved.
OBS: Notice that I had to put your plugin into the libexec folder.
OBS: Is there a way we can change the alarms? Instead of sending the warning message when it founds a difference, is there a way we can send a critical message? Imagine if you leave your nagios for 1 hour monitoring your log files and an “Exception” occurs (a string that you were monitoring) and you’ll receive only a warning message that will disappear next time it checks the file again. You won’t be noticed of that exception.

It’s a great tool! Congratulations!

Regards!