Can't restart process from my web interface
Can't restart process from my web interface
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": We are running Nagios XI 2012R2.7 on a CentOS release 6.4
Thank for your help
BRegards
We are not able to restart/stop any process from our web interface.
I get this error when a click on "Action->restart|stop": 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.
Re: Can't restart process from my web interface
What's the load on the server? Log into the CLI and run:
and post the output here
Code: Select all
wFormer Nagios employee
Re: Can't restart process from my web interface
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
[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
Re: Can't restart process from my web interface
So, load is low. What is the output of:
Code: Select all
grep "memory_limit\|max_execution\|max_input" /etc/php.iniFormer 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.
"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.
Re: Can't restart process from my web interface
This the output:
; max_input_time
max_execution_time = 60
max_input_time = 120
;max_input_nesting_level = 64
memory_limit = 256M
; max_input_time
max_execution_time = 60
max_input_time = 120
;max_input_nesting_level = 64
memory_limit = 256M
Re: Can't restart process from my web interface
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.
"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.
Re: Can't restart process from my web interface
We have this problem on the production environment. At the moment, our nagiosxi installation is empty.
This is a screenshot of the "Tactical Overview":
We did not experience this issue on the test platform (Nagios XI 2012R2.2 on Centos 6.3) with more than 5000checks/min.
This is a screenshot of the "Tactical Overview":
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.
Re: Can't restart process from my web interface
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
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
Re: Can't restart process from my web interface
Re: Can't restart process from my web interface
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