Re: Nagios Stats Wizard Slow
Posted: Mon Aug 17, 2020 2:15 am
I tailed /var/log/httpd/error_log and ran the PHP script but nothing showed up in the log.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
php -v
rpm -qa | grep php
Code: Select all
php -vCode: Select all
time /usr/bin/php /usr/local/nagios/libexec/check_nagios_performance.php ahc15
time /usr/bin/php --no-php-ini /usr/local/nagios/libexec/check_nagios_performance.php ahc15Code: Select all
time /usr/bin/php /usr/local/nagios/libexec/check_nagios_performance.php ahc15
OK - Total Checks:265; On-Demand:223; Scheduled:42 | Total_Checks=265;;; On_Demand=223;;; Sched_Checks=42;;;
real 0m16.916s
user 0m0.103s
sys 0m0.022sCode: Select all
time /usr/bin/php --no-php-ini /usr/local/nagios/libexec/check_nagios_performance.php ahc15
OK - Total Checks:263; On-Demand:222; Scheduled:41 | Total_Checks=263;;; On_Demand=222;;; Sched_Checks=41;;;
real 0m0.079s
user 0m0.068s
sys 0m0.011sCode: Select all
php -iCode: Select all
ls -l /etc/php.dCode: Select all
ls -l /etc/php.d
total 128
-rw-r--r-- 1 root root 49 Oct 29 2019 curl.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 dom.ini
-rw-r--r-- 1 root root 57 Oct 29 2019 fileinfo.ini
-rw-r--r-- 1 root root 45 Oct 29 2019 gd.ini
-rw-r--r-- 1 root root 49 Apr 26 2019 imap.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 json.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 ldap.ini
-rw-r--r-- 1 root root 57 Oct 29 2019 mbstring.ini
-rw-r--r-- 1 root root 53 Sep 17 2018 mcrypt.ini
-rw-r--r-- 1 root root 51 Apr 26 2019 mssql.ini
-rw-r--r-- 1 root root 53 Oct 29 2019 mysqli.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 mysql.ini
-rw-r--r-- 1 root root 59 Apr 26 2019 pdo_dblib.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 pdo.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 pdo_mysql.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 pdo_pgsql.ini
-rw-r--r-- 1 root root 61 Oct 29 2019 pdo_sqlite.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 pgsql.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 phar.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 posix.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 snmp.ini
-rw-r--r--. 1 root root 23 Mar 1 2018 sourceguardian.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sqlite3.ini
-rw-r--r--. 1 root root 49 Jan 18 2014 ssh2.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvmsg.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvsem.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvshm.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 wddx.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 xmlreader.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 xmlwriter.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 xsl.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 zip.ini
Code: Select all
ls -l /etc/php.d
total 128
-rw-r--r-- 1 root root 49 Oct 29 2019 curl.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 dom.ini
-rw-r--r-- 1 root root 57 Oct 29 2019 fileinfo.ini
-rw-r--r-- 1 root root 45 Oct 29 2019 gd.ini
-rw-r--r-- 1 root root 49 Apr 26 2019 imap.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 json.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 ldap.ini
-rw-r--r-- 1 root root 57 Oct 29 2019 mbstring.ini
-rw-r--r-- 1 root root 53 May 17 2018 mcrypt.ini
-rw-r--r-- 1 root root 51 Apr 26 2019 mssql.ini
-rw-r--r-- 1 root root 53 Oct 29 2019 mysqli.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 mysql.ini
-rw-r--r-- 1 root root 59 Apr 26 2019 pdo_dblib.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 pdo.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 pdo_mysql.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 pdo_pgsql.ini
-rw-r--r-- 1 root root 61 Oct 29 2019 pdo_sqlite.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 pgsql.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 phar.ini
-rw-r--r-- 1 root root 51 Oct 29 2019 posix.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 snmp.ini
-rw-r--r--. 1 root root 23 Sep 19 2017 sourceguardian.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sqlite3.ini
-rw-r--r--. 1 root root 49 Jan 18 2014 ssh2.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvmsg.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvsem.ini
-rw-r--r-- 1 root root 55 Oct 29 2019 sysvshm.ini
-rw-r--r-- 1 root root 49 Oct 29 2019 wddx.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 xmlreader.ini
-rw-r--r-- 1 root root 59 Oct 29 2019 xmlwriter.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 xsl.ini
-rw-r--r-- 1 root root 47 Oct 29 2019 zip.ini
Code: Select all
time php -n -d curl.so -d dom.so -d fileinfo.so -d gd.so -d imap.so -d json.so -d ldap.so -d mbstring.so -d mcrypt.so -d mssql.so -d mysqli.so -d mysql.so -d pdo_dblib.so -d pdo.so -d pdo_mysql.so -d pdo_pgsql.so -d pdo_sqlite.so -d pgsql.so -d phar.so -d posix.so -d snmp.so -d sqlite3.so -d ssh2.so -d sysvmsg.so -d sysvsem.so -d sysvshm.so -d wddx.so -d xmlreader.so -d xmlwriter.so -d xsl.so -d zip.so /usr/local/nagios/libexec/check_nagios_performance.php ahc15Code: Select all
/etc/php.d