Macros of Item Key in Zabbix - macros

I am new to Zabbix, I have a question how the Macros works in the Item Key
Entry in zabbix_agentd.win.conf:
UserParameter=datt[*],echo $1
The hosts items:
The latest data:
Why the Macros of HOST.HOST shows correct while TIME and DATE wrong.

As per the Zabbix manual, {HOST.HOST} is supported in many locations, including Item key parameters. Both {DATE} and {TIME} are only supported in the following locations - notice item key parameters missing there:
Trigger-based notifications and commands
Discovery notifications
Auto-registration notifications
Internal notifications

Related

Getting user/users details based on user name/alias as parameter in azure devops

I've a tool(web application) which creates work-items in azure devops. (skipping the unnecessary details), just like how we assign any user a particular work-item from the Assigned To dropdown in azure devops, I too have a dropdown which when user enters any name/alias, a list of users starts showing based on the input.
The api which I was using in the backend was
https://abcorganization.vsaex.visualstudio.com/_apis/UserEntitlements?top=10&filter=name+eq+%27Tejas
Here filter=name+eq+%27Tejas in the query parameter helps to query the api and used to give set of users whose name starts with Tejas. It can be email alias too.
But for some reason, that doesn't work anymore. My guess, they've deprecated that API version
So in my search to find the alternative/answer, I came across the following documentation:
(https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/users/get?view=azure-devops-rest-5.1) in which the API given is: https://vssps.dev.azure.com/abcorganization/_apis/graph/users/{userDescriptor}?api-version=5.1-preview.1
Here the userDescriptor is some sort of unique key of AAD related to a particular user. (which I certainly can't use to fulfill my purpose).
The other thing which I've tried is the below query parameters but it still didn't worked out
https://vssps.dev.azure.com/abcorganization/_apis/graph/users?subjectTypes={subjectTypes}&continuationToken={continuationToken}&api-version=5.1-preview.1
So is there anyway/api which can fullfil my purpose or is it that I'm using this new API in a wrong way or something?
Any help would be much appreciated
I believe it should be $filter in the query. You are also missing the closing quote.
(See docs for more details)
https://abcorganization.vsaex.visualstudio.com/_apis/UserEntitlements?top=10&$filter=name+eq+'Tejas'
Use this. I tested it and worked for me:
https://vsaex.dev.azure.com/{organization}/_apis/userentitlements?$filter=name+eq+%27{name}%27&api-version=6.0-preview.3
Replace {organization} and {name} as needed

SAPUI5 List Item Template same value repeated

I built an oData service that delivers two or more records from a database table.
When testing it with /IWFND/GW_CLIENT it works great and I get the information I need.
But when I bind it to a StandardList item which is defined as template, then I only get two List Items (which is correct because the oData Service delivers two records) but they have the same value which is not correct because the value should be different.
I'll add some screenshots for better understanding.
Maybe someone can tell me why the list is not display the correct items.
Thanks
Started App view
GW-Client result
This is because you have oData entity keys which have same values (Mandt='200',Kunnr='10') for both the records. This is the reason for the repeated values. You should have unique key values such that each entry is uniquely identifiable.
To fix this, you should keep properties which have unique values as keys or add multiple properties as keys in your gateway service implementation.

Yodlee Aggregation REST API register3 userPreferences Options

I'm searching through the Aggregation API reference and I can't find a comprehensive list of the possible key-value pairs you can supply for the userPreferences parameter to register3. My reading of the documentation is that the key and value are tilde-separated, but since none of the sample preferences identified in the Description match the sample key/value pairs in the Example column. The actual user preferences must be documented somewhere, but where?
Or have I incorrectly assumed that these are user preferences that affect Yodlee functionality? Is this just a generic dictionary Yodlee is providing into which I can insert and later retrieve values by any keys I make up, without having any other effect on Yodlee functionality?
Thanks
Some of the keys use what yodlee call "EXTENTED_USER_PROFILE_PREFIX". I was unable to find a list of prefixes but the following key value pairs work.
"userPreferences[0]", "PREFERRED_CURRENCY~AUD"
"userPreferences[1]", "PREFERRED_DATE_FORMAT~dd/MM/yyyy"
"userPreferences[2]", "com.yodlee.userprofile.TIMEZONE~GMT"
If you need more information there might be some answers in the javadoc but keep in mind it is for the SOAP API.
/com/yodlee/soap/core/usermanagement/userregistration/UserRegistration.html#register3
OK i have looked through the Java docs and cant see anything helpful. The parameter is a NVP but the keys are not specified, and i cant find anything related that would provide a hint. Given the input keys also don't follow an obvious translation i feel this could be difficult to guess.
I would have thought that an exception would have been thrown for invalid keys, but it does not.
To set the time zone i have tried:
"userPreferences[2]", "PREFERRED_TIME_ZONE~GMT"
"userPreferences[2]", "PREFERRED_TIMEZONE~GMT"
"userPreferences[2]", "TIMEZONE~GMT"
None adjust the returned prefered timezone. To be honest even if it did i doubt i would achieve what i am trying to achieve.
these settings did work however:
"userPreferences[0]", "PREFERRED_CURRENCY~AUD"
"userPreferences[1]", "PREFERRED_DATE_FORMAT~dd/MM/yyyy"

Couldn't retrieve all the memcache keys via telnet client

I want to list all the keys stored in the memcached server.
I googled for the same, I got some python/php scripts that can list the same. I tested it but all went failed and none gave me full keys. I can see thousands of keys using telnet command
stats items
I used perl script that uses telnet to list keys, but that got failed too. I mean that script is listing keys but not all of them.
Do I need to reconfigure telnet ? Is there any other way ?
memcache does not provide an api to exhaustively list all keys. "stats items" is as good as it gets to list the first 1M of keys. More info here: http://www.darkcoding.net/software/memcached-list-all-keys/
Not sure if that helps you but redis (which could be considered a superset of memcache) provides a more comprehensive API for key listing and searching. You might want to give it a try.
It you use python-memcached, and would like to export all the items in memcache server, I summerized two methods to the problem in this question: Export all keys and values from memcached with python-memcache

Include timestamp in a xmpp pubsub item

I read all those discussions and mailing lists which propose how to standardize the inclusion of a timestamp in a pubsub item but there is no answer how it is done practically today. Do I have to tweak my server to include the creation timestamp (because each server stores that information for some reason ;) or are there plugins or known source code modifications for openfire or ejabberd?
I have entries which are published in json format and not in Atom. BTW where the "published" and "updated" timestamps come from in the XEP-0060? Will the timestamp be added automatically if I configure the node to publish in Atom?
You would have to tweak your server, since the timestamp is not part of the spec.
The only way to have timestamps right now, is to put them in at the application level, which means the publisher is inserting it into the payload.