wombat.ch

your Partner for Network Design and CMS

Perfect

Icinga2 | define (setup) the Master

 1 on a running Icinga #  icinga2 node wizard Please specify if this is a satellite setup ('n' installs a master setup) [Y/n]     : n
       
       
2 Zone.conf definition # vi /etc/icinga2/zones.conf object Endpoint "icinga.server.de" {
  }
  object Zone "icinga.server.de" {
          endpoints = ["icinga.server.de" ]
  }
3   #  /etc/init.d/icinga2 restart  
       
       
     
    # ps aux | grep icinga2  
       
       
--- ---> then add a Client Icinga2 | add Icinga2 Client to a Master


Source/Quellen:
- (2017) Icinga2: Remote Clients (just the first part / erster Abschnitt)
-
-
-
-

Add a comment
Icinga2 | add Proxmox

the user we crate for monitoring is   icinga2monitoring


1 Proxmox
crate a user for monitoring
Login to CLI
#  pveum useradd icinga2monitoring@pve -comment "Icinga2 Monitoring"
#   pveum passwd icinga2monitoring@pve
#   pveum aclmod / -user icinga2monitoring@pve -role PVEAuditor
  or just a API_User #    pvesh create /access/users -userid icinga2monitoring@pve  
       
       
       
       









Quellen/Source:
Github | nbuchwitz/check_pve
- exchange.icinga.com Proxmox
- Proxmox Doc | VE API
-
Docu Proxmox | user Management
-
-
-

Forum Proxmox | frage zu user und Sinn...

modul-icinga-articlelist

Add a comment

Icinga2 | add OpnSense
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path

# icinga2 daemon -C = (version: r2.9.1-1)

 step Icinga2 Master Action on the OPNSense device
go to [user Manager]
create a user icinga2
1 #   apt install -y python-enum34 python-requests
2 #  cd /usr/lib/nagios/pluginsCustom
#   mkdir opnsense
#   cd opnsense
wget https://raw.githubusercontent.com/nbuchwitz/check_opnsense/master/check_opnsense.py
  chmod +x check_opnsense.py      
  # icinga2 daemon -C      
  mkdir /etc/icinga2/conf.d/opnsense      
   vi /etc/icinga2/conf.d/opnsense/opnsene-update.conf object CheckCommand "check_opnsense-update" {

command = [ PluginCustomDir + "/opnsense/check_opnsense.py" ]

arguments = {
"-H" = "$opnsense_host$"
"--api-key" = "$opnsense_api_key$"
"--api-secret" = "$opnsense_api_secret$"
"-m" = "$opnsense_function$"
"-w" = "$opnsense_TRESHOLD_WARNING$"
"-c" = "$opnsense_TRESHOLD_CRITICAL$"
"-k" = "$opnsense_insecure$"
}

vars.opnsense_host = "10.147.42.7"
vars.opnsense_api_key = "key"
vars.opnsense_api_secret = "key"
vars.opnsense_function = "updates"
vars.opnsense_insecure = "-k"
}
   
         
  #  cd /etc/icinga2/zones.d/master/    open the file your host is defined      
 

vi   xxxxxx.conf

to check for update is Default 5 minutes not necessary
every hour is enough so check_interval to 1h

9 object Service "check_opnsense" {
10 host_name = "opnsense.domain"
check_interval = 1h
11 check_command = "check_opnsense-update"
12 }
   
  # icinga2 daemon -C      
  #  systemctl restart icinga2      











-
-
-
-
-
uptime  snmpwalk -v2c -c public 10.147.42.7 iso.3.6.1.2.1.25.1.1.0 Timeticks: (63656350) 7 days, 8:49:23.50
   snmpwalk -v2c -c public 10.147.42.7 iso.3.6.1.2.1.1.1.0 STRING: "FreeBSD FW-03.kozo.ch 11.1-RELEASE-p11 FreeBSD 11.1-RELEASE-p11  21b4c8ea1d5(stable/18.7) amd64"
Hostname snmpwalk -v2c -c public 10.147.42.7 iso.3.6.1.2.1.1.5.0 STRING: "FW-03.kozo.ch"
     
     
     
     
     
     
    iso.3.6.1.4.1.2021.10.1.2.1 = STRING: "Load-1"
iso.3.6.1.4.1.2021.10.1.2.2 = STRING: "Load-5"
iso.3.6.1.4.1.2021.10.1.2.3 = STRING: "Load-15"
iso.3.6.1.4.1.2021.10.1.3.1 = STRING: "0.40"
iso.3.6.1.4.1.2021.10.1.3.2 = STRING: "0.52"
iso.3.6.1.4.1.2021.10.1.3.3 = STRING: "0.49"
     
    iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "igb1"
iso.3.6.1.2.1.31.1.1.1.2.2 = Counter32: 8742
iso.3.6.1.2.1.25.3.2.1.3.262146 = STRING: "network interface igb1"
    iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "igb0"
iso.3.6.1.2.1.31.1.1.1.2.1 = Counter32: 0
iso.3.6.1.2.1.25.3.2.1.3.262145 = STRING: "network interface igb0"
    iso.3.6.1.2.1.31.1.1.1.1.3 = STRING: "igb2"
iso.3.6.1.2.1.31.1.1.1.2.3 = Counter32: 0
iso.3.6.1.2.1.25.3.2.1.3.262147 = STRING: "network interface igb2"
    iso.3.6.1.2.1.31.1.1.1.1.8 = STRING: "ath0_wlan1"
iso.3.6.1.2.1.31.1.1.1.2.8 = Counter32: 0
iso.3.6.1.2.1.25.3.2.1.3.262152 = STRING: "network interface ath0_wlan1"
-
-
Source/Quellen:
-
- github.com/nbuchwitz/check_opnsense
Formun Opnsense | API Information request
-
-
-
-
- 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 569 guests and no members online

We have 595 guests, 2 bots and no members online


2 bots:
2 x BOT for JCE