Can't restart process from my web interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Can't restart process from my web interface

Post by mon-team »

Hi,
We are not able to restart/stop any process from our web interface.
I get this error when a click on "Action->restart|stop":
Screenshot-1.png
We are running Nagios XI 2012R2.7 on a CentOS release 6.4

Thank for your help

BRegards
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't restart process from my web interface

Post by tmcdonald »

What's the load on the server? Log into the CLI and run:

Code: Select all

w
and post the output here
Former Nagios employee
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Can't restart process from my web interface

Post by mon-team »

We are about to migrate from nagios core to nagosxi.
[root@nagiosxi ~]# w
16:00:03 up 73 days, 1:12, 1 user, load average: 0.07, 0.02, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
xxx pts/0 xxx 15:06 0.00s 0.12s 0.00s sshd: xxx [priv]

The nagiosxi installation has been completed successfully
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't restart process from my web interface

Post by abrist »

So, load is low. What is the output of:

Code: Select all

grep "memory_limit\|max_execution\|max_input" /etc/php.ini
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Can't restart process from my web interface

Post by mon-team »

This the output:
; max_input_time
max_execution_time = 60
max_input_time = 120
;max_input_nesting_level = 64
memory_limit = 256M
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't restart process from my web interface

Post by abrist »

How large is your install? How many checks/5min.?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Can't restart process from my web interface

Post by mon-team »

We have this problem on the production environment. At the moment, our nagiosxi installation is empty.
This is a screenshot of the "Tactical Overview":
Screenshot-2.png
We did not experience this issue on the test platform (Nagios XI 2012R2.2 on Centos 6.3) with more than 5000checks/min.
You do not have the required permissions to view the files attached to this post.
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Can't restart process from my web interface

Post by mon-team »

I had a look on this forum and I tried this but it didn't resolve the issue

service nagios stop
service ndo2db stop
service mysqld stop
service npcd stop
service postgresql stop
service httpd stop
service crond stop
chmod +x /usr/local/nagiosxi/scripts/reset_config_perms.sh
/usr/local/nagiosxi/scripts/reset_config_perms.sh
service nagios start
service ndo2db start
service mysqld start
service npcd start
service postgresql start
service httpd start
service crond start

I get these errors in the cron log:
[root@nagiosxi ~]# tail -20 /var/log/cron
Jan 17 13:31:01 xxx CROND[14402]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Jan 17 13:31:01 xxx CROND[14403]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Jan 17 13:31:01 xxx CROND[14404]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Jan 17 13:31:01 xxx CROND[14405]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Jan 17 13:32:01 xxx CROND[14551]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Jan 17 13:32:01 xxx CROND[14552]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory

This is the nagiosxi cron file
[root@nagiosxi ~]# cat /etc/cron.d/nagiosxi
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi

# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 8 * * * root /root/scripts/autopostgresqlbackup

* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl > /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1

and this is the ps output
[root@nagiosxi ~]# ps -ef | grep nagiosxi/cron/
root 17022 4444 0 13:49 pts/1 00:00:00 grep nagiosxi/cron/

It seems like no nagiosxi process is running.

What's wrong with my clean nagiosxi
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: Can't restart process from my web interface

Post by mon-team »

:D We fix the problem by creating a nagios home /home/nagios
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't restart process from my web interface

Post by tmcdonald »

Nice catch. You got to it before we even opened up shop this morning, but glad it's fixed regardless. Can we close this up?
Former Nagios employee
Locked