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.
Cannot restart Nagios XI or reboot
Re: Cannot restart Nagios XI or reboot
I am not sure why you would try to upload check_disk... It's included by default in Nagios XI...I uploaded the Nagios version of check_disk, then performed an "Apply Configuration" which showed successful.
The check_disk command should be present. Do you see any config errors when you use the Config File Management tool?I then attempted to create a new service monitor and when I selected "Check command" the check_disk option is not listed.
CCM > Tools > Config File Management > Write Configs > Verify Files
Can you successfully apply configuration?
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: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.
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.logCode: Select all
df -hCode: Select all
service nagios status
service ndo2db status
service crond status
service mysqld statusCode: Select all
service mariadb statusCode: Select all
grep check_disk /usr/local/nagios/etc/commands.cfgCode: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.shBe 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
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.
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
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
Sure - feel free to close this topic with my thanks!