Score:0

Create a zabbix alert for a numeric value in a file

ec flag
V.A

I am a newbie in zabbix,

I created a script in linux and it will create a file that has a value on it. The data in a file has only one value / number .

For example.

/home/testuser/textfile.txt

If you cat the textfle.txt the output is 50

the data in textfile.txt is 50.

Then I want to create a zabbix alert if the data in that text file will be greater than 100 , zabbix will give me alert.

Is this possible?

Score:0
it flag

as a newbie to zabbix - please know that any alert in zabbix is based on an item value + function so 1st step is to create an item:

zabbix item

Please make sure user zabbix is able to read such file. After Item creation you can proceed with Trigger creation: enter image description here

for future reference I advise you to check and read zabbix ofic. docs. here: https://www.zabbix.com/documentation/5.0/en/manual/config/items/item

Try to give it a try - it's quite good (IMHO) :) .

Yep and don't forget to have some fun while playing with zabbix :)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.