using zabbix API to create a grid view from python

Intro I have a cluster to monitor using Zabbix 2.0, everything works fine and I have all the data I need on Zabbix, but the way zabbix displays the data is not optimal for our use case. At the...

Zabbix API returning incorrect value when using host.get(groupids)

I am trying to use Zabbix's API to return all of the hosts belonging to a particular host group. Reading the documentation on host.get, I thought that the groupids parameter would be exactly what...

Zabbix 2.2 API get Processor load (1 min average) min/max value from_time, till_time

I want to get the CPU usage average/max for a month of a host (for 1 min average per core). I can get this in the Zabbix web gui CPU load graph. I checked the pyzabbix example and the zabbix api...

getting history from zabbix with python api

i have one question about getting history from zabbix with python. I'm only start learn python, so please don't dislike) so, i have little script python, who get the host, who showing all items,...

Python not able to pickle ZabbixAPI class instance

I'm not able to pickle a pyzabbix.ZabbixAPI class instance with the following code: from pyzabbix import ZabbixAPI from pickle import dumps api =...

Zabbix Create new item and add data value using python script

newbie on zabbix and python here. I have a python script and it will: Retrieve item "item_key" from the zabbix, if it doesn't exist, it will create using the zabbix api, ...

Zabbix get IT service statistics using python script (pyzabbix)

I need to get information about IT service like: Total Downtime Total Downtime % Total Uptime Total Uptime % List of outages with dates, start time, end time and duration How can I get this...

Python - Pyzabbix Output Format

I'm learning Python as i need to interact with Pyzabbix. So, in the following output i just needed the last field, but i cant find a way to do this: **EXAMPLE_HOSTNAME {u'triggerid': u'8119464',...

Can not fetch the history data of memory when using zabbix api

I was trying to get history data of vm.memory.size[used], vm.memory.size[cached], vm.memory.size[buffers], vm.memory.size[total] using history.get method, but it returned nothing. I can get itemid...

Parse Zabbix output format

I am using pyzabbix to interface with Zabbix and retrieve what I want: #!/usr/bin/env python # import import sys, subprocess, time, datetime, csv, platform from pyzabbix import ZabbixAPI #...

pyzabbix requests.exceptions.HTTPError: 504 error using trigger.get method

I was using pyzabbix and trying to use trigger.get method to get all trigger info, but returned 504 Gateway Timeout exception. It never happened before, when I tried to get all the single host...

Getting single output

Where do I go wrong? I'm connecting to a zabbix server. Per host I get 9 lines with output but I only need the last clocked value. This is the code I'm using. import sys import logging from...

Format the output data

I'm a novice in programming. Faced with such a problem. Are monitoring servers using Zabbix. It has its own API. The challenge is through a script in Python to connect to the monitor server and...

Getting serial number from Host Inventory with Zabbix API (python)

I'm trying to fetch a seriel number of a router with Zabbix API. I use the following code: from pyzabbix import ZabbixAPI username = "myuser" password = "mypasswd" servername =...

Pip ignores dependency_links in setup.py despite proper format

Looking as solutions in the past such as https://stackoverflow.com/questions/12518499/pip-ignores-dependency-links-in-setup-py, this configuration should work. Relevant content of my...

Re-execute Python script when error Zabbix

Hello I have the following Python script raspi.py: import RPi.GPIO as GPIO import time from pyzabbix import ZabbixSender, ZabbixMetric #GPIO.setmode(GPIO.BCM) #GPIO.setup(22,GPIO.IN) while 1: ...

pyzabbix get hostid from hostname

I'm just starting to use pyzabbix. I'm wanting to find a specific host's ID from it's name. All the examples I read about do something like this, where the desired host_id is the first element...

Microsoft.Scripting.SyntaxErrorException: "unexpected token ','" how to fix?

I'm new in programming on c# and python I'm using IronPython library for visual studio I have this problem: Microsoft.Scripting.SyntaxErrorException: "unexpected token ','" , when i run c# code. I...

pyzabbix Zabbix sender

I am looking to send a few items to zabbix using Zabbix-Sender function of pyzabbix. As a test I am running the below code - from pyzabbix import ZabbixMetric, ZabbixSender, ZabbixResponse metrics...

Using python script to get all triggers via Zabbix API

I am using Python Script with pyzabbix module to get all triggers via Zabbix API. Using the trigger.get() function to get all triggers list. The Script works fine with all other functions like...

Zabbix API - Is there a way to request reduced number of 'trend' or 'history' records for a specific time range

I have been working on a project for a while which needs to convert Zabbix 'trends' and 'history' data to various types of charts, such as line chart or pie chart. The problem is that there might...

API connection issue in docker zabbix appliance

i have installed docker desktop in windows system and installed zabbix docker appliance for testing. with the zabbix appliance i am able to login into the front end of zabbix with...

Unable to retrieve the api token using requests library python

I'm trying to use requests API to login into Zabbix API, but unable to do due to the below issue. I want to achieve the login by pyzabbix module, but I want to use API user authentication...

ModuleNotFoundError: No module named 'pyzabbix'

pyzabbix is a module needed for this script to work. I installed it using pip, please see a confirmation below: WARNING: The script chardetect.exe is installed in 'C:\Users\Christopher...