Miscellaneous nagios checks
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
check_nrpe_http
checks
prometheus
qicinga
.gitignore
README.md

README.md

jp_nagios_checks

Miscellaneous nagios checks

check_init_service

Checks on a Red Hat / Centos / Ubuntu / Debian system whether services in init are running.

USAGE: check_init_service --services service1,service2

PARAMETERS:

--services
	comma separated list of services to check, at least one required

--matchregex
	optional regular expression to match against service svcname status
	output. Defaults to (?:is running|start/running)

--svccmd
	optional. specify the "service" command for your OS (eg on Centos 7
	this would be /bin/systemctl, on Centos 6 /sbin/service, otherwise
	it will try & guess)

INSTALLATION

Unless you are using systemctl (ie Systemd) you must have a sudo entry for the user running this check (eg nagios). Also ensure that you disable requiring a tty for this user in sudoers

Defaults:nagios !requiretty
nagios ALL = NOPASSWD: /sbin/service * status

check_jar_sig_expire

Checks whether the signature on a given JAR file has expired or is close to expiry.

check_pywhois

Checks whether a domain name is close to expiry

check_c2c

Deprecated as format on webserver changed - see check_darwin

check_darwin

Checks if National Rail trains are running on schedule.

Usage: check_darwin -f [fromstationcode] -t [tostationcode]

eg for Southend Central to Limehouse

check_darwin -f SOC -t LHS

Requires registration for National Rail LDBWS https://lite.realtime.nationalrail.co.uk/OpenLDBWS/

check_nrpe_http

An alternative transport for remote nagios checks than NRPE - HTTP to get through firewalls etc.

Install check_nrpe_http_cgi.py as a cgi script on your client server and use check_nrpe_http on your Nagios / Icinga server to call the check.

check_last_lines

Check the last n lines of a file (typically a logfile) for a line that matches a regex. If it matches, exit with CRITICAL. Use this for detecting fatal errors.

Usage: check_last_lines -f FILENAME -n NUMLINES -m MATCHREGEX

check_mysql_dbs

Check integrity of your mysql databases.