The problem with elastix?


The elastix server (centos). Successfully worked on the CallCenter. One "beautiful" day has stopped working "8".

Did reboot. Successfully boots to the prompt "date ~", then press "ctrl +d", there is a further download. Asterisk does not rise permanently Automatically restarting asterisk asterisk ended with exit status 1 asterisk died with code 1. date: +%: invalid option.

After you can log in to the system. Confuses a few details:

1) in /bin/ there are two date functions: date (asterisk) and date1 782kb, 50 kb. Date from asterisk does not return anything. date1 successfully returns the current date and time.

2) the Ping goes to the server, but httpd does not rise (reliable couldn't determine the fqdn), I tried to put in php.ini timezone "Europe/Moscow", but to no avail.

On the server nothing changed to the ill-fated day everything worked successfully.

I tried ntpdate, tzdata update, didn't help. Obviously something with the transition to winter time, but can't figure out what. Deep Google has not helped... any thoughts?
October 8th 19 at 00:55
2 answers
October 8th 19 at 00:57
More like that the server was hacked.
And, by the way, replaced the /bin/date
If you look at the sudo, then there is a line:
asterisk ALL = NOPASSWD: /bin/date
and in General, asterisk for a few system commands written in sudo
for sure, specially down settings 8 key to force restart and when you restart start the computer.
Because if you got on the server through the web panel, from there system calls via CLI is prohibited. - simeon_Fay commented on October 8th 19 at 01:00
Now the best option is to merge the configs of asterisk and perestaval from scratch. When available, configs, everything back in place, the case for 15-20 minutes. - simeon_Fay commented on October 8th 19 at 01:03
It would be more in the logs to try to find out how and when a rootkit was abandoned. After the "resuscitation" should test the same configs asteriks — if there was a hole she could stay. - Cade_OHara78 commented on October 8th 19 at 01:06
Well that goes :) - simeon_Fay commented on October 8th 19 at 01:09
October 8th 19 at 00:59
Have even option +% specifies the output format: the program is most often requested date +%s (output in UNIX time format, one integer).

I think it is necessary to check whether the broken date (not true if date1).
The idea. php already uses system calls (instead of date), but you never know...

In General, I think either a broken system call, the kernel, or just date.
even -> date (sorry) - simeon_Fay commented on October 8th 19 at 01:02
and apparently date ~ is the invitation Ruth-whale-king - date is not real - simeon_Fay commented on October 8th 19 at 01:05
and if you change the current date to a known working date? or is it easier to have to rearrange from zero? - Cade_OHara78 commented on October 8th 19 at 01:08

Find more questions by tags CentOSAsterisk* nix-like systemsElastixApache