How does Zabbix use the value of a monitor item in a macro - zabbix

I want to use the value from the monitor item in a custom macro. Is this possible now? Zabbix version 4.0.11

Related

Zabbix 6 Remote command not available

I am unable to get the remote command option on zabbix 6 for some reason any ideas?Operation description
if anyone can assist me i have worked through all the user manuals and they don't mention something about requirements on this drop down.
In version 6, commands are available for execution if previously defined in global scripts with Action operation selected as its scope.
In the previous versions, you just needed to select "remote command" as "operation type".
See https://www.zabbix.com/documentation/current/en/manual/config/notifications/action/operation#configuring-an-operation
Zabbix support came back with the answer on this and this is what you need to do.
Please be advised that In Zabbix 6.0 to use Scripts in Operations step you need to create such Scripts in Administration - Scripts section in Zabbix Frontend and set
Scope to Action operation:
enter image description here
Then this Script will be available in your Operations steps:enter image description here
So basically there is a seprate section to go and create your scripts and assign them to the action you want to take.

Zabbix monitoring web server afther 2 or 3 check

I have a web server and I set up monitoring from zabbix access to site. For example access to https://server/test/
First I set up Web scenarios where I checked access to a site then I created Trigger
Problem expression:
{server:web.test.fail[server/test].last()}<>0
Recovery expression
{server:web.test.fail[server/test].last()}=0
It works fine but I want so that the trigger turn on after two or three check but now trigger turn on after one check.
How to set up quantity of attempts in the triger?
I decided the probrem
Problem expression: {server:web.test.fail[server/test].min(#3)}>0
Recovery expression {server:web.test.fail[server/test].max(#1)}=0

How to retain last setting value in windows phone application

I have a windows phone application in which two listpicker and one listbox in a form.
When i press a window start button or close the application and again start the application it does not retain the previous filter value can anybody give a solution .
Thanks
Try using the Application Settings of Isolated Storage where you could store and retrieve the values.
Check out this sample:
Store and Retrieve Application Settings Using Isolated Storage
Or else you could preserve the state of the page:
How to preserve and restore page state for Windows Phone 8
In your App.xaml.cs file are two methods: Application_Activate and Application_Deactivate. In the deactivate function you have to store the current filter in the isolated storage, in your activate you have to load them.
In your page.xaml.cs you have to use the loaded informations in the OnNavigatedTo function.

How to get the current version number of a Trigger.io app

Is there a way to get the app config settings from inside my Trigger.io app without having to repeat the values in the parameters module? Specifically, I'm looking to grab the version number.
I've had success (today) with using forge.config.version
Example:
alert(forge.config.version)
This returned the value I had entered into the app's configuration.
It used to be available under forge.config in Javascript, but isn't anymore. For a while it wasn't available under this key (around v. 1.2). It has since reappeared.

PackageMaker command line option for requires restart

Im creating a build script to automate PackageMaker to install a kext, however I cant see the command line option for requires restart. Anyone know how to do it?
You need to provide the following attribute in the Distribution file of your package.
<pkg-ref ...... onConclusion="RequireRestart"> ...... </pkg-ref>
More details about that attribute :onConclusion
Optional Attribute. Specifies the action to take after the installation
has finished. Values, from lowest to highest:
None (default), RequireLogout, RequireRestart, or RequireShutdown.
The Installer takes the highest value from all enabled
packages and requires the associated action.