monitors:gitlab.pl

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
monitors:gitlab.pl [2017/07/18 08:01] – [Installation] 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 and place in /usr/lib/xymon/client/ext (or wherever you have the client extension dir.+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). 
 + 
 +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 Add the following to clientlaunch.cfg
Line 18: Line 24:
         [gitlab]         [gitlab]
         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
-        CMD $XYMONCLIENTHOME/ext/bb-gitlab.pl +        CMD $XYMONCLIENTHOME/ext/gitlab.pl 
-        LOGFILE $XYMONCLIENTHOME/logs/bb-gitlab.log+        LOGFILE $XYMONCLIENTHOME/logs/gitlab.log
         INTERVAL 5m         INTERVAL 5m
 ===== Source ===== ===== Source =====
Line 28: 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.1500364910.txt.gz
  • Last modified: 2017/07/18 08:01
  • by rich