wombat.ch

your Partner for Network Design and CMS

Perfect

Icinga2 | add FreeNAS







Quelle/Source:
-
- exchange.icinga.com/6uellerBpanda/check_freenas
-
-
-
-
-

modul-icinga-articlelist

Add a comment

Icinga2 | add Fritzbox 7490 (FRITZ!OS: 06.84)

the Steps i went...

0 on the Fritzbox Heimnetz -> Netzwerk, switch to the tab Netzwerkeinstellungen. Zugriff für Anwendungen zulassen and reboot the Fritbox
0 on the Fritzbox add a new Fritzbox user   System -> Fritz!Box-Benutzer  Name
Password
No email needed

FRITZ!Box Einstellungen_
Sprachnachrichten
Smart Home
0 Icinga  path of the plugins Icinga2 | Plugins | define path  -
2  Need curl and bc #  apt install -y curl
#  apt install -y bc
go to the path where 3part Plugins are #  cd /usr/lib/nagios/pluginsCustom
download the Plugin #  git clone https://github.com/mcktr/check_tr64_fritz  check_tr64_fritz
    chmod -R +x  check_tr64_fritz  
    #  cd check_tr64_fritz  
  check the open port #  ./getSecurityPort 10.147.42.1

Your Fritz!Box Security Port (for TR-064 over SSL) is: 49443
 
       
    # icinga2 daemon -C  
       
 

#  vi /etc/icinga2/conf.d/check_tlsr64_fritz/check_tlsr64_fritz-status.conf



#  cd /etc/icinga2/conf.d/check_tlsr64_fritz/

ls -alth                     to show all file

cp       to copy

object CheckCommand "check_tr64_fritz-status" {

  command = [ PluginCustomDir + "/check_tr64_fritz/check_tr64_fritz" ]

  arguments = {
    "-h" = "$fritz_host$"
    "-p" = "$fritz_port$"
    "-u" = "$fritz_username$"
    "-P" = "$fritz_password$"
    "-f" = "$fritz_function$"
    "-w" = "$fritz_warning$"
    "-c" = "$fritz_critical$"
  }

  vars.fritz_host = "$address$"
  vars.fritz_port = "49443"
  vars.fritz_username = "dslf-config"
   vars.fritz_password ="password"
  vars.fritz_function = "status"
}
 
  #  vi /etc/icinga2/zones.d/master/router.conf
1 object Host "router.domain" {
2 check_command = "hostalive" //check is executed on the master
3 display_name = "Fritzbox 7490"
4 address = "10.147.42.1"
5
6 vars.client_endpoint = name //follows the convention that host name == endpoint name
7 }
8
9 object Service "check_tr64_fritz" {
10 host_name = "router.domain"
//   check_interval = 15
11 check_command = "check_tr64_fritz-status"
12 }
13
 
       
       
       
  #   icinga2 daemon -C    
  #  systemctl restart icinga2    
       
 Information: //   check_interval = 15
if you remove // then the check will be all 15 seconds, think about if it makes sense (default is 5 Minutes) 

in my case for the 
downstreamrate
upstreamrate
it did make sense
   
ERROR on GUI

Plugin Output

execvpe(/usr/lib/nagios/pluginsCustom/check_tr64_fritz) failed: Permission denied
   
----
Quellen/Source:
- (2016) Fritz!Box 7490 check | nagios
- (2018) mcktr - Github | check_tr64_fritz
-
-
-
-
-
-
-
- Add a comment

Icinga2 | add Cisco Switch 3560 Familie

 Switch Configuration Cisco SNMPv3 Setup
1. conf t
2. snmp-server group Snmpv3groupname v3 auth
3. snmp-server user Snmpv3user Snmpv3groupname v3 auth sha Snmpv3passwort
       
needed Software apt install -y libnet-snmp-perl libcrypt-hcesha-perl libcrypt-des-perl libdigest-hmac-perl libcrypt-rijndael-perl    
       
  70 object HostGroup "3560cg8p" {
71 display_name = "Cisco 3560CG 8 Port"
72
73 assign where host.vars.HW.cisco == "3560cg8p"
74 }
75
76 object HostGroup "3560-8p" {
77 display_name = "Cisco 3560 8 Port"
78 assign where host.vars.HW.cisco == "3560-8p"
79 }
   
       
       
Icinga Plugin      
   cd  /etc/icinga2/zones.d/master/03_SWT/    
  vi  check_cisco-c.conf
vi check_cisco-s_alg.conf
vi check_cisco-t.conf
   
       
       
       
       
       
       
       
  #   time icinga2 daemon -C    
  #   time systemctl reload icinga2    
  #   time systemctl restart icinga2    
       
       
-- - - -

 

 


Quellen(Source:
consol labs | check_nwc_health
Cisco Switch mit Icinga 2 und check_nwc_health mittels SNMPv3 abfragen
-
-
-
-
-
-
-
- Add a comment

Show Version of tools

Icinga2 Version #  icinga2 --version # icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.6.0-1)

Copyright (c) 2012-2016 Icinga Development Team (https://www.icinga.org/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Application information:
Installation root: /usr
Sysconf directory: /etc
Run directory: /run
Local state directory: /var
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid

System information:
Platform: Debian GNU/Linux
Platform version: 9 (stretch)
Kernel: Linux
Kernel version: 4.9.0-6-amd64
Architecture: x86_64

Build information:
Compiler: GNU 6.2.1
Build host: amalia
  #  dpkg -l icinga*|grep ii  
  #  dpkg -l | grep icinga  
  #   icinga2 feature disable debuglog to be sure to have switched off debuglog
     
  #  apt-cache policy icinga2  
php #  php -v PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
MariaDB #  mariadb --version mariadb  Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Apache2 #  apache2 -v Server version: Apache/2.4.25 (Debian)
Server built: 2018-03-31T08:47:16
carbon
Whisper
graphite-web
#  pip list  
show Java Zulu #   dpkg --list | grep zulu  
show java Version #    java --version  
Add a comment

icinga2 Problems

 Modul Graphite #174 (SOLVED) Composite Tooling Corporation 404 error
 Modul Graphite #175 difference Documentation and my system
Modul Graphite #176 on the View not allways the same time and no change on week, month, year    
     
     
     
     

 ---

 icinga2 feature enable debuglog icinga2 feature disable debuglog  
 multitail  /var/log/icinga2/debug.log    
 service icinga2 restart    
     
https://10.147.42.36:5665/v1/objects/services?service=NAS-01.kozo.ch!check_qnap3-sysinfo    
     
to makr it more readable jsonformatter.curiousconcept.com  
use ``` at the start and end to show it on the forum    
     

Quelle/Source:
-
-
-
-
- Add a comment

http://10.147.42.36/icingaweb2/setup 

#0 /usr/share/icingaweb2/library/vendor/Zend/Form.php(2280): Icinga\Web\Form\Element\CsrfCounterMeasure->isValid('341152815|56d5c...', Array)
#1 /usr/share/php/Icinga/Web/Form.php(1276): Zend_Form->isValid(Array)
#2 /usr/share/php/Icinga/Web/Wizard.php(279): Icinga\Web\Form->isValid(Array)
#3 /usr/share/icingaweb2/modules/setup/application/controllers/IndexController.php(44): Icinga\Web\Wizard->handleRequest()
#4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Setup\Controllers\IndexController->indexAction()
#5 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('indexAction')
#6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#7 /usr/share/php/Icinga/Application/Web.php(389): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#9 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#10 {main}

 

SOLVED: i just had to restart the Browser ;-) 

 


Quellen/Source
Icingaweb2 Fatal Error directly after installation on Ubuntu 18.04 #3459
-
-
-
- Add a comment
hallo ---
cd /etc/icinga2/conf.d/

systemctl restart icinga2.service

host.conf object Host "Lapi" {
address = "10.147.42.7"
check_command = "hostalive"
}
cd /usr/share/icingaweb2/modules
systemctl status icinga2.service



Quellen/source:
- freenode - Icinga Channel
-

- How to Install Icinga 2 and Icinga Web 2 on Debian 9.3
How to Install Icinga 2 Monitoring Tool on Debian 9.2
How to add remote Linux and Windows Host to Icinga 2 for Monitoring
(2015) Cisco Switch mit Icinga 2 und check_nwc_health mittels SNMPv3 abfragen
(2017) Grafana Module
-
Icinga 2 und ein Client Node

Youtube | icinga - netways
Icinga Web 2 Modules
- Youtube | Incga2 Proxmox
-
-
-
-

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


---- lesen
-
-- Master with Clients

 

Step  Master Debian 9 stretch Master_________________ Client "Debian GNU/Linux 9 (stretch)" Client stretch
  #  icinga2 --v icinga2 (version: r2.9.0-1)    
  #  vi /etc/icinga2/zones.conf object Endpoint "client.kozo.ch" {
host = "10.147.42.50"
}

object Zone "client.kozo.ch" {
endpoints = [ "client.kozo.ch" ]
parent = "master"
}
   

#  cd /etc/icinga2/zones.d/master/

#  vi host.conf
or a new file


mk

object Host "client.kozo.ch" {
check_command = "hostalive" //check is executed on the master
display_name = "client test"
address = "10.147.42.63"
vars.os = "debian9"
zone = "master"
vars.client_endpoint = name //follows the convention that host name == endpoint name
}


object Service "apt" {
host_name = "client.kozo.ch"
check_command = "apt"
command_endpoint = host_name
}

  #   icinga2 daemon -C      
  #  systemctl restart icinga2.service      
  #  systemctl status icinga2.service      
  #  multitail /var/log/icinga2/icinga2.log      
  add the Repository for the newest icinga2   #  wget -O - https://packages.icinga.com/icinga.key | apt-key add -  
      #  vi /etc/apt/sources.list deb http://packages.icinga.com/debian icinga-stretch main
deb-src http://packages.icinga.com/debian icinga-stretch main
      #  apt update -y  
# apt install -y bash-completion
# apt install -y -f icinga2
# apt install -y -f nagios-plugins
# systemctl restart icinga2
# systemctl status icinga2
# systemctl enable icinga2
#  icinga2 feature list
#  icinga2 feature enable command
#  systemctl restart icinga2
#  icinga2 node wizard

 icinga2-01.kozo.ch

 

 

10.147.42.36

#  vi /etc/icinga2/zones.conf

object Endpoint "icinga2-01.kozo.ch" {
        host = "10.147.42.36"
        port = "5665"
 }

object Zone "master" {
        endpoints = [ "icinga2-01.kozo.ch" ]
 }

object Endpoint "client" {
 }

object Zone "client" {
     endpoints = [ "client" ]
     parent = "master"
 }

#  service icinga2 restart
#  systemctl restart icinga2.service
#  systemctl status icinga2.service
icinga2 node list
# icinga2 node update-config
#  multitail /var/log/icinga2/icinga2.log #  multitail /var/log/icinga2/icinga2.log
Service löschen die es nicht braucht

#  vi /etc/icinga2/conf.d/services.conf

#  service icinga2 restart
icinga2 node list
# icinga2 node update-config

#  icinga2 daemon -C

# systemctl restart icinga2
# systemctl status icinga2

Add a comment

Read more: Icinga2 | add Icinga2 Client to a Master (r2.9.0-1)

Hugo Roy has been trying to install Kolab and not getting on particularly well with it. His experiences persuaded me to take another look at my Kolab installation done back in June, and to my surprise it didn’t seem to work any more. I eventually discovered some things that will probably need fixing in the packaging, and these are mentioned

...
Add a comment

Read more: Kolab and Debian Packaging Pitfalls

Today is a sad day for the world of Information Technology and the cause of software freedom. PJ just announced she’ll be shutting down Groklaw.

It’s hard to overestimate the role that Groklaw has played in the past years. Many of us, myself included, have worked with Groklaw over the years. I still take pride my article about the danger

...
Add a comment

Read more: Groklaw shutting down.

cloud services and providers

When Edward Snowden leaked intelligence files, a storm was triggered in the cloud, leaving a path of destruction. Snowden’s email provider Lavabit shut down. So has the email offering of Silent Circle. The Guardian ran a story declaring: Lavabit’s closure marks the death of secure cloud computing in the U.S. And the EU is not entirely unaffected

...
Add a comment

Read more: Do cloud right: Four critical steps to selecting the provider for you

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

We have 601 guests, no bots and no members online