Page 1 of 2
Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Thu Nov 15, 2018 3:49 pm
by alsoszaa
Upgraded to Nagios 5.5.7 yesterday. I can no longer upload a plugin. Nagios instead goes to "The Connection was reset".
How do I revert back to 5.5.6?
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Thu Nov 15, 2018 4:29 pm
by npolovenko
@alsoszaa, Can you send me this plugin so I could test it out in my XI 5.5.7 in the lab? Also, please try uploading this plugin one more time and then send me your system profile:
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and send it to me in a personal message.
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Thu Nov 15, 2018 4:57 pm
by alsoszaa
The plugin doesn't matter. I've tried a few now and all of them do this. I'll IM you the zip file shortly
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Fri Nov 16, 2018 1:34 pm
by npolovenko
@alsoszaa, Please run the following script as root:
/usr/local/nagiosxi/scripts/reset_config_perms.sh
Then reboot the server and try uploading the plugin one more time.
How are you uploading plugins? From the manage plugins page? Can you send a screenshot with the "The Connection was reset" error?
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 11:08 am
by alsoszaa
Running the script and rebooting did not resolve the issue. There was no change.
1. Go to Admin on the top nav
2. Go to Manage Plugins from the left menu
3. In the main screen, click browse (towards the top)
4. Locate your plugin and click "open"
5. Click "Upload Plugin"
At this point, the process has you wait for approx. 30 seconds then (In Chrome browser) goes to a "Connection was Reset". See attached screenshot.
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 1:39 pm
by lmiltchev
Can you run the following command and show the output of code wraps?
Code: Select all
tail -100 /var/log/httpd/error_log
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 1:44 pm
by npolovenko
@alsoszaa, Please run this command and show me the output:
ls -ld /usr/local/nagios/libexec/
Please try uploading a plugin from a different browser, or if you don't have a different browser clear cookies and cache from the Chrome and try one more time.
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 1:56 pm
by alsoszaa
lmiltchev wrote:Can you run the following command and show the output of code wraps?
Code: Select all
tail -100 /var/log/httpd/error_log
Here is the result:
Code: Select all
[Sun Nov 18 03:22:06.802167 2018] [auth_digest:notice] [pid 1628] AH01757: generating secret for digest authentication ...
[Sun Nov 18 03:22:06.802899 2018] [lbmethod_heartbeat:notice] [pid 1628] AH02282: No slotmem from mod_heartmonitor
[Sun Nov 18 03:22:06.843272 2018] [mpm_prefork:notice] [pid 1628] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Sun Nov 18 03:22:06.843296 2018] [core:notice] [pid 1628] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Nov 19 08:10:47.487933 2018] [mpm_prefork:notice] [pid 1628] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Nov 19 08:11:40.493316 2018] [suexec:notice] [pid 1569] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Nov 19 08:11:40.558370 2018] [auth_digest:notice] [pid 1569] AH01757: generating secret for digest authentication ...
[Mon Nov 19 08:11:40.559069 2018] [lbmethod_heartbeat:notice] [pid 1569] AH02282: No slotmem from mod_heartmonitor
[Mon Nov 19 08:11:43.341594 2018] [mpm_prefork:notice] [pid 1569] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Mon Nov 19 08:11:43.341650 2018] [core:notice] [pid 1569] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 2:01 pm
by alsoszaa
npolovenko wrote:@alsoszaa, Please run this command and show me the output:
ls -ld /usr/local/nagios/libexec/
Please try uploading a plugin from a different browser, or if you don't have a different browser clear cookies and cache from the Chrome and try one more time.
here is the output of the list directory:
drwxrwsr-x. 2 apache nagios 12288 Nov 14 15:21 /usr/local/nagios/libexec/
In Edge and Internet Explorer I see "Can't reach this page"
Re: Nagios XI no longer uploads a plugin after 5.5.7 update
Posted: Mon Nov 19, 2018 4:12 pm
by npolovenko
@alsoszaa, Please run the following commands and show me the output:
cat /etc/php.ini | grep upload_max_filesize
ls -ld /tmp
In the php.ini please change:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
to
error_reporting = E_ALL
And set:
display_errors = On
Increase the memory limit by doubling the memory_limit value.
Save the /etc/php.ini file and restart the apache with:
service httpd restart
Then try to upload your plugin one more time and let me know if you see any errors in the web browser, and also upload the /var/log/httpd/error_log file.