User Tools

Site Tools


wiki:nagios_troubleshooting

Nagios troubleshooting

Nagios not working after Debian upgrade?

Apache is probably not executing php files properly. Make sure the apache modules are enabled. Screenshots of error: Firefox (something probably cached from before)

Chrome fresh navigation to page Run:

a2enmod php7.3

List of modules that should be enabled

# apachectl -M

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 php7_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)

Debian 11

apt install libapache2-mod-php7.4

Tested on

  • Debian 10 (after upgrade from Debian 9)

nagiosgraph js problem

When accessing graphs in url nagiosdomain.com/nagiosgraph/cgi-bin/showhost.cgi?host=localhost you get an error

JavaScript is disabled.
nagiosgraph.js is not installed or wrong version.

The issue could be in rrd filename (/usr/local/nagiosgraph/var/rrd) encoding the '“' character as ”%22“ which confuses javascript. Example of filename

Check%20www.karl.com___%7C%20isAlreadySelected%28panel%2C%20selectedValue%29%3B%5Cn%20%20%7D%22%20on%20https%3A%2F%2Fwww.karl.com%2Fde%2Fmantel_cod59141927re.html%20%7CRAUVX.rrd

Simply remove the offending file and reload nagios.

Tested on

  • nagios 4.2.2
  • nagiosgraph 1.5.2
  • Debian GNU/Linux 11 (bullseye)

CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with <server_ip>

Make sure you are using an up to date nrpe plugins.

Tested on

  • Debian 10 (after upgrade from Debian 9)

Cannot get interface speed using highperf mib : UNKNOWN

Add to check_if_traffic -g2 flag:

check_if_traffic!22!localhost!public!eth0!0,50000!0,75000!-Y -B -k -g2 --label

See also

References

wiki/nagios_troubleshooting.txt · Last modified: 2022/09/28 11:42 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki