Have you looked at your directory permissions and owner ship of files and directories. if that all looks ok, try the command line import command and use the strace command to get an internal view of what error is being returned. strace -f <nagiosql command>
what order are you loading the configs? hosts and services should be last. php has a maximum file size, which would need to be changed in php.ini. for large files like host and services, split them into smaller chunks.
i think your problem is database authentication. The nagiosql scripts and docs don't cater for all evetuallities. i would suggest creating a blank database and setting the password and rerunning the script.
Hi, Can anyone please explain exactly what the "write" option does in the do_config.php. I never get a failure when running it, but it does not seem to write anything out. I can import a file using the command, but the "write" function has me confused. Examples php doconfig.php write localhost hosts Write hosts.cfg ... Configuration file hosts.cfg successfully written! Nothing written anywhere
Thanx for the feedback. I must a permissions issue that is not showing up.
Hi , I am in the process of rewriting a bunch of scripts that do automatic configuration on server deployment from NCONF to NAGIOSQL. So I have few questions. What does the actual "write" function do when running do_config.php. It says it writes out a configuration, but I never see anything appear, and strace does not give sufficient information to trace what it is doing. In the gui what function would run the "Write all config files" , and is there a script to do this. regards