Skip to content

Instantly share code, notes, and snippets.

View ymdmkhk's full-sized avatar

Yamada Mikihiko ymdmkhk

View GitHub Profile
#! /usr/bin/python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Jun Omae
# Copyright (c) 2024-2025 Yamada Mikihiko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ymdmkhk
ymdmkhk / show_excluded_networks.py
Last active April 26, 2020 06:00
Get all IPv4 network addresses which exclude specified networks addresses
#!/usr/bin/python
import sys
import ipaddress
def do_exclude(networks,target):
results = []
for network in networks:
if(network.overlaps(exclude)):
results.extend(network.address_exclude(exclude))
@ymdmkhk
ymdmkhk / zabbix_template_backlog_disk_usage.xml
Last active May 1, 2019 11:45
ZabbixでBacklogの容量使用状況を監視するtemplate。Zabbix 4.0 以上に対応。 Apache License
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.0</version>
<date>2019-05-01T11:26:43Z</date>
<groups>
<group>
<name>Custom Templates</name>
</group>
</groups>
<templates>
@ymdmkhk
ymdmkhk / Template_SNMP_DELL_OpenManage.xml
Last active June 20, 2016 02:55 — forked from alice-xu/Template_SNMP_DELL_OpenManage.xml
Zabbix SNMP monitoring template for DELL Openmanage Server Administrator
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-06-18T02:56:36Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>