wombat.ch

your Partner for Network Design and CMS

Perfect

config | Graylog 2.4 | Cisco Switch

Cisco Config Graylog  
> enable

# conf t

(config)#service timestamps log datetime msec
(config)#service timestamps debug datetime msec
(config)#logging host 10.147.42.40
(config)#logging trap 5
(config)#logging
(config)#logging source-interface loopback 0
(config)#logging origin-id string switch01
   
Add a comment
Icinga2 | Plugins | define path


 0 default Plugins on Debian  #  /usr/lib/nagios/plugins --> source 
define a new path for not default or modified Plugins #  mkdir /usr/lib/nagios/pluginsCustom
define the new Path to ... #  vi /etc/icinga2/constants.conf const PluginCustomDir = "/usr/lib/nagios/pluginsCustom"
 restart #  systemctl restart icinga2
#  systemctl status icinga2
       
       
  the Path i do use for new Plugins is #  cd /usr/lib/nagios/pluginsCustom  
  and i do create a Directory for echa plugin too #  mkdir new-plugin  
Add a comment
Icinga2 | add NAS-Qnap vor my old QNAP TS-212
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    
 2 #  mkdir check_qnap3    
 3 #  cd check_qnap3
#   cd /usr/lib/nagios/pluginsCustom/check_qnap3
   
 4 #  wget https://raw.githubusercontent.com/nikband/check_qnap3.sh/master/check_qnap3.sh    
 5 #  chmod +x  check_qnap3.sh    
 6  #  ./check_qnap3.sh 10.147.42.70 public systemuptime 0 0    
 7 #   cd /etc/icinga2/conf.d/nas-01    
       
       
 8 #  vi check_qnap3-sysinfo.conf
   
  object CheckCommand "check_qnap3-sysinfo" {

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

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

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

"$ARG3$" = {
value = "$qnap_check$"
skip_key = true
}
"$ARG4$" = {
value = "$qnap_warning$"
skip_key = true
}
"$ARG5$" = {
value = "$qnap_critical$"
skip_key = true
}
}

vars.qnap_host = "$host.address$"
vars.qnap_community = "public"
vars.qnap_check = "sysinfo"
vars.qnap_warning = "0"
vars.qnap_critical = "0"
}
   
 9 #  cd /etc/icinga2/zones.d/    
 10 #  mkdir nas-01    
 11 #  cd nas
#  cd  /etc/icinga2/zones.d/nas-01
   
 12 # vi check_qnap3-sysinfo.conf    
  apply Service "check_qnap3-sysinfo" {
  import "generic-service"
  display_name = "QNAP - Sysinfo"
  check_command = "check_qnap3-sysinfo"
  assign where host.address && host.vars.os == "QNAP"
}
   
       
       
13 #   icinga2 daemon -C    
14 #   systemctl reload icinga2    
15 #   systemctl status icinga2    
16 #   multitail /var/log/icinga2/icinga2.log    
       
if it works      
  #   cd /etc/icinga2/conf.d/nas-01    
  #    cp workingfile.conf   newfile.conf      "and edit the new file"    
  #    cd  /etc/icinga2/zones.d/nas-01    
  #    cp workingfile.conf newfile.conf        "and edit the new file"    

 

 Error

   

 

 
./check_qnap3.sh 10.147.42.70 public sysinfo 0 0
./check_qnap3.sh 10.147.42.70 public systemuptime 0 0
./check_qnap3.sh 10.147.42.70 public volstatus 0 0
./check_qnap3.sh 10.147.42.70 public temp 0 0
./check_qnap3.sh 10.147.42.70 public cpu 0 0
./check_qnap3.sh 10.147.42.70 public freeram 0 0
./check_qnap3.sh 10.147.42.70 public diskused 0 0
./check_qnap3.sh 10.147.42.70 public hdstatus 0 0
./check_qnap3.sh 10.147.42.70 public fans 0 0




Source/Quellen:
- Githup check_qnap3
-
-
-
-
-
-
-
-
-
-


modul-icinga-articlelist

Add a comment
Icinga2 | check for certification validation
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
working on Icinga2 "#    icinga2 daemon -C  "   (version: r2.9.1-1) 




 steps on Icinga2
 1 #   cd /usr/lib/nagios/pluginsCustom
#   wget  https://raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert
#  chmod +x check_ssl_cert
#   ./check_ssl_cert -H kozo.ch -w 30 -c 15

SSL_CERT OK - x509 certificate 'kozo.ch' from 'Let's Encrypt Authority X3' valid until Sep 14 22:41:31 2018 GMT (expires in 32 days)|days=32;30;15;;
 b
c vi /etc/icinga2/conf.d/07_urls/0_check_x509.conf    
  object CheckCommand "check_x509" {
   command = [ PluginCustomDir + "/check_ssl_cert" ]
   arguments = {
   "-H" = "$http_url$"
   "-w" = "30"
   "-c" = "15"
   }
}
   
  vi /etc/icinga2/conf.d/07_urls/0_tpl-x509.conf    
  template Service "x509" {
    host_name = "icinga2-01.kozo.ch"

    max_check_attempts = 3
    check_interval = 3m
    retry_interval = 30s
 }
   
  vi /etc/icinga2/conf.d/07_urls/x509_xxxxxxxxx.conf
cd /etc/icinga2/conf.d/07_urls/ 
 
  object Service "check_url-alvearium-info" {
      import "x509"
            vars.http_url = "alvearium.info"
      display_name = "X.509-Zertifikate --> " + vars.http_url

     check_command = "check_x509"
}
   
 

 

   
       
       
  #    icinga2 daemon -C
#    time systemctl reload icinga2
#    time systemctl restart icinga2
#     multitail /var/log/icinga2/icinga2.log
   
       
   <Timeout exceeded.><Terminated by signal 9 (Killed).> after update to (version: r2.10.1-1) 520     TIMEOUT="15" change to 30
       
-
-
- - - -
Quellen/Source:
-  Github | matteocorti/check_ssl_cert
-
-
-
-
-
-
- Add a comment

Install Graphite - | - Debian 9 Stretch for Icingaweb2
#  icinga2 --v = installed with icinga2 (version: r2.6.0-1) /(version: r2.9.1-1) 


---
20.2 Change sources.list vi /etc/apt/sources.list

deb http://httpredir.debian.org/debian jessie main
apt update -y


20.3 apt install -y graphite-web graphite-carbon mysql-server python-mysqldb python-pymysql apache2 libapache2-mod-wsgi apt-transport-https ssl-cert python-pip
#  icinga2 feature enable perfdata graphite
#  systemctl restart icinga2.service
20.4 config #  vi /etc/graphite/local_settings.py SECRET_KEY 
TIME_ZONE  Europe/Zurich ALLOWED_HOSTS
20.5 config default/graphite-carbon vi /etc/default/graphite-carbon set true
20.6 install django pip install "django==1.4"
20.7 graphite-manage syncdb
chown _graphite. /var/lib/graphite/graphite.db
20.8 Apache config a2dissite 000-default.conf
cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/
a2ensite apache2-graphite.conf
systemctl restart apache2
icinga Module # cd /usr/share/icingaweb2/modules
# git clone https://github.com/findmypast/icingaweb2-module-graphite graphite
# mv icingaweb2-module-graphite graphite
20.x icinga2 feature list
icinga2 feature enable graphite
20.x vi /etc/icinga2/features-enabled/graphite.conf library "perfdata"

object GraphiteWriter "graphite" {  
host = "10.147.42.36"  
port = 2003  
enable_send_thresholds = true

}
20.x GUI enable (Configuration > Modules > graphite > enable)
20.x Restart systemctl restart apache2 icinga2
systemctl status apache2 icinga2
       
  Icinga Gui Icinga Gui --> Configuration --> Modules
select graphite and then configuration
graphite web url differs from http://graphite.com/render/? or if your graphite prefix differs from "icinga" please create a config file in /etc/icingaweb2/modules/graphite/config.ini following this example:
    vi /etc/icingaweb2/modules/graphite/config.ini  
  copy paste the text from the Gui    
  change the IP to your Server  [graphite]
 base_url = http://10.147.42.36/render?
 
- - -


Quelle/Source:
Web freenode IRC #graphite

- (2017) Icingaweb2 Graphite Modul 
(2017) Revisited – Graphite-Web installation unter Debian 9
https://github.com/Icinga/icingaweb2-module-graphite/issues
(2015) Graphite für Icinga2 und Icingaweb2 installieren
-
-
-
-
-
-
-
- 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: 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 866 guests and no members online

We have 861 guests, 5 bots and no members online


5 bots:
5 x BOT for JCE