Skip to content

Instantly share code, notes, and snippets.

@x1wins
x1wins / disk-check.json
Created Mar 29, 2017 — forked from mtchavez/disk-check.json
Consul Nagios Example Checks
View disk-check.json
{
"check": {
"id": "check-disk",
"name": "check-disk",
"script": "/usr/lib/nagios/plugins/check_disk -w 30% -c 5%",
"interval": "1m"
}
}
@x1wins
x1wins / disk-check.json
Created Mar 29, 2017 — forked from mtchavez/disk-check.json
Consul Nagios Example Checks
View disk-check.json
{
"check": {
"id": "check-disk",
"name": "check-disk",
"script": "/usr/lib/nagios/plugins/check_disk -w 30% -c 5%",
"interval": "1m"
}
}
View NiochatServer.java
package niochat;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;
import java.io.IOException;
import java.util.*;
public class NiochatServer implements Runnable {
private final int port;