Page 1 of 1
Adding a new switch - not adding all ports
Posted: Mon Sep 24, 2018 3:10 pm
by acentek
Hi,
When I try to add a new switch, which is a 7 switch stack, all 240 port descriptions are found in the wizard and there are no issues going through the Configuration Wizard. But when the switch is added, only 1 port actually comes through. We have attempted to add the switch several times by deleting and starting over, making sure the config file for the switch is completely removed - no luck making this work. Looking for some ideas. We haven't had this issue come up before and have several switches in Nagios.
I included a pic that shows several ports selected and we only get back 2 ports and Ping.
Re: Adding a new switch - not adding all ports
Posted: Mon Sep 24, 2018 3:50 pm
by npolovenko
Hello,
@acentek. You need to increase the settings in your php.ini file. Please follow this tutorial:
https://support.nagios.com/kb/article/n ... e-611.html
(You may double the values suggested in the article).
When done please restart the apache service:
service httpd restart
Re: Adding a new switch - not adding all ports
Posted: Mon Sep 24, 2018 4:12 pm
by acentek
Thank you for the response.
We are not receiving any of the php errors listed in the help document. Also our settings match what is in the document. I attempted to add the switch again with no luck.
The only thing in the error logs are snpd checks for all the ports, description, bandwidth, etc.
When I select Apply, the last message is:
sed: -e expression #1, char 77: unterminated `s' command
Thanks
Re: Adding a new switch - not adding all ports
Posted: Mon Sep 24, 2018 4:39 pm
by npolovenko
@acentek, Please delete the switch host and services and rerun the wizard one more time. Let me know if the wizard will add the same exact ports or different ones this time. Also, I'd like to take a look at 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 upload it to a cloud storage of your choice. Then share a link with me in a personal message.
Re: Adding a new switch - not adding all ports
Posted: Tue Sep 25, 2018 4:27 pm
by acentek
We have removed the switch and added it back several times. We have only selected the ports we want to monitor, the same ports show each time. We have now tried added all 395 ports and we are only seeing 219, still not all the ports we'd like to see. So adding all and removing the unwanted ports won't work either.
Re: Adding a new switch - not adding all ports
Posted: Tue Sep 25, 2018 4:49 pm
by npolovenko
@acentek
Also our settings match what is in the document.
Please double all the settings in the php.ini, restart the apache and rerun the wizard again. Let me know how many ports you're able to see this time.
Re: Adding a new switch - not adding all ports
Posted: Wed Sep 26, 2018 9:03 am
by acentek
Finally!! After modifying the /etc/php.ini file, the ports we want to monitor finally added in Nagios.
I had to double the following:
max_input_time = 10000 (5000)
memory_limit = 1024M (512M)
max_execution_time = 180 (90)
max_input_time = 180 (90)
Now we are good. Thanks for your help!!