Page 1 of 1

Cannot restart Nagios XI or reboot

Posted: Thu Jul 11, 2019 4:14 pm
by randlebailey
Nagios XI 5.5.7.
Running on a CentOS 7 vm

I uploaded the Nagios version of check_disk, then performed an "Apply Configuration" which showed successful.

I then attempted to create a new service monitor and when I selected "Check command" the check_disk option is not listed. So I looked in this forum and found some suggestions to restart the Nagios XI service. I first attempted to login using Putty to the Nagios XI server using nagiosadmin for the username and the correct password for that account (I can access the Nagios XI web gui), but the Putty session shows "Access denied". I can access the web gui as nagiosadmin and when I select Home/Monitoring Process/Process Info, I clicked on "Restart" under Process State/Actions. It shows that it is restarting but that's it. I still cannot see the check_disk option in my services.

So I thought I might try to reboot the Nagios XI server. Since I cannot login via Putty, what are my options? It seems the passwords for the users who are admins work for the Web GUI, but not via Putty. And I'm using port 22 in Putty.

Re: Cannot restart Nagios XI or reboot

Posted: Thu Jul 11, 2019 4:49 pm
by lmiltchev
I uploaded the Nagios version of check_disk, then performed an "Apply Configuration" which showed successful.
I am not sure why you would try to upload check_disk... It's included by default in Nagios XI...
I then attempted to create a new service monitor and when I selected "Check command" the check_disk option is not listed.
The check_disk command should be present. Do you see any config errors when you use the Config File Management tool?

CCM > Tools > Config File Management > Write Configs > Verify Files


Can you successfully apply configuration?
I first attempted to login using Putty to the Nagios XI server using nagiosadmin for the username and the correct password for that account (I can access the Nagios XI web gui), but the Putty session shows "Access denied". I can access the web gui as nagiosadmin and when I select Home/Monitoring Process/Process Info, I clicked on "Restart" under Process State/Actions. It shows that it is restarting but that's it.
The "nagiosadmin" user is for the GUI. You would like to log in (putty) as root. The "default" password is "nagiosxi", unless you changed it. Once you are logged in, check to see:

1. If you have any error messages in the mysqld.log or mariadb.log (depending on what DB you are using):

Code: Select all

tail /var/log/mysqld.log
tail /var/log/mariadb/mariadb.log
2. If you are not running out of disk space:

Code: Select all

df -h
3. If services are running:

Code: Select all

service nagios status
service ndo2db status
service crond status
service mysqld status
or

Code: Select all

service mariadb status
4. If you have check_disk in the commands.cfg file:

Code: Select all

grep check_disk /usr/local/nagios/etc/commands.cfg
5. If you can run reconfigure_nagios.sh script successfully:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh

Re: Cannot restart Nagios XI or reboot

Posted: Fri Jul 12, 2019 10:19 am
by randlebailey
Thanks for the clarification on the root/nagiosadmin access. I was able to login via root.

No real issues using the diagnoses you suggested (we're using mariadb).

I found check_disk in our .cfg file under the command check_local_disk and this seems to be working as expected.

And with access to the NagiosXI server via root, I was able to reboot the CentOS 7 server.

Re: Cannot restart Nagios XI or reboot

Posted: Fri Jul 12, 2019 10:38 am
by lmiltchev
I am glad I was able to help! Let us know if you have any further questions or it's OK to close this topic. Thanks!

Re: Cannot restart Nagios XI or reboot

Posted: Fri Jul 12, 2019 11:10 am
by randlebailey
Sure - feel free to close this topic with my thanks!