Page 3 of 4
Re: wizard errors
Posted: Tue Apr 23, 2013 11:44 am
by scottwilkerson
oops, here you go
Re: wizard errors
Posted: Tue Apr 23, 2013 12:22 pm
by vital4ik
ok wizard installed successfully, tried running it, getting the same error
.
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 96)
Error: Template 'xiwizard_smtp_service' specified in service definition could not be not found
Re: wizard errors
Posted: Tue Apr 23, 2013 1:29 pm
by scottwilkerson
actually, this is a different error, this one is erroring on missing the xiwizard_smtp_service template.
Someone deleted a ton of the templates from your machine, and the ramifications could be great. If you have a backup from before this happened, I would actually suggest restoring that.
That said, you can unzip the attached file and place it in /usr/local/nagios/etc/import and try to apply configuration again
Re: wizard errors
Posted: Tue Apr 23, 2013 2:22 pm
by vital4ik
ok I just rerun the wizard, im getting this:
Error: Template 'xiwizard_mailserver_host' specified in host definition could not be not found
unfortunately I do not have any backups of the previous configs
Re: wizard errors
Posted: Tue Apr 23, 2013 3:08 pm
by abrist
This is strange. Check to make sure crond is running:
Lets also check to make sure the configs from the mail server wizard were imported successfully:
Code: Select all
ls -la /usr/local/nagios/etc/import
Re: wizard errors
Posted: Tue Apr 23, 2013 3:16 pm
by vital4ik
cron is indeed running, the folder is empty
ls -la /usr/local/nagios/etc/import
total 8
drwsrwsrwx 2 apache nagios 4096 Apr 23 15:20 .
drwsrwsr-x 7 apache nagios 4096 Apr 23 15:20 ..
looks like the file I put up there got picked up or erased by some process
Re: wizard errors
Posted: Tue Apr 23, 2013 3:35 pm
by lmiltchev
Go to the nagiosxi install directory (if you haven't removed it from /tmp) and run the install script:
Code: Select all
cd /tmp/nagiosxi/subcomponents/xiwizards
./install
Let us know if this fixes your issue.
Re: wizard errors
Posted: Tue Apr 23, 2013 3:51 pm
by vital4ik
it errored out with the following:
Traceback (most recent call last):
File "./install", line 17, in <module>
installpath = os.environ['INSTALL_PATH']
File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'INSTALL_PATH'
ERROR: Subcomponent 'wkhtml' installation failed - exiting.
Re: wizard errors
Posted: Tue Apr 23, 2013 3:59 pm
by abrist
Lets make sure it the mail server template was actually collected and added to your configs:
Code: Select all
grep xiwizard_mailserver_host /usr/local/nagios/etc/*
Have you "applied configuration" recently?
Re: wizard errors
Posted: Tue Apr 23, 2013 4:28 pm
by vital4ik
i did apply configutation after i tried the wizard again, it failed, do you want me to apply clean working config and try recompiling again?
grp did not return any results,