I am using checK_mk 1.2.6p12 version I want to trigger an event on arrival of certain messages of crictical state.
But I am unable to find where to put my shell script so that it performs actions if something goes down.
please help me out am stuck on it.In my Global Settings no error console options is showing.
Not sure 1.2 is the same, maybe it helps for 1.4 version or you already solved it.
Go to Event Console, click in Settings.
Create an Action, and choose in the "Type of Action" choose "Execute via Shell Script" and write your own script.
Create a Rule Pack.
Create a Rule with "Match syslog priority" option to CRITICAL.
Send an event and see if it trigger your Action.
Related
I have recently learned working on Adobe Launch. I wanted to know in the console tab on a webpage which rules are getting fired and which are not met. I used the launch and DTM Switch and it gave me the names of all the rules but I wanted them to be filtered. For example:- if I want to look at the rules that are being fired then rules which are not met should not be in the list.
Seeing the rules using launch and DTM switch is time consuming and error prone.
Can someone please help me with this thing?
Ok so 2 options to enable Adobe Launch Debugging in console.
First one is to type _satellite.setDebug(true) in the developer console.
Second is to install Adobe Launch command https://chrome.google.com/webstore/detail/launch-command/nkjhamgjeocefocmpbcjfmohkjgildki and switch the Debug switch.
In each case you will need to reload your page.
You will notice logs that are now present prepended by 🚀 in your developer console.
These are the Adobe Launch debug logs and the ones when you use _satellite.logger.log
To see which rules fired which means there met the event and conditions and actions was executed then filter by fired in your developer console.
You will see something like 🚀 Rule "name of my rule" fired.
You can also see the rules that did not fire for specific reason by looking at logs:
🚀 Condition "my condition name" for rule "my rule name" was not met.
I would advise you to create tagging naming standards: https://dev.to/alcazes/adobe-launch-tagging-standards-3aak as it will help you read the logs.
I have completed the overview section and finally was trying to publish my actions but whenever i click create a release button it does not show anything . I am struck on this. Is this server error or something else?
Finally, I was able able to solve this issue. The problem was causing due to a Ad blocker.
I'm new to Advanced Installer. After Installing the file setup, I need to run a ".bat" file before running my ".exe" file every time. I found to add it, setting it's attributes as (Hidden, Vital and System), but I need to run it every time before lunching the application.
Please help me, Thanks
If you're launching the application as a Finish Action from the Dialogs page, here are the steps:
go to Custom Actions page and add a Launch File custom action without sequence to launch the BAT file
enable the custom action's "When the system is being modified (deferred)" and "Run under the System account with full privileges (no impersonation)" options
go to Dialogs page, select the ExitDialog from First Time Install in the Install Sequence
select the Finish button then go to its Published Events tab and enable "Show all events" option
add an "Execute custom action" event passing in the "Launch file" created above as an argument
set the event's condition to the checkbox's name so the BAT doesn't execute unless the user selects the checkbox to launch your application
make sure the event is the first one in the Published Events list so it gets executed before the event that launches your application
There are a couple of articles to help you with other details:
How to launch a CMD or BAT file?
How to launch a file after an installation?
The main thing you need to consider is to run the event that executes the BAT custom action before the event that launches your application.
Also, I'm not sure you can do this from a Professional project type. You may need Enterprise or Architect.
I want to do some automation with SQL Server management studio and need to track what Windows messages were sent to it when I click the "Execute" button. Basically what I want to do is:
When the user press the "Execute" button or press F5, intercept it.
Check the text in the editor, it the first line is --sqlcmd, then change the query mode to "SQLCMD mode". Otherwise ensure the query mode is not "SQLCMD mode".
Execute as normal.
I want to use AutoHotKey's PostMessage function to do it. However I don't know how to track what messages to post. Anyone can give some suggestions?
I suggest you to create you own add-in. You have more control when you work from "inside".
There are some samples and projects available, here is one that I have created:
http://www.ssmsboost.com/create-own-ssms-2012-add-in-sample-code-with-download
I have an EPiServer project which is using the sequential workflow to validate content changes. This works fine, however we have a slight issue where content reviewers are just clicking Publish when they are happy with an editor's work. What they should be doing is using the workflow task window and indicating their approval through that.
To enforce this behaviour I would like to disable the Publish button in the content editor under certain circumstances (i.e. when there is an outstanding workflow task linked to the current page).
Does anyone have any ideas how I can do this, or even an alternative solution to the problem altogether?
Actually, I think you may want to revisit your workflow logic.
If a user with publishing rights publishes a page: that should be considered an approval. You could easily hook up to the Published event to see if the page is part of a currently running workflow.