When I try to create a check for the 'nagiosxi' database, I get the following error:
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/box293_check_mysql_table_status nagiosxi root nagiosxi Database "nagiosxi" = ERROR 1049 (42000) at line 1: Unknown database 'nagiosxi'
Could it be using a different name or a different username/password combination?
XI local backups not running
Re: XI local backups not running
Sorry the 'nagiosql' database works. I didn't notice there was only one 's' in the name.
Here's what I get when I list the databases running on one of my XI servers:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| nagios |
| nagiosql |
+--------------------+
4 rows in set (0.00 sec)
I don't see 'nagiosxi' listed.
Here's what I get when I list the databases running on one of my XI servers:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| nagios |
| nagiosql |
+--------------------+
4 rows in set (0.00 sec)
I don't see 'nagiosxi' listed.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: XI local backups not running
Hi @rferebee,
We used to use postgres for the nagiosxi database and the upgrade script will just maintain this database.
If you'd like to verify this, the following command will let you know which database you have.
You can use the Postgres Database Wizard built into Nagios XI to monitor it. To can view the db credentials open up /usr/local/nagiosxi/html/config.inc.php in a text editor.
Let me know if you have any other questions.
We used to use postgres for the nagiosxi database and the upgrade script will just maintain this database.
If you'd like to verify this, the following command will let you know which database you have.
Code: Select all
awk '/"nagiosxi" => array\(/{getline;print}' /usr/local/nagiosxi/html/config.inc.phpLet me know if you have any other questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: XI local backups not running
So, looking at the config.inc.php file. There appears to be 3 different Postgres DBs.
'nagiosxi'
'ndoutils'
'nagiosql'
Would we want to monitor each one of those individually? They all have different usernames and passwords.
Thank you.
'nagiosxi'
'ndoutils'
'nagiosql'
Would we want to monitor each one of those individually? They all have different usernames and passwords.
Thank you.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: XI local backups not running
Hello,
Looking at your profile, nagios and nagiosql are using mysql and nagiosxi is using postgres. You have the checks setup for nagios and nagiosql, so I would recommend using the postgres wizard to check the nagiosxi database.So, looking at the config.inc.php file. There appears to be 3 different Postgres DBs.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: XI local backups not running
Ok, great. Go ahead and lock this thread then. Thank you.
Re: XI local backups not running
Excellent, glad to hear everything is working!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!