wombat.ch

your Partner for Network Design and CMS

Perfect

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 Raspberry Pi (Debian9)


     
   object CheckCommand "by_ssh_apt" {  
        import "by_ssh"

        vars.by_ssh_command = "/usr/lib/nagios/plugins/check_apt -w $by_ssh_apt_warn$ -c $by_ssh_apt_crit$"  
                vars.by_ssh_apt_warn = "75%"  
                vars.by_ssh_apt_crit = "50%"
}

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

          host_name = "10.147.42.32"  
          check_command = "by_ssh_apt"

          vars.by_ssh_logname = "pi"

}
 
     












QUellen/Source:
docs/icinga2/latest/doc/07-agent-based-monitoring/#ssh
remote-sensor-raspberry-pi-locale-temperature-monitoring-snmp-and-cacti
-
-
-
-
-
-
-
-
- monitoring-portal.org
_

modul-icinga-articlelist

Add a comment

add a service to a hostgroup

i have a couple of Debian 9 "Server/Host/Client" they all should have some Basic Service Check like (apt, disk, mem, swap, procs, users, running_kernel, apt, ssh, iostat, ping4, fping4, tcp, udp, ssl, ntp_time)

because i don't want to add this check to each host  i did define a hostgroup and add the hostgroupname to the host (--> "define Hostgroup & add Host to a Hostgroup")

 Merci to rsx (Roland) 

 steps i have done... icinga2 Master
 went to the zone.d #  cd /etc/icinga2/zones.d/
 crate a new directory #  mkdir services
 went to the new directory #  cd /services
or #  cd /etc/icinga2/zones.d/services
open a new file # vi service2debian9.conf      
to check apt on all defined Debian 9 "Host/Server/Client" apply Service "apt" {
  import "generic-service"
  check_command = "apt"

  assign where host.address && host.vars.os == "debian9"
  command_endpoint = host_name
 }
     
to Check swap apply Service "swap" {
  import "generic-service"
  check_command = "swap"

  assign where host.address && host.vars.os == "debian9"
  command_endpoint = host_name
 }
     
 Check it if it for error #  icinga2 daemon -C      
if ok #  systemctl restart icinga2      





---

 Sometimes all would be perfect but a Service is on a Host not needed or not available.
so you will get a error.
to avoid the error - just ignore the host like this

32 apply Service "swap" {
33 import "generic-service"
34 check_command = "swap"
35
36 assign where host.address && host.vars.os == "debian9"
37 ignore where host.name == "memoryalpha.kozo.ch"
38 command_endpoint = host_name
39 }
     
  #  icinga2 daemon -C      
  #  systemctl restart icinga2      

---
Quellen/Source:
- 05-service-monitoring/#general-monitoring
have a look and for my test
-
-
-
-
- Add a comment

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

working on Icinga2 (version: r2.9.1-1)



  Supermicro backend Add a user with some right 
user icinga2
pwd icinga24
 
       
 steps on Icinga2
       
  #   arp -n | grep 0c:c4:7a:ee:42:1c | awk '{print $1}' this is the IP of the IPMI Port (the Eth.Port has DHCP)  
       
  apt install -y libipc-run-perl    
       
  wget http://ftp.gnu.org/gnu/freeipmi/freeipmi-1.6.2.tar.gz
tar xzvf freeipmi-1.6.2.tar.gz
cd freeipmi-1.6.2
apt install -y build-essential libgcrypt11-dev
./configure
make
make install
ldconfig
   
       
 1 #   cd /usr/lib/nagios/pluginsCustom
#   wget  https://raw.githubusercontent.com/thomas-krenn/check_ipmi_sensor_v3/master/check_ipmi_sensor
#  chmod +x check_ipmi_sensor

 b  ./check_ipmi_sensor Can't locate IPC/Run.pm in @INC (you may need to install the IPC::Run module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./check_ipmi_sensor line 35.
BEGIN failed--compilation aborted at ./check_ipmi_sensor line 35.
c  curl -L http://cpanmin.us | perl - -- App::cpanminus
cpanm --with-recommends --force IPC::Run
   
   ./check_ipmi_sensor    
       
       
       
  #    icinga2 daemon -C    
  #    systemctl reload icinga2    
  #    systemctl restart icinga2    
  #    multitail /var/log/icinga2/icinga2.log    
-
-
 

Source/Quellen:
-
thomas-krenn | IPMI Sensor Monitoring Plugin
- thomas-krenn | FreeIPMI
thomas-krenn | IPMI Konfiguration für Supermicro Systeme
-
-
-
-
-
-
-

modul-icinga-articlelist

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

We have 323 guests, one bot and no members online


one bot:
1 x BOT for JCE