Page 2 of 4

Re: Error code: 9.

Posted: Fri Jul 06, 2018 2:18 pm
by scottwilkerson
I see a lot of errors like this in the cmdsubsys.log

Code: Select all

Couldn't resolve proxy 'fg.umniah.com'
Also, can you run the following and return /tmp/reconfigure.txt

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh >/tmp/reconfigure.txt 2>&1

Re: Error code: 9.

Posted: Mon Jul 09, 2018 6:19 am
by habuhejleh
Error3.JPG
I removed the proxy and here is the output of the command:

login as: nagiosadmin
[email protected]'s password:
Last login: Mon Jul 9 14:01:53 2018 from 188.247.75.83
[nagiosadmin@um-isp-nagios-redline ~]$ vi /tmp/reconfigure.txt 2>&1
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
"/tmp/reconfigure.txt" 319L, 18293C 114,1 33%

and we have now another error in apply the configuration as in attachment Error3
Error3.JPG

Re: Error code: 9.

Posted: Mon Jul 09, 2018 8:12 am
by scottwilkerson
Please post the output of the following commands:

Code: Select all

getenforce
grep NAGIOS /etc/sudoers

Re: Error code: 9.

Posted: Mon Jul 09, 2018 8:56 am
by habuhejleh
Here is the output:

login as: nagiosadmin
[email protected]'s password:
login as: nagiosadmin
[email protected]'s password:
Last login: Mon Jul 9 14:17:14 2018 from 188.247.75.83
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
-bash: fork: retry: Resource temporarily unavailable
[nagiosadmin@um-isp-nagios-redline ~]$
[nagiosadmin@um-isp-nagios-redline ~]$
[nagiosadmin@um-isp-nagios-redline ~]$ getenforce
Disabled
[nagiosadmin@um-isp-nagios-redline ~]$ grep NAGIOS /etc/sudoers
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/component s/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/get profile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/compon ents/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/ getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
[nagiosadmin@um-isp-nagios-redline ~]$

Re: Error code: 9.

Posted: Mon Jul 09, 2018 6:15 pm
by scottwilkerson
habuhejleh wrote:

Code: Select all

-bash: fork: retry: Resource temporarily unavailable
Do you regularly see this? its like your system is our of file handles or something

Re: Error code: 9.

Posted: Tue Jul 10, 2018 3:00 am
by habuhejleh
Yes. What is the solution please?!

Our business is considerably impacted.

Re: Error code: 9.

Posted: Tue Jul 10, 2018 8:26 am
by scottwilkerson
please run the following

Code: Select all

rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
and then the following again and return /tmp/reconfigure.txt

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh >/tmp/reconfigure.txt 2>&1

Re: Error code: 9.

Posted: Mon Jul 16, 2018 8:15 am
by habuhejleh
Dear ,

I did the command "killall5 -9" in order to kill processes because each time I try to reset to configuration factory defaults or run command of reconfigure.sh it gives me error that another process is running...
After I did the command above I am now unable to login to nagiosxi by ssh and web page does not open, please advise how to fix this issue.

Thanks

Re: Error code: 9.

Posted: Mon Jul 16, 2018 8:17 am
by habuhejleh
We tried rebooting the entire VM however no luck. Please advise.

Re: Error code: 9.

Posted: Mon Jul 16, 2018 3:59 pm
by lmiltchev
For the "-bash: fork: retry: Resource temporarily unavailable" error, you can try following the steps, outlined here:

https://access.redhat.com/solutions/543503

Did you try removing the reconfigure_nagios.lock, prior to running the reconfigure_nagios.sh script as suggested by scottwilkerson?

I saw in the profile, that your hard drive was almost 90% full. Do you have enough HD space now? What is the output of the following command?

Code: Select all

df -h
Do you see any errors in the web UI, when you try to log in?

Code: Select all

http://<ip address>/nagiosxi
What about errors in the apache error log?

Code: Select all

tail -100 /var/log/httpd/error_log
Is apache running?

Code: Select all

service httpd status
Also, if you are using a proxy, I would recommend reviewing our KB article on the topic here:

https://support.nagios.com/kb/article/n ... s-147.html