Nagios XI no longer uploads a plugin after 5.5.7 update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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'
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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"
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI no longer uploads a plugin after 5.5.7 update

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked