Jetty Connection - console

is there a way to log something into the server console with Jetty, specifically, when a person connects is there a way to print that into the console?
Anyone have any clue how to do any of this or can link me to websites explaining it?
I haven't found much on google about it at all.
Thanks!

Which version of jetty? You can simply enable debug logging on the connectors or the like. Whatever it is that you exactly want/need to get logged.
However if you're simply looking for a request log have a look at this:
http://www.eclipse.org/jetty/documentation/current/configuring-logging.html#configuring-jetty-request-logs

Related

Trigger does not show any output in my custom Integromat app

I work with the trigger (not instant). I see in the console that API responds to me, but module output is empty, why?
I use the 'All' option when running it in the scenario.
Could you please share the Communication config and the example of the response? There has to be something wrong with the processing of the response.

How does one insert a passive check result remotely into Opsview 6?

We are working with Opsview 6. I would like to insert a passive check result into the monitoring server remotely. The documentation is very vague about this, saying that it can be done via the API (no reference to this in the API docs), and that it is a part of the results forwarder. I don't see any open ports related to the results forwarder, so there must be something that needs to run to accept input somewhere, I'm just clueless what that might be. I'm willing to work with NSCA, NRD, or the API. Whatever works.

OpenStack Mitaka: command line client takes a long time to respond

I've been using OpenStack on and off for a while now. After about a year I installed Mitaka (with keystone+swift) and noticed that the openstack command (CLI client), as well as the swift command are taking a really long time to respond - like 5 or 7 seconds. It didn't use to be like that.
Has there been a significant change in the design that is causing this issue? Maybe something wrong with my setup? Or any thoughts to debug this?
Thanks
I think the best way to debug this is using curl do check if it's something on keystone(?), swift, your machine or the openstack client.
Since I didn't say which authentication method you are using, I will recommend this awesome post from Swiftstack to help you to authenticate:
https://www.swiftstack.com/docs/cookbooks/swift_usage/auth.html
If you get more info, it's going to be easy to find your bottleneck.

Alfresco Error reporting via e-mail

Is there a way to set up Alfresco to send email to admins on each server error as in Python Django Error reporting via e-mail?
Thanks in advance for any hint.
The first thing I would say is that you need to really look in to the viability of using e-mails to help admins spot problems with servers. Sending an e-mail can be a heavy operation and as such, particularly with many repeated errors, can make an existing problem worse. And what about the cases where the ability to send e-mails goes down or a problem so severe happens that it simply cannot send e-mails?
For properly setting up reporting on your servers you might want to look at Logstash + Kibana:
http://alfresco.blog.redpill-linpro.com/2014/07/01/alfresco-logging-with-logstash-and-kibana-part-1-the-basics/
That being said, it should be possible to configure log4j to use an SMTP appender if that is the route you want to go down:
What is the proper way to configure SMTPAppender in log4j?
In Alfresco 4.2 you should need to add something such as the following to the log4j.properties in tomcat/webapps/alfresco/WEB_INF/classes/:
#CONFIGURE SMTP
log4j.appender.email=org.apache.log4j.net.SMTPAppender
log4j.appender.email.SMTPHost=mail.mydomain.com
log4j.appender.email.SMTPUsername=myuser#mydomain.com
log4j.appender.email.SMTPPassword=mypw
log4j.appender.email.From=myuser#mydomain.com
log4j.appender.email.BufferSize=1
log4j.appender.email.EvaluatorClass=TriggerLogEvent
log4j.appender.email.layout=org.apache.log4j.PatternLayout
log4j.appender.email.layout.ConversionPattern=%m

Qt IPC - Named Pipes

I'm developing a qt browser plugin and want to implement named pipes in it. I tried the basic fortune cookie example provided with the QLocalSocket and QLocalServer in an exe and it works fine. But when i try to implement a similar thing in the browser plugin, making a page where the plugin is present listen to a name (like a server) and another tab/window which tries to connect to this. But this doesn't seem to work. When i do a client->errorString() it prints out "Unknown Error".
Any help on what I'm doing wrong?
Thanks a ton in advance
Put debug output to check the following things:
Has your client asked for a connection?
Has the server received a request to setup a connection?
Has each entity created it's QLocalSocket instance?
What does QLocalSocket::state() say on both entities?
Possible causes:
Have both of your code paths received cpu-time (seperate threads in the same process?)?
Is there a deadlock?

Resources