wombat.ch

your Partner for Network Design and CMS

Icinga2 | the "original" by @watermelon (-->How to write a bash script wrapper (newbie script for ITL check_yum plugin) )
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
on Icinga2 (version: r2.9.1-1)
github.com/syswombat/icinga2/blob/master/apt-wrapper/check_apt_wrapper.sh




 steps on Icinga2
 1 #   cd /usr/lib/nagios/plugins
vi  /usr/lib/nagios/plugins/check_apt_wrapper.sh

wget https://raw.githubusercontent.com/syswombat/icinga2/master/apt-wrapper/check_apt_wrapper.sh

 

chmod +x check_apt_wrapper.sh
       
       
 b  vi  /etc/icinga2/zones.d/master/check_apt_update.conf
 

object CheckCommand "check_apt_updates2" {
            import "plugin-check-command"
            command = [ PluginDir + "/check_apt_wrapper.sh" ]

            arguments = {
                "-t" = 120
                "-s" = "off"
              }
 }

apply Service "check_apt_updates2" {
            import "generic-service"

            check_command = "check_apt_updates"
            display_name = "apt Updates Information"

           assign where host.vars.os == "debian9"
 }

   
       
       
       
  #  icinga2 daemon -C    
  #  time systemctl reload icinga2    
  #  time systemctl restart icinga2    
  #   multitail /var/log/icinga2/icinga2.log    
c      
-
-
- - - -
Quellen/Source:
-  
-
-
-
-
-
-
-

RSS Feed


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 584 guests and no members online

We have 587 guests, 2 bots and no members online


2 bots:
2 x BOT for JCE