Page 1 of 1

Linux-nrpe-agent installation

Posted: Mon Jan 22, 2018 10:08 am
by Katya.Ailarov
Hi Team,

I have tried to configure linux server (agent installation) via nagiosxi dashboard.

It seems that im stack on this field on Linux Server Monitoring Wizard (see attched photo)
Waiting for configuration verification..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

and basically nothing happen already 2 hours.

Can you let me know why?

Thanks,
Katya.

Re: Linux-nrpe-agent installation

Posted: Mon Jan 22, 2018 11:23 am
by npolovenko
Hello, @Katya.Ailarov. 2 hours is definitely too long. It shouldn't take more than a few seconds. I think some config that you saved earlier had errors, and now the wizard is trying to write out all previous configs from MySQL to internal cfg files but it fails to pass the verification. Can you navigate to the Core Configurations Manager menu, then Configuration Snapshots(in the left column). Do you see any red snapshots recently?
Untitled.png
You may click on the "view command output" icon to try to figure out what's wrong. Or you may just revert to the last successful snapshot, and then try to run a wizard one more time.
Let us know if that helps, otherwise, I will have a few more troubleshooting steps.

Re: Linux-nrpe-agent installation

Posted: Tue Jan 23, 2018 10:39 am
by Katya.Ailarov
Hi,

sorry for my delay response as Im working in Europe time zone.

i even dont see this package installed on recent snapshot. (see attched). i see only from Jan 10 as it was my controol installation and not the remote machine.

i tried today agian to install and again this what i see:

Linux Server Monitoring Wizard
Waiting for configuration verification.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
BTW my ./fullinstall worked on that server and i see that port 5666 lisiting.

so what is wrong?

Thanks,
Katya.

Re: Linux-nrpe-agent installation

Posted: Tue Jan 23, 2018 12:14 pm
by lmiltchev
It seems like the "Linux Server Monitoring Wizard" is timing out. We need to take a look at your configuration files, and various logs in order to further troubleshoot the issue.

Please go to Admin > System Config > System Profile > Download Profile, save the "profile.zip", and send it to me (or any member of the Nagios Tech Support team) via PM. Thank you!

Re: Linux-nrpe-agent installation

Posted: Wed Jan 24, 2018 8:03 am
by Katya.Ailarov
Hi,

see attached profile.zip

Re: Linux-nrpe-agent installation

Posted: Wed Jan 24, 2018 10:48 am
by dwhitfield
You'll want to take a look at https://support.nagios.com/kb/article.php?id=34

Also, in /etc/php.ini, please change the following to the listed numbers (unless the numbers are higher than these):

max_execution_time = 60
max_input_time = 120
memory_limit = 256M

Also, please add the following line:
max_input_vars = 10000

After making these changes you'll need to restart the httpd service:

# service httpd restart

Re: Linux-nrpe-agent installation

Posted: Thu Jan 25, 2018 9:51 am
by Katya.Ailarov
Hi,

To tell you the truth I'm already lost.

I ran the configuration that you sent me and also follow all the solutions in this URL: https://support.nagios.com/kb/article.php?id=34


vi /etc/php.ini

max_execution_time = 60
max_input_time = 60
memory_limit = 256

service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]


vi /usr/local/nagiosxi/html/config.inc.php

// Force http/https
$cfg['use_https'] = true;

[root@ssb01opsprd tmp]# tar xzf xi-5.2.9.tar.gz nagiosxi/nagiosxi/nagiosxi.sudo
[root@ssb01opsprd tmp]# grep -v NAGIOSXI /etc/sudoers > /etc/sudoers.new
[root@ssb01opsprd tmp]# mv -f /etc/sudoers.new /etc/sudoers
[root@ssb01opsprd tmp]# rm -rf /etc/sudoers.d/nagiosxi
[root@ssb01opsprd tmp]# sed -i 's/^Defaults requiretty/#Defaults requiret
[root@ssb01opsprd tmp]# cat /tmp/nagiosxi.sudoers >> /etc/sudoers
[root@ssb01opsprd tmp]# chmod 440 /etc/sudoers
[root@ssb01opsprd tmp]# rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lo
[root@ssb01opsprd tmp]# service nagios stop
Stopping nagios:. done.
[root@ssb01opsprd tmp]# service nagios start
Starting nagios: done.
[root@ssb01opsprd tmp]#


And I'm still getting:
Linux Server Monitoring Wizard
• Waiting for configuration verification............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Please assist.

Maybe to do some session.

Thanks,
Katya.

Re: Linux-nrpe-agent installation

Posted: Thu Jan 25, 2018 10:49 am
by dwhitfield
Katya.Ailarov wrote: Maybe to do some session.
Please feel free to open a ticket at https://support.nagios.com/tickets/ but please note that opening a ticket is not a guarantee of a remote session. Please make sure you reference this ticket.