Alerting and monitoring for azure webjob [closed] - azure-webjobs

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for a way to monitor and alert when a webjob fails. Is there any tools(Apart from cloudmonix and Newrelic) that can support this?

If you're using the WebJobs SDK, you might take a look at the new ErrorTrigger binding that was recently added (details here). It allows you to define a job function that will automatically be triggered when errors reach a certain threshold. Here's an example function that will be called whenever 10 errors occur within a 30 minute sliding window (throttled at a maximum of 1 notification per hour):
public static void ErrorMonitor(
[ErrorTrigger("0:30:00", 10, Throttle = "1:00:00")] TraceFilter filter,
TextWriter log)
{
// Access error details and send an email/SMS, etc.
// log last 5 detailed errors to the Dashboard
log.WriteLine(filter.GetDetailedMessage(5));
}
See the Error Monitoring wiki page for more information.

Related

Issues and Err0r Levels [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm building an GUI application.
When there is an issue and something happens, I can log the issue and present it to the user. If the error is FATAL, then the app quits and doesn't show anything. If it is ERROR, then I just present the issue to the user.
My question is in some code like this:
char* data = static_cast<char*>(malloc(size));
if (!data)
{
// What to put for errorlevel?
log(ERRORLEVEL, "failed malloc");
}
, which is a failed malloc, should it be FATAL or ERROR?
I had to put a 0 in the title because stackoverflow wouldn't let me have "Error" in the title.
Like this person said, if your app is known to use lots of memory and failed allocation is recoverable, then carry on.
Else if your app doesn't allocate many large buffers, than I would crash the app.

Failed Open Snapshot VirtualBox 6 VERR_SSM_DATA_UNIT_FORMAT_CHANGED [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Anybody else failing to open snapshots once they upgraded their VirtualBox from v5 to v6? Snapshots that were opening just fine are now failing for me with this error ...
HGCM#0: Bad auto mount point size: 0x5
[ver=3 pass=final] (VERR_SSM_DATA_UNIT_FORMAT_CHANGED).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Some very old snapshots are able to open; but most new ones and ALL the ones I save now using VirtualBox 6 are failing to open. Same error above.
My host is Windows10 and the saved VMs are Ubuntu18 guests.
Disclaimer: It should not be an excepted solution as your saved state will be lost.
As I don't have any sensitive data in the saved state. I have discarded the saved state and it works fine for my case.
EDIT: in some cases it looks like if you take a snapshot using the saved state, and then discard the saved state you might be able to recover back to where your saved state was
Steps
Right Click on the OS
Select Discard Saved State... in the context menu.
Screenshot
Host OS: Windows 10, Guest OS: Ubuntu 18.04, on Virtual Box 6.0.0
I have resolved this problem by installing Oracle_VM_VirtualBox_Extension_Pack-6.0.4.vbox-extpack for my VirtualBox-6.0.4-128413-Win

Coldfusion scheduler event Handler cannot be found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Trying to add an Event handler to a scheduled task in ColdFusion11.
I'm supposed to write a component that implements CFIDE.scheduler.ITaskEventHandler and "Specify a dot-delimited CFC path under webroot, for example a.b.server (without the CFC extension)"
I tried to put my component under
ColdFusion11/cfusion/wwwroot
ColdFusion11/cfusion/wwwroot/CFIDE
ColdFusion11/cfusion/wwwroot/CFIDE/scheduler
the Apache webroot
some virtual host webroot
I tried to add some dot notation (?) like CFIDE.scheduler.myEventHandler...
I don't understand if there is some more configuration at server level to understand.
I don't see any error in logs, the scheduler editor just refuse to save an EventHandler he cannot find, with the error
An error occured scheduling the task.
Invalid eventhandler.
Error: Eventhandler myEventHandler could not be found
Any help appreciated
The correct way seems to put the component in ColdFusion11/cfusion/wwwroot/myEventHandler.cfc, set the path as myEventHandler and implement in the component "CFIDE.scheduler.ITaskEventHandler"

Kill process by seeing the console messages via perl script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have script which displays following messages on the console whenever a script runs in perforce. The messages are as follows:
35000 P4V/2010.1/2010.1/260003/v67 R yzhao dfasfd 00:00:04 IDLE none
45000 unnamed p4-python script/v71 10.4.16.60 R integration 06:40:38 IDLE none
Please can you suggest how to kill the 45000 process and not the 35000 process as the second process contains R integration in the line. Also, they are not getting saved in any file.
Thanks in advance.
try this :
print qx(kill -9 45000); # assuming you are signed in as yzhao

Putty - Can't See Top of Error Stack Trace [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am coding on Putty (in C++ for what it's worth) and I am currently encountering an error that gives me a really long stack trace. Apparently, the trace is so long that Putty won't let me scroll to the very top where it originated (where I typed "make"). Is there any way around this (except by obviously fixing the error)?
There are two ways.
Change the Window buffer size. Open Putty, load the connection (don't double-click or hit open), click on Window on the left panel and increase the Lines of scrollback to something like 3000 (I think the default is 200).
Same way, load the connection, and then on the left panel under Session you will have the sub-category logging where you can set a file where the entire session history will be recorded.
To increase the lines of scrollback, before you make a putty connection, click on the category Window and increase the lines of scrollback to 10000 or 20000 as may suit you.