wizard errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wizard errors

Post by scottwilkerson »

oops, here you go
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: wizard errors

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: wizard errors

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: wizard errors

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: wizard errors

Post by abrist »

This is strange. Check to make sure crond is running:

Code: Select all

service crond status
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: wizard errors

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: wizard errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: wizard errors

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: wizard errors

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: wizard errors

Post 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,
Locked