Hello all,
Please bear with me as I am new to this program and it's Linux based commands/file paths. I have installed Nagwin 1.3.0, the free version, on a Windows Server 2008 R2 machine. I have also installed winrpe 2.12 on a Windows Server 2003 machine within the same subnet. I have follow the directions listed in this page to the 'T'; /content/nagwin-usage-example-2-basic-monitoring-windows-hosts and after I restart the services, go back to the webpage and select "Hosts", I am presented with:
"Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
- Verify configuration options using the -v command-line option to check for errors.
- Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at https://www.nagios.org/. "
I also selected the "Check Nagios Configuration" batch file and this is what returns.
"Check Nagios Configuration
Thu 12/20/2012
06:14 PM
Nagios Core 3.3.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 07-25-2011
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Could not set effective UID=1006
Failed to drop privileges. Aborting.
***> One or more problems was encountered while processing the config files...
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."
PLEASE HELP!! I know it is some very small detail that I am missing, but I am having a really hard time finding it. THANKS!!!
You have probably some configuration issues. Try to run 'Check Nagios Configuration' as administrator (right click - run as administrator). You need also make sure that your Configuration files are saved in Unix format. You can either use an editor capable of if or edit one the existing configuration files in WordPad and save them as new configuration files.
TK,
Thank you for the quick response. I went ahead and ran the 'Check nagios Configuration' batch file as administrator, but I received the same results as above. Also, when I saved my configuration files, I saved them as .cfg files (just like how it says in the link above). How to I make sure they are in true Unix format to hopefully resolve this issue? As soon as I add the .cfg file to ICW/etc/nagios/nagwain I receive the Whoops error message. As soon as I remove that .cfg file, it goes away. Obviously, something regarding my .cfg file is messing me up and I can't figure out why.
I really appreciate all the help! Thanks!
Try steps below:
mkpasswd > /etc/passwd
mkgroup > /etc/group
This will probably solve problems with checking nagios configuration via start menu
cd <your config directory>
d2u <your config file>
This resolved my issue.
Thanks!!