Cannot restart Nagios XI or reboot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Cannot restart Nagios XI or reboot

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot restart Nagios XI or reboot

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Re: Cannot restart Nagios XI or reboot

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot restart Nagios XI or reboot

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Re: Cannot restart Nagios XI or reboot

Post by randlebailey »

Sure - feel free to close this topic with my thanks!
Locked