Adding a new switch - not adding all ports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Adding a new switch - not adding all ports

Post 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.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Adding a new switch - not adding all ports

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Re: Adding a new switch - not adding all ports

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

Re: Adding a new switch - not adding all ports

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Re: Adding a new switch - not adding all ports

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

Re: Adding a new switch - not adding all ports

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Re: Adding a new switch - not adding all ports

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