I'm trying to use the 1.000.051 version on my Nagios server. Here's the particulars on the Nagios machine:
OS: Red Hat Enterprise Linux, v. 5 for 64 bit x86_64
nagios: v3.0.2
NCPL : v1.000.051
Apache: v2.2.3
Mysqld: v5.0.45
perl: v5.8.8
I've got most everything working with NCPL on the machine, but I'm having a few issues with the import, export and install features of NCPL. When I open the NCPL admin page through the web browser, and click on one of the links like the Hosts link, I see two fully populated pages of hosts that I've entered through the mechanisms within NCPL. However, when I go to Export, or Install the cfg files, I end up with basically empty .cfg files, with only this in them:
The users manual pages describing "Deploy your config files with NCPL" show up in the pdf as TO DO.
When I go to the "Export All Config Files" page, I get a little drop down box that lets me select the server, which in this case is named "kona." The directory block then changes to this: "/usr/local/nagios/share/ncpl/applications/wwwroot/tmp/export/kona". After I click the "Export" button, it exports all the config files to the directory, and copies the existing config files to .cfg.bak! files which is a good thing. However, the only thing it's doing is creating empty files in that directory with the banner above being the only content.
If I use the "Install new Nagios Config" page, I have a drop down box, with the server "kona" again, which I select, and two others: "restart daemon" and "Force install." Before I select the server, the path reads: "/usr/local/nagios/share/ncpl/applications/wwwroot/tmp/installed", and after I select kona as the server, the path reads: "/usr/local/nagios/share/ncpl/applications/wwwroot/tmp/installed/kona". All well and good so far. I click the install button, and a whole slew of attempted "diff's" appear, all with the same message - "No diff possible: No previously installed config file available!" Scroll down to the bottom, and it goes through the nagios cfg check, and i get this:
Installing the new nagios configuration ...
/usr/bin/scp -o "StrictHostKeyChecking=no" -i '/usr/local/nagios/.ssh/id_dsa' -P 22 /usr/local/nagios/share/ncpl/applications/wwwroot/tmp/export/kona/*.cfg nagios@kona.nrl.navy.mil:/usr/local/nagios/etc
/usr/bin/ssh -o "StrictHostKeyChecking=no" -i '/usr/local/nagios/.ssh/id_dsa' -p 22 nagios@kona.nrl.navy.mil "chown nagios:nagios /usr/local/nagios/etc/*.cfg"
Verifying the new nagios configuration ...
/usr/bin/ssh -o "StrictHostKeyChecking=no" -i '/usr/local/nagios/.ssh/id_dsa' -p 22 nagios@kona.nrl.navy.mil "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"
Nagios 3.0.2
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-19-2008
License: GPL
Reading configuration data...
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Running pre-flight check on configuration data...
Checking services...
Error: There are no services defined!
Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groups...
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: There are no contacts defined!
Checked 0 contacts.
Checking contact groups...
Checked 0 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 15 commands.
Checking time periods...
Checked 0 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Warning: Nothing specified for illegal_macro_output_chars variable!
Total Warnings: 1
Total Errors: 3
***> One or more problems was encountered while running the pre-flight check...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
The hosts cfg file should be populated, as well as the services config and the contact config. It seems for some reason that NCPL isn't populating the config files with what's in the mysql database. Any ideas as to where I can start troubleshooting this problem?
Attached are: backup.tar.gz, the mysql dump, import.tar.gz, the contents of the import directory, and export.tar.gz, the contents of the export directory. The installed directory remains empty, even after repeated runs of installing the config files.
Thanks,
Mark Wendt
contents of backup directory
Logged In: YES
user_id=423476
Originator: NO
Hi Mark,
Thanks for using NCPL.
Kind regards,
Yves
Any ideas yet as to when the next version will be released?
Mark