I'm testing the backup component, when I try to create a backup nothing happens, this error is appearing in error_log from apache:
PHP Warning: filesize(): stat failed for Error backing up MySQL database 'nagios' - check the password in this script! in /usr/local/nagiosxi/html/includes/components/scheduledbackups/scheduledbackups.inc.php on line 516
I can't check if the password is correct or not, because php file is protected with source guardian.
If I launch the backup script backup_xi.sh it works fine.
Thanks.
Backup component
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Backup component
The auth info ultimately comes from /usr/local/nagiosxi/html/config.inc.php, but it comes there for backup_xi.sh also I'm pretty sure.
Did you change your auth parameters for either of the databases?
Did you change your auth parameters for either of the databases?
Re: Backup component
No, we are using default password
Re: Backup component
Can you run the following command and show the output?
Code: Select all
grep pwd /usr/local/nagiosxi/html/config.inc.phpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Backup component
Hello,
Here the output:
grep pwd /usr/local/nagiosxi/html/config.inc.php
"pwd" => 'n@gweb',
"pwd" => 'n@gweb',
"pwd" => 'n@gweb',
Here the output:
grep pwd /usr/local/nagiosxi/html/config.inc.php
"pwd" => 'n@gweb',
"pwd" => 'n@gweb',
"pwd" => 'n@gweb',
Re: Backup component
This is the interesting part to me. What version of XI are you running?If I launch the backup script backup_xi.sh it works fine.
Check users and groups:
Code: Select all
grep nag /etc/passwd
grep nag /etc/groupCode: Select all
cat /etc/sudoersRe: Backup component
Hi,
I solved it! It was a permissions problem, realated with the own of /store/backups/nagiosxi/ directory, the owner should be nagios, and it was configured with root, after to change this it has worked.
Thanks for your suppport.
I solved it! It was a permissions problem, realated with the own of /store/backups/nagiosxi/ directory, the owner should be nagios, and it was configured with root, after to change this it has worked.
Thanks for your suppport.
You do not have the required permissions to view the files attached to this post.
Re: Backup component
Is there anything else we can do to help you out with this particular issue, or are we all right to mark this one resolved and close it up?
Former Nagios Employee.
me.
me.