GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MAARK/pingdom-zabbix: Pingdom to Zabbix

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.atom-build.yml
.atom-build.yml
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
pingdom-zabbix.ini.sample
pingdom-zabbix.ini.sample
 
 
pingdom-zabbix.py
pingdom-zabbix.py
 
 
zbx_export_templates.xml
zbx_export_templates.xml
 
 

Repository files navigation

pingdom-zabbix.py

Maintainer: Mark Mercado [email protected]

Overview

This script brings Pingdom checks into Zabbix. It uses Pingdom's API to fetch the checks and statuses (currently, 'status' and 'lastresponsetime'), and then produces zabbix_sender commands to load the data into Zabbix. Currently, we just cron the script based on the granularity we're interested in.

Pingdom

For its API, Pingdom uses a combination of HTTP authentication (your Pingdom credentials) and an HTTP header (App-Key). By way of the Pingdom interface, you can create your application key.

Zabbix

For Zabbix, we need a host and a template. We've created a host named 'Pingdom' and a template named 'Template Pingdom'. The Pingdom template uses Zabbix low-level discovery to create the items dynamically (key1 in the configuration file). Based on the discovered items (i.e., your Pingdom checks), it'll create two items (based on key2 and key3), Pingdom status and lastresponsetime. The script turns Pingdom's status from 'up' to 1 and 'down' to 0 (could do it with Zabbix value maps, but I didn't feel like it at the time).

Usage

Rename pingdom-zabbix.ini.sample to pingdom-zabbix.ini and update accordingly.

Python modules

import json
import re
import requests
import subprocess
import ConfigParser

About

Pingdom to Zabbix

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.