Skip to content

Commit

Permalink
core: Renamed project to nagocheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmathis committed Jul 22, 2018
1 parent e193348 commit 60af196
Show file tree
Hide file tree
Showing 26 changed files with 67 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nagopher-checks
nagocheck
dist/

# Created by .ignore support plugin (hsz.mobi)
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
builds:
- main: ./
binary: nagopher-checks
binary: nagocheck
flags: -a -tags netgo
ldflags: -s -w -X main.BuildVersion={{.Version}} -X main.BuildCommit={{.Commit}} -X main.BuildDate={{.Date}}

Expand All @@ -26,7 +26,7 @@ archive:
nfpm:
vendor: Pascal Mathis
maintainer: Pascal Mathis <ppmathis@noreply.smx.li>
homepage: https://github.com/snapserv/nagopher-checks
homepage: https://github.com/snapserv/nagocheck
description: Reliable and lightweight Nagios plugins written in Go
license: GPL-3.0
bindir: /usr/bin
Expand Down
2 changes: 1 addition & 1 deletion .idea/copyright/GPL_3_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/markdown-exported-files.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/nagocheck.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GORELEASER = goreleaser
BUILD_DATE := $(shell date +'%Y-%m-%d_%H:%M:%S')
BUILD_COMMIT := $(shell git show -q --format='%H' HEAD)

PACKAGE = nagopher-checks
PACKAGE = nagocheck
TARGET = $(CURDIR)/$(PACKAGE)
PKGS = $(shell $(GO) list ./... | grep -v "$(PACKAGE)/shared")

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# nagopher-checks
# nagocheck

[![Project Release](https://img.shields.io/github/release/snapserv/nagopher-checks.svg)](https://github.com/snapserv/nagopher-checks/releases/latest)
[![Project License](https://img.shields.io/badge/license-GPL--3.0-blue.svg)](https://github.com/snapserv/nagopher-checks/LICENSE.txt)
[![Project Release](https://img.shields.io/github/release/snapserv/nagocheck.svg)](https://github.com/snapserv/nagocheck/releases/latest)
[![Project License](https://img.shields.io/badge/license-GPL--3.0-blue.svg)](https://github.com/snapserv/nagocheck/LICENSE.txt)
[![Go Version Compatibility](https://img.shields.io/badge/go_version-1.9_--_1.10-brightgreen.svg)](https://golang.org/)
[![Travis CI Build Status](https://img.shields.io/travis/snapserv/nagopher-checks/master.svg)](https://travis-ci.org/snapserv/nagopher-checks)
[![Coveralls Coverage Status](https://img.shields.io/coveralls/github/snapserv/nagopher-checks/master.svg)](https://coveralls.io/github/snapserv/nagopher-checks?branch=master)
[![Travis CI Build Status](https://img.shields.io/travis/snapserv/nagocheck/master.svg)](https://travis-ci.org/snapserv/nagocheck)
[![Coveralls Coverage Status](https://img.shields.io/coveralls/github/snapserv/nagocheck/master.svg)](https://coveralls.io/github/snapserv/nagocheck?branch=master)
[![Project Copyright](http://img.shields.io/badge/copyright-Pascal_Mathis-lightgrey.svg)](https://www.pascalmathis.com/)

### Table of Contents
Expand Down
2 changes: 1 addition & 1 deletion commands.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const nc_binary = "/usr/bin/nagopher-checks"
const nc_binary = "/usr/bin/nagocheck"
const nc_base_args = {
"--verbose" = {
set_if = "$nc_verbose$"
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -20,9 +20,9 @@ package main

import (
"fmt"
"github.com/snapserv/nagopher-checks/mod-frrouting"
"github.com/snapserv/nagopher-checks/mod-system"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/mod-frrouting"
"github.com/snapserv/nagocheck/mod-system"
"github.com/snapserv/nagocheck/shared"
"gopkg.in/alecthomas/kingpin.v2"
"runtime"
"strings"
Expand Down Expand Up @@ -53,7 +53,7 @@ func main() {
}
}

kingpin.Version(fmt.Sprintf("nagopher-checks, version %s (commit: %s)\nbuild date: %s, runtime: %s",
kingpin.Version(fmt.Sprintf("nagocheck, version %s (commit: %s)\nbuild date: %s, runtime: %s",
BuildVersion, BuildCommit, BuildDate, runtime.Version()))
kingpin.CommandLine.HelpFlag.Short('h')
kingpin.CommandLine.VersionFlag.Short('V')
Expand Down
6 changes: 3 additions & 3 deletions mod-frrouting/bgp_neighbor.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -22,8 +22,8 @@ import (
"encoding/json"
"fmt"
"github.com/snapserv/nagopher"
"github.com/snapserv/nagopher-checks/mod-frrouting/goffr"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/mod-frrouting/goffr"
"github.com/snapserv/nagocheck/shared"
"math"
"net"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion mod-frrouting/goffr/goffr.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions mod-frrouting/init.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -19,8 +19,8 @@
package modfrrouting

import (
"github.com/snapserv/nagopher-checks/mod-frrouting/goffr"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/mod-frrouting/goffr"
"github.com/snapserv/nagocheck/shared"
)

type frroutingModule struct {
Expand Down
4 changes: 2 additions & 2 deletions mod-system/init.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -18,7 +18,7 @@

package modsystem

import "github.com/snapserv/nagopher-checks/shared"
import "github.com/snapserv/nagocheck/shared"

type systemModule struct {
*shared.BaseModule
Expand Down
4 changes: 2 additions & 2 deletions mod-system/interface.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -21,7 +21,7 @@ package modsystem
import (
"fmt"
"github.com/snapserv/nagopher"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/shared"
"math"
)

Expand Down
2 changes: 1 addition & 1 deletion mod-system/interface_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
4 changes: 2 additions & 2 deletions mod-system/load.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -21,7 +21,7 @@ package modsystem
import (
"fmt"
"github.com/snapserv/nagopher"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/shared"
"math"
"runtime"
)
Expand Down
2 changes: 1 addition & 1 deletion mod-system/load_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
4 changes: 2 additions & 2 deletions mod-system/memory.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -21,7 +21,7 @@ package modsystem
import (
"fmt"
"github.com/snapserv/nagopher"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/shared"
"math"
)

Expand Down
4 changes: 2 additions & 2 deletions mod-system/memory_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -20,7 +20,7 @@ package modsystem

import (
"fmt"
"github.com/snapserv/nagopher-checks/shared"
"github.com/snapserv/nagocheck/shared"
"io/ioutil"
"regexp"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion shared/module.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions shared/plugin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -95,8 +95,8 @@ func (p *BasePlugin) ExecuteCheck(check *nagopher.Check) {
// chosen wisely) and a persistent store, which is also named by the unique key passed. This is especially useful when
// used with contexts like 'DeltaContext', which compare the current measurement against a previously measurement.
func (p *BasePlugin) ExecutePersistentCheck(check *nagopher.Check, uniqueKey string, store interface{}) {
// Prefix unique key with 'nagopher-checks.'
uniqueKey = "nagopher-checks." + uniqueKey
// Prefix unique key with 'nagocheck.'
uniqueKey = "nagocheck." + uniqueKey

// Attempt to grab flock on unique key
fileLock := p.createFlock(uniqueKey)
Expand Down
2 changes: 1 addition & 1 deletion shared/store.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion shared/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion shared/values.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* nagopher-checks - Reliable and lightweight Nagios plugins written in Go
* nagocheck - Reliable and lightweight Nagios plugins written in Go
* Copyright (C) 2018 Pascal Mathis
*
* This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 60af196

Please sign in to comment.