monitors:gitlab.pl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
monitors:gitlab.pl [2017/07/17 16:50] – created richmonitors:gitlab.pl [2017/07/18 08:51] (current) – [Installation] rich
Line 1: Line 1:
 ====== gitlab.pl ====== ====== gitlab.pl ======
  
-^ Author | [[ rich@nothingatall.net | Rich Jones]] |+^ Author | [[ http://www.nothingatall.net | Rich Jones]] |
 ^ Compatibility | Xymon 4.2 | ^ Compatibility | Xymon 4.2 |
 ^ Requirements | Perl, GitLab | ^ Requirements | Perl, GitLab |
Line 12: Line 12:
 ===== Installation ===== ===== Installation =====
 === Client side === === Client side ===
 +Change the appropriate vars in the script (see below) and place in /usr/lib/xymon/client/ext (or wherever you have the client extension dir).
  
-=== Server side ===+Vars: 
 +  * _SOME_IP_ - The Xymon server IP 
 +  * _SOME_HOSTNAME_ - The Xymon server hostname/URL 
 +  * _GITLAB_URL_ - Gitlab instance URL 
 +  * _GITLAB_TOKEN_ - The Gitlab healthcheck token that you can get from _GITLAB_URL_/admin/health_check
  
 +Add the following to clientlaunch.cfg
 +
 +        [gitlab]
 +        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
 +        CMD $XYMONCLIENTHOME/ext/gitlab.pl
 +        LOGFILE $XYMONCLIENTHOME/logs/gitlab.log
 +        INTERVAL 5m
 ===== Source ===== ===== Source =====
 ==== gitlab.pl ==== ==== gitlab.pl ====
Line 22: Line 34:
 #!/usr/bin/perl -w #!/usr/bin/perl -w
 # #
-bb-gitlab - Git lab checks+# gitlab.pl - Git lab checks
 # R Jones 2016 # R Jones 2016
 # #
  • monitors/gitlab.pl.1500310208.txt.gz
  • Last modified: 2017/07/17 16:50
  • by rich