Skip to content

Commit 474b263

Browse files
committed
first commit
1 parent 26cbe0a commit 474b263

File tree

5 files changed

+77
-2
lines changed

5 files changed

+77
-2
lines changed

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,visualstudiocode
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
# Thumbnails
14+
._*
15+
16+
# Files that might appear in the root of a volume
17+
.DocumentRevisions-V100
18+
.fseventsd
19+
.Spotlight-V100
20+
.TemporaryItems
21+
.Trashes
22+
.VolumeIcon.icns
23+
.com.apple.timemachine.donotpresent
24+
25+
# Directories potentially created on remote AFP share
26+
.AppleDB
27+
.AppleDesktop
28+
Network Trash Folder
29+
Temporary Items
30+
.apdisk
31+
32+
### VisualStudioCode ###
33+
.vscode/*
34+
!.vscode/settings.json
35+
!.vscode/tasks.json
36+
!.vscode/launch.json
37+
!.vscode/extensions.json
38+
*.code-workspace
39+
40+
### VisualStudioCode Patch ###
41+
# Ignore all local history of files
42+
.history
43+
.ionide
44+
45+
# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Andrea
3+
Copyright (c) 2020 Andrea Mancuso <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
# check-mk-gitlab-runner
2-
Simple local check to show GitLab Runner status
2+
3+
This is a very simple local check to show GitLab Runner status.
4+
5+
## Install
6+
7+
### Check_MK CRE (check-mk-raw)
8+
9+
Download `custom/gitlab_runner/lib/local/gitlab_runner` and copy
10+
to `/usr/lib/check_mk_agent/plugins/` directory.
11+
12+
### Check_MK CEE (check-mk-enterprise)
13+
14+
The package can be distributed with [Agent Backery](https://checkmk.com/cms_wato_monitoringagents.html)
15+
16+
* Download [latest release](https://github.com/zionio/check-mk-gitlab-runner/releases)
17+
and upload with [Extension Packages](https://checkmk.com/cms_mkps.html)
18+
* Go to _Monitoring Agents_ -> _Rules_ -> _Generic Options_ -> _Deploy custom files with agent_
19+
and create (or edit) a Rule.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#! /usr/bin/env bash
2+
# Copyright Andrea Mancuso 2020 <[email protected]>
3+
#
4+
## Very simple local check to show GitLab Runner status
5+
6+
if type gitlab-runner >/dev/null
7+
then
8+
_version=$(gitlab-runner --version 2>/dev/null | grep ^Version| awk '{print $2}')
9+
_runners=$(gitlab-runner list 2> >(grep Executor | wc -l ))
10+
_status=$(gitlab-runner status > /dev/null 2>&1 && echo 0 || echo 2)
11+
12+
echo "$_status GitLab_Runner - Version: $_version, Runners: $_runners"
13+
fi

gitlab_runner-0.1.0.mkp

817 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)