This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
andyb4u
Posts: 114 Joined: Tue Aug 15, 2017 1:58 am
Post
by andyb4u » Wed Aug 26, 2020 9:12 am
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
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Thu Aug 27, 2020 2:44 pm
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
See if that resolves it.
Taken from here:
Code: Select all
https://github.com/liip/build-entropy-php/issues/11
andyb4u
Posts: 114 Joined: Tue Aug 15, 2017 1:58 am
Post
by andyb4u » Wed Sep 02, 2020 8:00 am
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.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Sep 02, 2020 8:46 am
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