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