logwatch for windows - windows

I have a need to be alerted via email of error messages in our JBoss logs. JBoss is running on a Windows 2008 server. I'm familiar with logwatch utilities on Linux, but I haven't found a well supported solutions for Windows. Does anyone have any recommendations?
Also I'd like to steer away from something like rsync'ing logs to a Linux log server which would run Linux log analysis scripts. We'd like to keep the number of servers in our environment as low as possible. Thank you!

You can use log4j SMTP appender. The details of configuration are described here

Related

generate IHS plugins to point to WAS cli

I'm trying to generate a plugin-cfg.xml file for IBM HTTP Server (IHS) to point to a WebSphere Application Server (WAS) environment. I've tried using several commands and tools to generate the file, but they don't seem to be working for my specific environment. Can anyone recommend a reliable way to generate the plugin-cfg.xml file for IHS on my system? I'm running WAS version 9.5. Any suggestions or guidance would be greatly appreciated. Thank you!
We tried several commands and options to generate a plugin-cfg.xml file for IBM HTTP Server (IHS) to point to a WebSphere Application Server (WAS) environment from the command line. However, these commands did not work as expected or were not applicable for your specific environment.
You didnt write what did you try and how it is not working.
Brief solutions are described here: 3 ways to generate the plugin-cfg.xml.
If you want to do it via cmd line this should work for you:
app_server_root/bin/GenPluginCfg.sh
You have detailed description here - https://www.ibm.com/docs/en/was-zos/8.5.5?topic=SS7K4U_8.5.5/com.ibm.websphere.base.doc/ae/rxml_genplugincfg1.htm

Where are the Meteor server logs in Windows?

I am developing a Meteor application on Windows. Are there log files being stored somewhere? Where are they?
To be more specific, I am running the development server on my local pc. I need to see any logs being created by the server. I need to know where they are stored.
I don't think they are stored in files. You need to handle logging in your code and also look for meteor process STDOUT/STDERR.
Perhaps you can take a look at this project for a solution/inspiration:
https://github.com/VeliovGroup/Meteor-logger

Deploying applications to Web Logic production Server

I am here to get some expert advice on deploying applications to WebLogic Production Server.
Is it a best practice to use Admin Server Console for deploying and redeploying applications in production. Actually I am deploying to a cluster having two managed server instances.
I have encountered this issue while i am redeploying application in the production. When i am deleting existing .ear file and adding updated .ear file will put the updated .ear file into prepared state. I can not make it Active state using Admin Server Console. If i try it will through some exceptions. But after some time it automatically goes in to active state, but i don't know what is happening inside. Sometimes i restart the server to make it active. Could anybody explain me what is the procedure when deploying application and redeploying applications in weblogic
Thanks in advance for any Help...
Generally WLST (WebLogic Scripting Tool) is used to deploy the applications. Administration Console can also be used to deploy/upgrade the applications but if there are many environments that need to be upgraded then WLST (which works like a command line tool) is much better option.
Get an overview of WLST to know how to use it to deploy/undeploy/upgrade applications.
Check out "Understanding WebLogic Server Deployment" and the "Redeploying Applications in a Production Environment". There are different factors that affect redeployment of an application which you might be running into.
http://docs.oracle.com/cd/E23943_01/web.1111/e13702/understanding.htm#i1057116
http://docs.oracle.com/cd/E23943_01/web.1111/e13702/redeploy.htm#g1039635
Additionally, there is a WebLogic Plug-in for Maven in more recent WebLogic releases that you can use for deployments in conjunction with Maven.

Oracle JDBC web service in Apache Tomcat 5.5 can't authenticate with DB

I installed a java web service on a machine that accesses an Oracle DB via JDBC on the same network. The service was functioning fine for several months until this morning when I installed another applicaiton that access the database using ODP.NET. I'm trying to figure out what went wronge to cause the ORA-01017 exceptions that I'm getting. This generally means that the login credentials are invalid, but the login credentials haven't changed. I also verified it the service's log4j output that it is indeed still trying to connect to the DB correctly.
I realize I don't have much to go off of here, but I'm trying to figure out what other dependencies that. The web service came packaged with ojdbc14.jar, so that tells me that it targets java1.4, but presumably would work fine in later java versions. Not too sure about it working with later java versions, however, it was working fine until today.
Does OJDBC rely on tnsnames.ora. If it depends on how the service uses OJDBC, then I'm not sure which it is doing. I suppose it's possible I deleted the tnsnames.ora, but that is a bit of a longshot. I also tried manging Apache Tomcat (running on Win Server 2003 x64) to target different java jvm versions, but to no avail. It was initially targeting the default jvm.
Are there other dependencies that I've missed here, or any diagnostic measures I could try? THe same web service is running on another machine on the same network which I am pretty sure is configured exactly the same. Again, it was working on both machines until today, and is now just working on the one.
Tomcat targets JDK 7.
Looks like replacing ojdbc14.jar with ojdbc6_g.jar did the trick. No idea why it was the case only for 1 of the 2 machines. ojdbc6 targets JDK 6, but ojdbc14 did, and should have continued to work. If anyone has any additional insight here, let me know.

Two Hudson Masters on the same Windows Server

I want to setup two Hudson Masters on the same Hardware. This will make administering Hudson easier, since both servers are used by two different (and independent) teams.
So far I tried to install one server as a service. I verified the installation and it is running ok. I than copied the installation into another path and changed the service information (different service Name and description) and the httpPort. I then create the service, once using sc.exe create and once using hudson.exe install. In both cases the server started. However, the configuration page acted goofy. So this approach is either not working at all or I missed another configuration file.
Does anyone has an idea how to accomplish this?
I tried the same approach as documented in the question but avoided the copying of the original installation. So I created two folders and put a copy of hudson.war in it. Then I performed the following steps for both folders.
Start Hudson with java -jar hudson.war
Installed Hudson as a service using the web UI
went into the Hudson Base Dir and ran hudson uninstall
modified the port and the Service information in hudson.xml
installed the service through command line hudson install
Now I have two services and the first quick test looks promising.
May I suggest:
run two instances of Tomcat
have each Tomcat running on its own HTTP port
deploy HUDSON.WAR in each Tomcat
set CATALINA_OPTS for each Tomcat to point to a different HUDSON_HOME

Resources