Giter Site home page Giter Site logo

nagios-check-dns-serial's Introduction

check-dns-serial.php

Description

This PHP script has run quite some time as a nagios check plugin. It allows you to check if all nameservers that host a DNS zone are up-to-date and deliver the same serial in the SOA-record of the zone. It was written 2014 by Stephan Schwarz (@stearz)

Usage

check-dns-serial.php <ip-of-primary-dns> <domain.tld>

Exit codes

The script uses exit codes and an output that Nagios can understand

0 - OK
1 - Warning
2 - Critical
3 - Unknown

Variables

The following threshold variables can be set inside the script to control when Nagios should raise a WARNING or a CRITICAL:

# WARNING threshold if serials differ
$warn_threshold_delta  = 5;

# CRITICAL threshold if serials differ
$crit_threshold_delta  = 10;

Requirements

The script requires Net/DNS2.php (PHP Resolver library used to communicate with a DNS server). Install it with sudo apt-get install php-net-dns2 on Debian based systems.

nagios-check-dns-serial's People

Contributors

stearz avatar

Stargazers

J.P avatar

Watchers

James Cloos avatar Russell VT avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.