Zabbix - Display last error message of web scenario in trigger description - zabbix

i want to display web scenario's last error message in trigger description. I have tried this configs, but it displaying only 0 or 1 of failed step. How can i show error message in description?
Expression;
length(last(/Healthcheck/web.test.fail[Healthchecktest],#2))>0 and last(/Healthcheck/web.test.fail[Healthchecktest],#2)=1
Description;
Web scenario "Scenario" failed: {ITEM.VALUE}
As this configuration desc. displaying like;

Related

Power apps. Retrieve values of record with multiple choices in SharePoint list column for a dropdown box

For reference I have recreated this app https://www.matthewdevaney.com/make-a-power-apps-approvals-form/
I changed the equipment column to have multiple values and now some code dosent work because the entry is not a record anymore. I think it is a table now.
I have some code for e.g here;
ViewForm(frm_Request);
Set(varRequest, frm_Request.LastSubmit);
If(varRequest.Status.Value="Submitted",
Office365Outlook.SendEmailV2(
varRequest.Manager.Email,
"IT Equipment Request - Approval Required",
"An I/T equipment request was made for a "&varRequest.Equipment.Value&" by "&varRequest.Employee.DisplayName&". Click here to approve/reject the request."
)
)
at &varRequest.Equipment.Value& (.Value) has an error "expecting record value"
I tried changing this to concat(varRequest.equipment, Value & ",") But it seems to create errors when running the app
Is there a work around for this ?
Im very new to coding and power apps in general so sorry if this is missing any details.
Image of error when running the app after adding concat()

Node-RED Twitter out throws Error 32 when passing msg.params

I'm doing a Visual Rec app on nodered and want to tweet out the resultas as a reply to the original tweet (that reuqested de vis rec).
If I only put the username at the beginning sometimes twitter doesn't show it to the user because of the "in_reply_to_status_id" field being empty, so I need to pass thos parameters though msg.params.
When I do that, the tweet out node throws:
"Error: HTTP Error 401: Unauthorized, API message: {"errors":[{"code":32,"message":"Could not authenticate you."}]}"
If I "//" the msg.params line, it tweets just fine.
My params line goes like this:
msg.params=[{"tweet.in_reply_to_status_id":context.global.tweet.id},{"tweet.in_reply_to_screen_name":context.global.tweet.user.screen_name}];
I also tried without the "in_reply_to_screen_name" field (not sure if that's absolutely necessary for the reply), and without the "tweet." part as well.
Any help?!
OK, this worked:
msg.params={"tweet.in_reply_to_status_id":context.global.tweet.id,"tweet.in_reply_to_screen_name":context.global.tweet.user.screen_name};
Thanks Timothy from work!

Zabbix Triggers iregex expression validation

I am a beginner in zabbix agent.I would like to know if the below trigger is syntactically correct? If yes then how do I know if the trigger is fired ?
I am not able to receive email notifications.Kindly help me .
{MDMCenter:eventlog[761848].iregexp("Job.Execute() failed. (ex.Message = System.Exception: Exception: Failed in Batch: [1] of \[[0-9]*\] ---> System.Exception: Exception: Failed in Batch: [1] of \[[0-9]*\]] ---> System.IO.IOException: The network name cannot be found.")}
The expression as you have it here seems to be invalid - looks like you have accidentally added some example value inside the function parameters.
You can look for the trigger firing on the dashboard or in the Monitoring -> Triggers page.
In general, before even looking at triggers, verify that data is coming in and that the values match your expectations. If some trigger still does not seem to work, always provide exact trigger expression and a few example values, as well as all the things you have checked (server being running, item values being recent and so on).

Get a nice success notification message from trigger

I'm trying since two weeks to get a success message from MySQL.
For example, in PHPmyadmin if you set a trigger containing the following line
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "My personal error text"
You get a nice red error and the execution is cancelled
I want to get a nice green message on execution to notify that one of my condition has been met IF new.city=='CHICAGO'
Any Idea? i'm searching since 2 weeks now
I we can get an error message, can we get a success message?
A success message from phpmyAdmin
An error i created
Sorry, that's not something phpMyAdmin is designed to do -- you're trying to find a way to hook in to the messaging system in a way that phpMyAdmin isn't expecting. For that matter, MySQL doesn't really expect you to send success messages; only in the case of failure.

"Invalid Column Name" error on old database value

I have made changes to my database on one of my table. Before I had this field:
ORDER_AMOUNT
which was a NUMERIC(5,2) field.
The field has been renamed like this:
ORDER_DETAIL_AMOUNT
But ever since then each time the app tries to take something from this table, this error occurs:
Invalid column name 'ORDER_AMOUNT'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'ORDER_AMOUNT'.
I'm completely new to MySql and I'm using Visual Studio 2012, can anyone help me out understand what's the problem and how to fix this?
Same thing then : You renamed it in the design so you have to rename it in your app to.
There is probably a place where you refer to ["ORDER_AMOUNT"]. Now the app expects to see this column in the database. Since it is now called ["ORDER_DETAIL_AMOUNT"] it won't find it and will give you the error.
Change the name in the app. And Voila.