Page 3 of 3

Re: Nagios Stats Wizard Slow

Posted: Wed Aug 26, 2020 9:12 am
by andyb4u
I ran the command and it returned straight away:

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 ahc15
OK - Total Checks:234; On-Demand:193; Scheduled:41 | Total_Checks=234;;; On_Demand=193;;; Sched_Checks=41;;;

real    0m0.095s
user    0m0.082s
sys     0m0.013s
I then amended it to -d extension=NAME.so and have found that imap.so is slow:

Code: Select all

 time php -n -d extension=imap.so /usr/local/nagios/libexec/check_nagios_performance.php ahc15
OK - Total Checks:226; On-Demand:183; Scheduled:43 | Total_Checks=226;;; On_Demand=183;;; Sched_Checks=43;;;

real    0m17.182s
user    0m0.078s
sys     0m0.009s

Re: Nagios Stats Wizard Slow

Posted: Thu Aug 27, 2020 2:44 pm
by ssax
Interesting, thanks for posting that.

Try editing your /etc/hosts and make sure you have this line:
- Change YOURHOSTNAME to the output of the "hostname" command, make sure localhost is on there as well

Code: Select all

127.0.0.1 localhost YOURHOSTNAME
See if that resolves it.

Taken from here:

Code: Select all

https://github.com/liip/build-entropy-php/issues/11

Re: Nagios Stats Wizard Slow

Posted: Wed Sep 02, 2020 8:00 am
by andyb4u
Editing the /etc/hosts file resolved the issue for us.

I also removed the old active directory components as well on both servers.

Thanks very much for your help with this issue.

Re: Nagios Stats Wizard Slow

Posted: Wed Sep 02, 2020 8:46 am
by scottwilkerson
andyb4u wrote:Editing the /etc/hosts file resolved the issue for us.

I also removed the old active directory components as well on both servers.

Thanks very much for your help with this issue.
Great!

Locking thread