Hosts ping didn't work anymore
-
Hi,
It’s not a big deal but since few months, hosts ping didn’t work : all pc already in fog console are always marked as red even if they are online with display “operation not permitted”.
And strange thing is : newly added hosts are always marked as green with “success” display even if they are shutdown…Thanks
Matthieu -
The detention is not perfect. Operation not permitted is the actual message returned when trying to perform the action. New hosts will always show as success because it hasn’t pinged yet.
-
Ok, it’s not a problem, it’s just surprising that all former pc are always in red (computers already in database before arpil/may) and all new one (since may) are always in green even if they have already been start/stop several times.
-
@Matthieu-Jacquart just a guess but anything in Apache logs or the phone bg hosts log?
-
@Tom-Elliott you need for apache : /var:log/apache2 error or acces.log ?
And where is store phone bg hosts log ?
Thx -
error logs, and It’s found in the same place all other fog service logs are, typically (/opt/fog/log)
-
@Tom-Elliott So for Apache2 error.log
[Fri Jul 01 06:25:05.794055 2016] [mpm_prefork:notice] [pid 9533] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Fri Jul 01 06:25:05.794094 2016] [core:notice] [pid 9533] AH00094: Command line: '/usr/sbin/apache2' [Fri Jul 01 09:40:52.599086 2016] [:error] [pid 29141] [client 192.168.11.105:51580] PHP Warning: PDOStatement::execute(): MySQL server has gone away in /var/www/html/fog/lib/db/pdodb.class.php on line 169 [Fri Jul 01 09:40:52.599161 2016] [:error] [pid 29141] [client 192.168.11.105:51580] PHP Warning: PDOStatement::execute(): Error reading result set's header in /var/www/html/fog/lib/db/pdodb.class.php on line 169 [Fri Jul 01 09:41:00.028748 2016] [:error] [pid 29005] [client 192.168.11.121:49365] PHP Warning: PDO::__construct(): MySQL server has gone away in /var/www/html/fog/lib/db/pdodb.class.php on line 32 [Fri Jul 01 09:41:02.087150 2016] [mpm_prefork:notice] [pid 9533] AH00169: caught SIGTERM, shutting down [Fri Jul 01 09:42:01.134269 2016] [mpm_prefork:notice] [pid 31697] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Fri Jul 01 09:42:01.134363 2016] [core:notice] [pid 31697] AH00094: Command line: '/usr/sbin/apache2'
But in opt/fog/log I have no phone bg hosts log
-
@Matthieu-Jacquart Sorry my phone sucks.
Pinghosts is what I was looking for.
-
@Tom-Elliott I supposed it was this one
Nothing new in this file since October 2015 ! As for most of fog log file if you look at my previous post, strange no ?[10-09-15 1:22:05 pm] * Attempting to ping 320 host(s). [10-09-15 1:25:36 pm] * All status' have been updated [10-09-15 1:30:36 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 1:30:36 pm] * This server's IP Addresses [10-09-15 1:30:36 pm] | 192.168.10.60 [10-09-15 1:30:36 pm] | fog [10-09-15 1:30:36 pm] * Attempting to ping 320 host(s). [10-09-15 1:34:08 pm] * All status' have been updated [10-09-15 1:39:08 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 1:39:08 pm] * This server's IP Addresses [10-09-15 1:39:08 pm] | 192.168.10.60 [10-09-15 1:39:08 pm] | fog [10-09-15 1:39:08 pm] * Attempting to ping 320 host(s). [10-09-15 1:42:43 pm] * All status' have been updated [10-09-15 1:47:43 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 1:47:43 pm] * This server's IP Addresses [10-09-15 1:47:43 pm] | 192.168.10.60 [10-09-15 1:47:43 pm] | fog [10-09-15 1:47:43 pm] * Attempting to ping 320 host(s). [10-09-15 1:51:23 pm] * All status' have been updated [10-09-15 1:56:23 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 1:56:23 pm] * This server's IP Addresses [10-09-15 1:56:23 pm] | 192.168.10.60 [10-09-15 1:56:23 pm] | fog [10-09-15 1:56:23 pm] * Attempting to ping 320 host(s). [10-09-15 2:00:05 pm] * All status' have been updated [10-09-15 2:05:05 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:05:05 pm] * This server's IP Addresses [10-09-15 2:05:05 pm] | 192.168.10.60 [10-09-15 2:05:05 pm] | fog [10-09-15 2:05:05 pm] * Attempting to ping 320 host(s). [10-09-15 2:08:46 pm] * All status' have been updated [10-09-15 2:13:46 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:13:46 pm] * This server's IP Addresses [10-09-15 2:13:46 pm] | 192.168.10.60 [10-09-15 2:13:46 pm] | fog [10-09-15 2:13:46 pm] * Attempting to ping 318 host(s). [10-09-15 2:17:24 pm] * All status' have been updated [10-09-15 2:22:24 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:22:24 pm] * This server's IP Addresses [10-09-15 2:22:24 pm] | 192.168.10.60 [10-09-15 2:22:24 pm] | fog [10-09-15 2:22:24 pm] * Attempting to ping 317 host(s). [10-09-15 2:26:05 pm] * All status' have been updated [10-09-15 2:31:05 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:31:05 pm] * This server's IP Addresses [10-09-15 2:31:05 pm] | 192.168.10.60 [10-09-15 2:31:05 pm] | fog [10-09-15 2:31:05 pm] * Attempting to ping 317 host(s). [10-09-15 2:34:38 pm] * All status' have been updated [10-09-15 2:39:38 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:39:38 pm] * This server's IP Addresses [10-09-15 2:39:38 pm] | 192.168.10.60 [10-09-15 2:39:38 pm] | fog [10-09-15 2:39:38 pm] * Attempting to ping 317 host(s). [10-09-15 2:43:14 pm] * All status' have been updated [10-09-15 2:48:14 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:48:14 pm] * This server's IP Addresses [10-09-15 2:48:14 pm] | 192.168.10.60 [10-09-15 2:48:14 pm] | fog [10-09-15 2:48:14 pm] * Attempting to ping 317 host(s). [10-09-15 2:51:45 pm] * All status' have been updated [10-09-15 2:56:45 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 2:56:45 pm] * This server's IP Addresses [10-09-15 2:56:45 pm] | 192.168.10.60 [10-09-15 2:56:45 pm] | fog [10-09-15 2:56:45 pm] * Attempting to ping 317 host(s). [10-09-15 2:59:22 pm] * All status' have been updated [10-09-15 3:04:22 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:04:22 pm] * This server's IP Addresses [10-09-15 3:04:22 pm] | 192.168.10.60 [10-09-15 3:04:22 pm] | fog [10-09-15 3:04:22 pm] * Attempting to ping 317 host(s). [10-09-15 3:07:03 pm] * All status' have been updated [10-09-15 3:12:03 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:12:03 pm] * This server's IP Addresses [10-09-15 3:12:03 pm] | 192.168.10.60 [10-09-15 3:12:03 pm] | fog [10-09-15 3:12:03 pm] * Attempting to ping 317 host(s). [10-09-15 3:14:43 pm] * All status' have been updated [10-09-15 3:19:43 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:19:43 pm] * This server's IP Addresses [10-09-15 3:19:43 pm] | 192.168.10.60 [10-09-15 3:19:43 pm] | fog [10-09-15 3:19:43 pm] * Attempting to ping 317 host(s). [10-09-15 3:22:22 pm] * All status' have been updated [10-09-15 3:27:22 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:27:22 pm] * This server's IP Addresses [10-09-15 3:27:22 pm] | 192.168.10.60 [10-09-15 3:27:22 pm] | fog [10-09-15 3:27:22 pm] * Attempting to ping 317 host(s). [10-09-15 3:30:04 pm] * All status' have been updated [10-09-15 3:35:04 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:35:04 pm] * This server's IP Addresses [10-09-15 3:35:04 pm] | 192.168.10.60 [10-09-15 3:35:04 pm] | fog [10-09-15 3:35:04 pm] * Attempting to ping 317 host(s). [10-09-15 3:37:50 pm] * All status' have been updated [10-09-15 3:42:50 pm] * FOG Web Host IP: 192.168.10.60 [10-09-15 3:42:50 pm] * This server's IP Addresses [10-09-15 3:42:50 pm] | 192.168.10.60 [10-09-15 3:42:50 pm] | fog [10-09-15 3:42:50 pm] * Attempting to ping 316 host(s). [10-09-15 3:45:39 pm] * All status' have been updated
-
Real strange yes.
-
@Tom-Elliott I moved these log files and reboot server but /opt/fog/log is empty, log files don’t regenerate…
Anything to do to force this ? -
@Matthieu-Jacquart try to just touch the file to make a blank file, give it 777 permissions and see what happens.
touch /opt/fog/log/pinghosts.log
chmod 777 /opt/fog/log/pinghosts.log
I briefly looked over this thread - no mention of firewall so far… check that? What about SELinux?
-
@Wayne-Workman Ok done and update to last git, any changes…
And no rules in debian FW (/sbin/iptables -L) -
@Matthieu-Jacquart Is your server GUI based (do you open using xterm/terminal?) I ask because I’ve seen where logs don’t get written and most commonly it’s how the system was installed. Many people run:
./installfog.sh -y
which is fine in most cases, but if you’re already root (xterm – thensudo su
rather thansudo -i
orsudo su -
or signed directly in to GUI as root), the root paths aren’t properly solved out. This is fixed, often, by changing how you’re becoming root. -
@Tom-Elliott So, I’ll try to well respond, but not sure to have understood everything
My installation is a debian 8 without graphic interface, and I connect with SSH directly with root account.
I just run ./install.sh (without -y) -
This is just a thought but if host ping is having issues - wouldn’t there be logs about that in the apache error logs?
On Debian that might be
/var/log/apache2/error_log
-
@Wayne-Workman there’s just this in error.log :
root@FOG:~/fogproject/bin$ cat /var/log/apache2/error.log [Sat Jul 02 06:25:06.594071 2016] [mpm_prefork:notice] [pid 614] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Sat Jul 02 06:25:06.594117 2016] [core:notice] [pid 614] AH00094: Command line: '/usr/sbin/apache2' [Sat Jul 02 07:15:12.454565 2016] [mpm_prefork:notice] [pid 614] AH00169: caught SIGTERM, shutting down [Sat Jul 02 07:16:13.577194 2016] [mpm_prefork:notice] [pid 10135] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Sat Jul 02 07:16:13.577269 2016] [core:notice] [pid 10135] AH00094: Command line: '/usr/sbin/apache2' [Sat Jul 02 07:51:39.063190 2016] [:error] [pid 10139] [client 192.168.10.100:62222] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=11 [Sat Jul 02 07:51:39.208575 2016] [:error] [pid 10139] [client 192.168.10.100:62222] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=11 [Sat Jul 02 07:51:49.530751 2016] [:error] [pid 10139] [client 192.168.10.100:62229] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=12 [Sat Jul 02 07:51:49.921369 2016] [:error] [pid 10139] [client 192.168.10.100:62229] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=12 [Sat Jul 02 07:52:06.022140 2016] [:error] [pid 10141] [client 192.168.10.100:62239] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=13 [Sat Jul 02 07:52:06.185214 2016] [:error] [pid 10141] [client 192.168.10.100:62239] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=13 [Sat Jul 02 07:52:53.885908 2016] [:error] [pid 10138] [client 192.168.10.100:62257] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=30 [Sat Jul 02 07:52:53.972500 2016] [:error] [pid 10138] [client 192.168.10.100:62257] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=30 [Sat Jul 02 07:53:02.356415 2016] [:error] [pid 10139] [client 192.168.10.100:62263] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=48 [Sat Jul 02 07:53:02.443640 2016] [:error] [pid 10139] [client 192.168.10.100:62263] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=48 [Sat Jul 02 07:53:09.652814 2016] [:error] [pid 10142] [client 192.168.10.100:62271] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=edit&id=49 [Sat Jul 02 07:53:10.102532 2016] [:error] [pid 10142] [client 192.168.10.100:62271] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=edit&id=49 [Sat Jul 02 07:53:26.764508 2016] [:error] [pid 10181] [client 192.168.10.100:62274] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 947, referer: http://fog/fog/management/?node=snapin&sub=membership&id=49 [Sat Jul 02 07:53:27.140005 2016] [:error] [pid 10181] [client 192.168.10.100:62274] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 986, referer: http://fog/fog/management/?node=snapin&sub=membership&id=49 [Sat Jul 02 16:39:30.230292 2016] [mpm_prefork:notice] [pid 10135] AH00169: caught SIGTERM, shutting down [Sat Jul 02 16:40:24.793549 2016] [mpm_prefork:notice] [pid 17770] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Sat Jul 02 16:40:24.793605 2016] [core:notice] [pid 17770] AH00094: Command line: '/usr/sbin/apache2'
-
Not going to help much, I’m sure, but what about output of:
systemctl status -l FOGPingHosts
-
root@FOG:~/fogproject/bin$ systemctl status -l FOGPingHosts * FOGPingHosts.service - FOGPingHosts Loaded: loaded (/lib/systemd/system/FOGPingHosts.service; enabled) Active: failed (Result: exit-code) since sam. 2016-07-02 16:41:07 CEST; 3h 35min ago Main PID: 19806 (code=exited, status=203/EXEC) juil. 02 16:41:07 FOG systemd[19806]: Failed at step EXEC spawning /opt/fog/service/FOGPingHosts/FOGPingHosts: Permission denied juil. 02 16:41:07 FOG systemd[1]: FOGPingHosts.service: main process exited, code=exited, status=203/EXEC juil. 02 16:41:07 FOG systemd[1]: Unit FOGPingHosts.service entered failed state.
-
@Matthieu-Jacquart Is apparmour, by chance, blocking stuff?