wombat.ch

your Partner for Network Design and CMS

Perfect

Icinga2 | check_logfiles
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
working on Icinga2 (version: r2.9.1-1)




 steps on Icinga2
 1 #   cd /usr/lib/nagios/pluginsCustom
  #   mkdir check_logfiles    
  #   cd check_logfiles    
       
#   wget  https://labs.consol.de/assets/downloads/nagios/check_logfiles-3.9.tar.gz
  #   tar zxvf check_logfiles-3.9.tar.gz    
  #    cd check_logfiles-3.9    
  ./configure
make
make
install
   
       
       
#  chmod +x 
       
       

 b  vi gesuelze.cfg
   1 @searches = ({
2 tag => '0815',
3 logfiles => '/var/log/messages',
4 criticalpatterns => '.*0815.*',
5 rotation => 'debian',
6 options => 'noprotocol'
7 });
   
       
   ./check_logfiles -f gesuelze.cfg    
   # ./check_logfiles -f gesuelze.cfg
Use of uninitialized value $_[0] in substitution (s///) at /usr/share/perl/5.24/File/Basename.pm line 180.
fileparse(): need a valid pathname at ./check_logfiles line 2632.
   
       
       
       
       
  #  icinga2 daemon -C    
  #  time systemctl reload icinga2    
  #  time systemctl restart icinga2    
  #   multitail /var/log/icinga2/icinga2.log    
c      
-
-
- - - -
Quellen/Source:
-  
labs.consol.de/nagios/check_logfiles
Github | lausser - check_logfiles
-
https://medium.com/luma-consulting/how-to-install-check-logfiles-on-ubuntu-linux-to-work-with-nagios-23e8b034a8a5
-
-
- Add a comment
  # vi /etc/icinga2/conf.d/09_log-checks/check_radius-log.conf  
 

 object CheckCommand "check_radius-log" {

            command = [ PluginDir + "/check_log" ]

            arguments = {
                      "-F" = "/var/log/freeradius/radius.log"
                      "-q" = "[auth]"
            }
}

object Service "check_radius_log" {

            host_name = "radius-01.kozo.ch"

            check_command = "check_radius-log" 
            display_name = "[auth] - Radius LOG: "

            check_interval = 30

            command_endpoint = host_name
}

 
     
fail2ban apt install -y geoip-bin  
  /var/log/fail2ban.log  
  ban 181.214.206.94  
  geoiplookup 65.52.67.244  | cut -d ':' -f2
geoiplookup 150.107.148.155  | cut -d ':' -f2
geoiplookup 181.214.206.123 | cut -d ':' -f2
 
     
  geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat 65.52.67.244  
  geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat 144.167.32.105 | cut -d':' -f2  
     
   chmod a+rw /var/log/freeradius/radius.log  

 

  #  icinga2 daemon -C    
  #  time systemctl reload icinga2    
  #  time systemctl restart icinga2    
  #   multitail /var/log/icinga2/icinga2.log

 

-----

Quellen/Source:

-
- find-geolocation-ip-address-commandline/
-
 ---- Add a comment
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:
-  
-
-
-
-
-
-
- Add a comment
Icinga2 | 
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
working on Icinga2 (version: r2.9.1-1)
Plugin on Github Github syswombat (Gude 8220)


Expert Power Control 8220-1 - v1.0.4
epc8220


  cd /usr/lib/nagios/pluginsCustom    
  wget https://raw.githubusercontent.com/syswombat/icinga2/master/gude/epc8220/check_epc8220.sh    
  #   chmod +x check_epc8220.sh    
       
 steps on Icinga2
       
  vi /etc/icinga2/zones.d/master/02_INFRA/check_poco-01c.conf    
 

object CheckCommand "check_epc8220" {

command = [ PluginCustomDir + "/check_epc8220.sh" ]

arguments = { 
"$ARG1$" = { 
value = "$epc8220_host$"          
skip_key = true
}


"$ARG2$" = {
value = "$epc8220_community$"  
skip_key = true
}


"$ARG3$" = {
value = "$epc8220_check$"         
skip_key = true
}

"$ARG4$" = {
value = "$epc8220_warning$"      
skip_key = true
}

"$ARG5$" = {
value = "$epc8220_critical$"         
skip_key = true
}

}

vars.epc8220_host = "$host.address$"
vars.epc8220_community = "public"
vars.epc8220_check = "$epc8220-check$"
vars.epc8220_warning ="$epc8220-warning$"
vars.epc8220_critical = "$epc8220-critical$"
}

   
       
   vi /etc/icinga2/zones.d/master/02_INFRA/check_poco-01s.conf    
   object Service "check_epc8220-uptime" {
                   host_name = "poco-01.kozo.ch"

                         vars.epc8220-check ="systemuptime"
                         vars.epc8220-warning="0"
                         vars.epc8220-critical="0"


                   display_name = "System-Uptime: "
                   check_interval = 3600
                   check_command = "check_epc8220"
}
   
       
       
       
  #  icinga2 daemon -C    
  #  time systemctl reload icinga2    
  #  time systemctl restart icinga2    
  #   multitail /var/log/icinga2/icinga2.log    
c      
       
       
  cd  /usr/lib/nagios/plugins    
  ./check_snmp -H 10.147.42.31 -P 2c  -C public -o 1.3.6.1.2.1.1.3.0    
  SNMP OK - Timeticks: (645896904) 74 days, 18:09:29.04 |    
       
  ./check_snmp -H 10.147.42.31 -P 2c  -C public -o 1.3.6.1.2.1.1.3.0 | cut -d':'  -f2,3,4 -d'(' -d')'    
  74 days, 18:12:43.04 |    
-
-
-
-
-
   # snmpwalk -v 2c -c public 10.147.42.31
iso.3.6.1.2.1.1.1.0 = STRING: "Expert Power Control 8220-1"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.28507.38
iso.3.6.1.2.1.1.3.0 = Timeticks: (642915304) 74 days, 9:52:33.04
iso.3.6.1.2.1.1.4.0 = STRING: "sysContact"
iso.3.6.1.2.1.1.5.0 = STRING: "sysName"
iso.3.6.1.2.1.1.6.0 = STRING: "sysLocation"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.2.1.0 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "eth_cf52259"
iso.3.6.1.2.1.2.2.1.3.1 = INTEGER: 6
iso.3.6.1.2.1.2.2.1.4.1 = INTEGER: 1500
iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 100000000
iso.3.6.1.2.1.2.2.1.6.1 = Hex-STRING: 00 19 32 00 A9 06
iso.3.6.1.2.1.2.2.1.7.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.9.1 = Timeticks: (642915304) 74 days, 9:52:33.04
iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 3147205240
iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 434786
iso.3.6.1.2.1.2.2.1.12.1 = Counter32: 19293392
iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 25
iso.3.6.1.2.1.2.2.1.15.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 272948366
iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 469391
iso.3.6.1.2.1.2.2.1.18.1 = Counter32: 2779526
iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 469394
iso.3.6.1.2.1.2.2.1.21.1 = Gauge32: 0
iso.3.6.1.2.1.2.2.1.22.1 = OID: ccitt.0
  #   snmpwalk -v 2c -c public 10.147.42.31 iso.3.6.1.4.1.28507.38

-
-
- - - -
Quellen/Source:
-  
-
-
-
-
-
-
- Add a comment

Subcategories

Roundcube ist eine freie Software für Webmail über IMAP, die in den Programmiersprachen PHP und JavaScript entwickelt wird. Roundcubes prominenteste Features sind die schlanke und moderne Benutzeroberfläche und die ausgeprägte Nutzung der Ajax-Technologie, die einen ähnlichen Bedien-Komfort wie bei einer lokal installierten Anwendung ermöglicht.

RSS Feed


Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaAnnouncements): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaSecurityNews): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

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 836 guests and no members online

We have 839 guests, one bot and no members online


one bot:
1 x BOT for JCE