Cant Upload Wizard Files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cant Upload Wizard Files

Post by lmiltchev »

Did you rename the "switch.zip" to "configwizard-switch.zip" prior to uploading it? This will fail. Rename it back to "switch.zip", then install the wizard by going to:

Admin->Manage Config Wizards->Browse->switch.zip->Upload Wizard

BTW, what do you have under "configwizards" directory?

Code: Select all

ll /usr/local/nagiosxi/html/includes/configwizards/
Be sure to check out our Knowledgebase for helpful articles and solutions!
isadmin
Posts: 151
Joined: Thu Nov 08, 2012 10:49 am

Re: Cant Upload Wizard Files

Post by isadmin »

I did not rename it thats how it came downloaded but tried renaming and it still fails to import.
isadmin
Posts: 151
Joined: Thu Nov 08, 2012 10:49 am

Re: Cant Upload Wizard Files

Post by isadmin »

here is the configwizards directory


total 232
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 autodiscovery
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 bpiwizard
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 bulkhostimport
-rwxrwx---. 1 nagios nagios 179 Aug 1 12:32 configwizardhelper.inc.php
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 dhcp
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 dnsquery
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 domain_expiration
drwxrwx--- 7 nagios nagios 4096 May 29 14:56 email-delivery
drwxrwx--- 5 nagios nagios 4096 Dec 3 2012 emcclariion
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 esensors-websensor
drwxrwx--- 7 nagios nagios 4096 May 29 14:56 exchange
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 ftpserver
drwxrwx---. 3 nagios nagios 4096 Jun 6 2012 genericnetdevice
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 ldapserver
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 linux-server
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 linux_snmp
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 macosx
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 mailserver
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 mongodb_database
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 mongodb_server
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 mssql_database
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 mssql_query
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 mssql_server
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 mysqlquery
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 mysqlserver
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 nagiostats
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 nagiosxiserver
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 ncpa
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 networkanalyzer
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 nrpe
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 oracle_query
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 oracle_serverspace
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 oracle_tablespace
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 passivecheck
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 passiveobject
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 postgresdb
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 postgresquery
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 postgresserver
drwxrwx---. 2 nagios nagios 4096 May 29 14:56 printer
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 radiusserver
drwxrwx---. 2 nagios nagios 4096 May 29 14:56 snmp
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 snmp-trap
drwxrwx--- 3 nagios nagios 4096 May 29 14:56 snmpwalk
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 solaris
drwxrwx--- 7 nagios nagios 4096 Jun 6 2012 ssh-expect
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 sshproxy
drwxrwx---. 2 nagios nagios 4096 Dec 7 2012 tcpudpport
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 vmware
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 watchguard
drwxrwx---. 2 nagios nagios 4096 Jun 6 2012 website
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 website_defacement
drwxrwx---. 3 nagios nagios 4096 May 29 14:56 websiteurl
drwxrwx---. 2 nagios nagios 4096 Jun 6 2012 webtransaction
drwxrwx---. 3 nagios nagios 4096 May 29 14:56 windowsdesktop
drwxrwx--- 6 nagios nagios 4096 May 29 14:56 windowseventlog
drwxrwx---. 2 nagios nagios 4096 May 29 14:56 windowsserver
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 windowssnmp
drwxrwx--- 5 nagios nagios 4096 May 29 14:56 windowswmi
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cant Upload Wizard Files

Post by scottwilkerson »

First, I'm going to attach a current vwersion that I know is in the proper format for installation
switch.zip
If that still doesn't work, can you post the output of the following:

Code: Select all

ll -d /usr/local/nagiosxi/html/includes/configwizards/ /usr/local/nagiosxi/html/includes/ /usr/local/nagiosxi/html/ /usr/local/nagiosxi
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
isadmin
Posts: 151
Joined: Thu Nov 08, 2012 10:49 am

Re: Cant Upload Wizard Files

Post by isadmin »

Thanks Scott
looks like all wizard imports fail I tried a few others that needing updating also...

heres the output

drwxrwxr-x. 10 nagios nagios 4096 Jun 6 2012 /usr/local/nagiosxi
drwxrwxr-x. 18 nagios nagios 4096 Aug 7 09:56 /usr/local/nagiosxi/html/
drwxrwx---. 12 nagios nagios 4096 Aug 7 13:45 /usr/local/nagiosxi/html/includes/
drwxrwx---. 59 nagios nagios 4096 Aug 7 08:41 /usr/local/nagiosxi/html/includes/configwizards/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cant Upload Wizard Files

Post by scottwilkerson »

Ok, is cron running?

Can you run the following commands

Code: Select all

service crond status
tail -20 /var/log/cron
tail -20 /usr/local/nagiosxi/cron/cmdsubsys.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
isadmin
Posts: 151
Joined: Thu Nov 08, 2012 10:49 am

Re: Cant Upload Wizard Files

Post by isadmin »

service crond status
crond (pid 2250) is running...

tail -20 /var/log/cron
Aug 11 11:14:01 vm-nagios-xi CROND[30734]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32336]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
Aug 11 11:15:01 vm-nagios-xi CROND[32339]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32340]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32341]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32342]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32338]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32343]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32346]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32344]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32347]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Aug 11 11:15:01 vm-nagios-xi CROND[32348]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2918]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2920]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2921]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2923]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2924]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2926]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2925]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Aug 11 11:16:01 vm-nagios-xi CROND[2927]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
[root@vm-nagios-xi log]# tail -20 /usr/local/nagiosxi/cron/cmdsubsys.php
// run the post function call
if($return_code==0 && $post_func!="" && function_exists($post_func)){
echo "RUNNING POST FUNCTION CALL: $post_func\n";
$return_code=$post_func($post_func_args);
echo "POST FUNCTION CALL RETURNCODE=$return_code\n";
}

//do callbacks
$args=array(
'command' => $command,
'command_data' => $command_data
);
do_callbacks(CALLBACK_SUBSYS_GENERIC,$args);

if($return_code!=0)
return $return_code;
return COMMAND_RESULT_OK;
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cant Upload Wizard Files

Post by scottwilkerson »

sorry, I stated the last item wrong, what I was looking for was

Code: Select all

tail -20 /usr/local/nagiosxi/var/cmdsubsys.log
specifically, immediately after you try to upload a wizard and it fails
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
isadmin
Posts: 151
Joined: Thu Nov 08, 2012 10:49 am

Re: Cant Upload Wizard Files

Post by isadmin »

tail -20 /usr/local/nagiosxi/var/cmdsubsys.log
............
PROCESSED 0 COMMANDS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Cant Upload Wizard Files

Post by abrist »

Can you do the following:
Run the following tail on a shell (it is a running tail, so it will continue to run):

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log > /tmp/cmd.txt
Now try to upload the wizard through admin --> manage configwizards.
Wait a few moments after the fail. Once done, hit ctrl-c to kill the tail and then post the contents of: /tmp/cmd.txt
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.
Locked