Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
47 views
Performance Graph in icinga for a service shows wait timed out after 3001ms
The performance graph for a sakuli check shows 'Wait timed out after 3001ms'. I checked the check_latency for the sakuli check service it is at 0.446 seconds. The check is executed after every 2 minutes. What can be the cause. Performance data looks good but still the error persist. [Performance gra...
The performance graph for a sakuli check shows 'Wait timed out after 3001ms'. I checked the check_latency for the sakuli check service it is at 0.446 seconds. The check is executed after every 2 minutes. What can be the cause. Performance data looks good but still the error persist. Performance graph enter image description here Performance data enter image description here Influxdb error enter image description here
sakuliuser123 (1 rep)
May 15, 2025, 07:32 AM • Last activity: May 21, 2025, 07:34 AM
1 votes
0 answers
339 views
Tell nagios not to warn about non-critical updates
I use nagios to warn if there are apt updates available on my Debian buster server, but I want to use this option: -o, --only-critical Only warn about upgrades matching the critical list. The total number of upgrades will be printed, but any non-critical upgrades will not cause the plugin to return...
I use nagios to warn if there are apt updates available on my Debian buster server, but I want to use this option: -o, --only-critical Only warn about upgrades matching the critical list. The total number of upgrades will be printed, but any non-critical upgrades will not cause the plugin to return WARNING status. so I edited /etc/nagios-plugins/config/apt.cfg: # 'check_apt' command definition define command{ command_name check_apt command_line /usr/lib/nagios/plugins/check_apt --only-critical } # 'check_apt_distupgrade' command definition define command{ command_name check_apt_distupgrade command_line /usr/lib/nagios/plugins/check_apt --only-critical -d } But still I get emails containing something like:
***** Service Monitoring on freifunk *****

apt on vm02.freifunk is WARNING!

Info:    APT WARNING: 2 packages available for upgrade (0 critical updates).
Although I have installed monitoring-plugins-basic 2.2-6 and the --only-critical option was added in release-2.3.3 it is working already:
# /usr/lib/nagios/plugins/check_apt
APT WARNING: 2 packages available for upgrade (0 critical updates). |available_upgrades=2;;;0 critical_updates=0;;;0
# /usr/lib/nagios/plugins/check_apt --only-critical
APT OK: 2 packages available for upgrade (0 critical updates). |available_upgrades=2;;;0 critical_updates=0;;;0
But the command option I set in the nagios config seems to be ignored. I also tried the latest version manually installed from this source , but it didn't change the outcome. Maybe is there another way to achieve this? maybe just change the line in command_line to something, that greps the result somehow? it seems like the nagios plugins are used by icinga2. This is a part of /etc/icinga2/constants.conf: /* The directory which contains the plugins from the Monitoring Plugins project. */ const PluginDir = "/usr/lib/nagios/plugins" How do I properly tell nagios not to warn about non-critical updates?
rubo77 (30435 rep)
Jul 20, 2020, 06:00 AM • Last activity: Jul 7, 2022, 09:25 AM
0 votes
1 answers
7921 views
How can I use snmpwalk to determine what I'm able to monitor via SNMP on a device?
Let me preface this by saying I'm familiar with SNMP only in theory. This is my first time working with SNMP. I'm trying to determine what variables can be monitored using SNMP on a Dell EMC ML3 Tape Library. My job uses icinga2 for monitoring hosts, with SNMP plugins enabled for certain hosts. I'm...
Let me preface this by saying I'm familiar with SNMP only in theory. This is my first time working with SNMP. I'm trying to determine what variables can be monitored using SNMP on a Dell EMC ML3 Tape Library. My job uses icinga2 for monitoring hosts, with SNMP plugins enabled for certain hosts. I'm performing the snmpwalk from our icinga2 server running CentOS 7.This tape library is a new device and we don't know what can be monitored on it. I've ran the following commands (as outlined in documentation I found from the employee previously working on this):
snmpwalk -v2c -c 1c1ng@2 -O -e 10.100.19.11
snmpwalk -v2c -c 1c1ng@2 10.100.19.11
The output was the same for both commands and is shown in this screenshot: snmpwalk output This output doesn't seem to show any variables we would be interested in, such as interfaces, temperatures, etc. My question is, how do I find the OIDs so I can determine what SNMP can monitor on this host? Am I missing something?
kalaniakahi (21 rep)
Feb 16, 2022, 02:31 AM • Last activity: Feb 16, 2022, 01:16 PM
0 votes
0 answers
72 views
Problem with Django on Centos 6
I have a problem to install graphite on server Centos 6.8 : ``` Error: Package: graphite-web-0.9.16-2.el6.noarch (epel) Requires: Django >= 1.3 Error: Package: python-django-tagging-0.3.1-7.el6.noarch (epel) Requires: Django ``` but, I installed Django from pip on python2.6: ``` # python -c 'import...
I have a problem to install graphite on server Centos 6.8 :
Error: Package: graphite-web-0.9.16-2.el6.noarch (epel)
           Requires: Django >= 1.3
Error: Package: python-django-tagging-0.3.1-7.el6.noarch (epel)
           Requires: Django
but, I installed Django from pip on python2.6:
# python -c 'import django; print(django.get_version())'
1.6
yum can't find some additional Django package , so , may be somebody can help me install graphite on Centos 6 - I can't update Centos to version 7. - is problematic to update python .
Simon Chaikin (17 rep)
Apr 12, 2021, 12:56 PM
0 votes
1 answers
239 views
missing documentation icinga2 installation on gentoo
I need install mariadb, apache2, php, icinga2 and icingaweb2 on gentoo. According to the documentation, I managed to install mariadb, apache2, (probably) php and icinga2 At the moment (according to the log) icinga2 runs without errors. However, I cannot configure icingaweb2 correctly. Is there any d...
I need install mariadb, apache2, php, icinga2 and icingaweb2 on gentoo. According to the documentation, I managed to install mariadb, apache2, (probably) php and icinga2 At the moment (according to the log) icinga2 runs without errors. However, I cannot configure icingaweb2 correctly. Is there any documenetation/tutorial how to configure icingaweb2 in gentoo? At this moment, I just need to get a basic HTTP setup without LDAP, just on port 80. (I will play with ssl security and domain later...) It is not clear from this documentation where I make a mistake https://icinga.com/docs/icingaweb2/latest/doc/02-Installation/ https://icinga.com/docs/icinga2/latest/doc/02-installation/ https://www.cs.uni-potsdam.de/~pveber/apache.html Currently only http://localhost responds (default apache message "It Works!") On http://localhost/icingaweb2, http://icingaweb2/icingacli , http://icingaweb2/setup etc... nothing I don't know where must be placed icingaweb2 document root directory, if in /var/www/ or in /usr/share/icingaweb2/public/ In my /etc/apache2/vhosts.d/00_default_vhost.conf is: ##mmtest Options SymLinksIfOwnerMatch AllowOverride None DirectoryIndex index.php # Apache 2.4 Require all granted # Apache 2.2 Order allow,deny Allow from all SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2" EnableSendfile Off RewriteEngine on RewriteBase /icingaweb2/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] DirectoryIndex error_norewrite.html ErrorDocument 404 /icingaweb2/error_norewrite.html # Remove comments if you want to use PHP FPM and your Apache version # is greater than or equal to 2.4 # = 2.4> # # Forward PHP requests to FPM # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # # SetHandler "proxy:fcgi://127.0.0.1:9000" # ErrorDocument 503 {urlPath}/error_unavailable.html # #
exo (141 rep)
Sep 30, 2019, 01:00 PM • Last activity: Oct 1, 2019, 10:17 AM
0 votes
1 answers
160 views
Text filtering from configuration file
We have a config file which consists of more than 24000 lines. I am stuck in one task. I need to segregate the lines starting as below (service definition of specific host in icinga2) Object Service " "{ And ending with } Files consists multiple other entries as well I need to filter specific hosts...
We have a config file which consists of more than 24000 lines. I am stuck in one task. I need to segregate the lines starting as below (service definition of specific host in icinga2) Object Service ""{ And ending with } Files consists multiple other entries as well I need to filter specific hosts definition alone.
naren viru (49 rep)
Dec 2, 2018, 06:16 AM • Last activity: Dec 2, 2018, 01:18 PM
3 votes
2 answers
335 views
Bash scripting Array concepts
I have two separate lists. One contains 1000 hostnames and other contains 1000 associated IP's for that hosts. I need to generate config entries and push to my config file to add all hosts under our monitoring environment. #!/bin/bash Enter the hostnames readarray hosts Enter the IP's readarray IP H...
I have two separate lists. One contains 1000 hostnames and other contains 1000 associated IP's for that hosts. I need to generate config entries and push to my config file to add all hosts under our monitoring environment. #!/bin/bash Enter the hostnames readarray hosts Enter the IP's readarray IP How should I iterate one by one in a loop like below? I know how to iterate single array by using for i in "${hosts[@]}", but in the case of two separate lists, how to achieve iteration? echo -e "\nObject host \""$hosts"\"{" import = \""generic-service"\" address = \""$IP"\" group = \""Mom1-Ping"\" "\n}" >> /etc/icinga2/zones.d/mom2/AP.conf Example of first list (List 1): sjc02-mfg-api01.example.com sjc02-mfg-api02.example.com sjc02-mfg-api03.example.com upto 1000 hosts Example of second list (List 2): 10.20.2.22 10.20.2.23 10.20.2.24 up to to 1000 IP's Expected output: Object host "sjc02-mfg-api01.example.com" { import = "generic-service" address = "10.20.2.22" group = "Mom01-Ping" } Object host "sjc02-mfg-api02.example.com" { import = "generic-service" address = "10.20.2.23" group = "Mom01-Ping" } Object host "sjc02-mfg-api03.example.com" { import = "generic-service" address = "10.20.2.24" group = "Mom01-Ping" } ..........like this I need to generate to all 1000 hosts.............
naren viru (49 rep)
Sep 27, 2018, 11:24 AM • Last activity: Oct 1, 2018, 09:40 PM
2 votes
1 answers
248 views
Installing icingaweb2 / icingacli under Oracle Linux 6
I'm trying to install icingaweb2 / icingacli on a vServer running Oracle Linux 6. I've managed to install icinga2 from the icinga repo and php7.0 from the ol6_developer repo. But if I try to install icingacli I get: Error: Package: icingacli-2.6.1-1.el6.icinga.noarch (icinga-stable-release) Requires...
I'm trying to install icingaweb2 / icingacli on a vServer running Oracle Linux 6. I've managed to install icinga2 from the icinga repo and php7.0 from the ol6_developer repo. But if I try to install icingacli I get: Error: Package: icingacli-2.6.1-1.el6.icinga.noarch (icinga-stable-release) Requires: rh-php70-php-cli >= 5.6.0 Error: Package: php-Icinga-2.6.1-1.el6.icinga.noarch (icinga-stable-release) Requires: rh-php70-php-pdo . . . The missing packages are installed just with other names: # yum info php-cli Loaded plugins: refresh-packagekit, security, ulninfo Installed Packages Name : php-cli Arch : x86_64 Version : 7.0.31 what can I do?
Ultimo (31 rep)
Aug 30, 2018, 10:09 AM • Last activity: Sep 2, 2018, 11:26 AM
2 votes
1 answers
486 views
How can I ask icinga2 from the command line to execute a single-time check of everything?
I would like to test my whole system config. I think it is not a very unusual feature. I want icinga2 to check everything and show me the results. Ideally, notifications shouldn't be called, I only want to see the results in the standard output/stderr, but it would be also with notifications okay. R...
I would like to test my whole system config. I think it is not a very unusual feature. I want icinga2 to check everything and show me the results. Ideally, notifications shouldn't be called, I only want to see the results in the standard output/stderr, but it would be also with notifications okay. Reasonable answers saying that there is no such feature without digging its source code, are also acceptable.
peterh (10459 rep)
Jan 18, 2018, 11:24 AM • Last activity: May 16, 2018, 01:20 AM
0 votes
1 answers
178 views
How to make icinga2 to alarm only 10min+ downtime?
I have the problem that the connection between the host running icinga2, and between the actually checked server machines, is a little bit... non-deterministic. Thus, sometimes - every day for some minutes, in an unpredictable time - all the hosts and services seem went down by the icinga. I don't w...
I have the problem that the connection between the host running icinga2, and between the actually checked server machines, is a little bit... non-deterministic. Thus, sometimes - every day for some minutes, in an unpredictable time - all the hosts and services seem went down by the icinga. I don't want it. I think the best solution to work around this problem, if I could somehow set up a *minimal downtime length*, for example, 10 minutes. Alarms should be created only if a downtime is longer as this value. The obvious side-effect (alarms get this delay + lack of monitoring for the short network downtime) is not a problem for me.
peterh (10459 rep)
Feb 19, 2018, 10:17 AM • Last activity: Feb 19, 2018, 10:38 AM
Showing page 1 of 10 total questions