Hi Team,
I am trying to set up Nagios monitoring on our data center switches. I am using Network Router and Switch Wizard to pull up all the interfaces in a switch via SNMP3.
I see all the interfaces being listed in the page and I make selection of the important and critical ports, it allows me to select, but as soon as I click next and select my host group and notification preference and then checking
core config manager--->Services---->corresponding to the host, only shows me half the interfaces I've added.
I've tried running the wizard all again also once I deleted host and services and retried, no use.
My question is:
1) How to make sure all the interfaces are pulled? If they are not for some reason, how to add them?
2) After adding all the ports, if in future, some critical port comes up for monitoring, how can I add this to existing services without have to run the whole wizard again?
#Cisco switches and routers#Nagios_monitoring
Kind Regards
LM
Unable to pull all the interfaces via Wizard_Cisco Switch
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to pull all the interfaces via Wizard_Cisco Switc
It is very possible you are hitting a max_input_vars limit in PHP
add the following to your /etc/php.ini'
Then restart httpd
Now if you re-run the wizard they should all show
add the following to your /etc/php.ini
Code: Select all
max_input_vars = 10000Then restart httpd
Code: Select all
systemctl restart httpdRe: Unable to pull all the interfaces via Wizard_Cisco Switc
Thank you, I really appreciate your prompt response.
What will be the impact of this command on Nagios, Will the whole system restart?
Kind Regards
LM
What will be the impact of this command on Nagios, Will the whole system restart?
Kind Regards
LM
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to pull all the interfaces via Wizard_Cisco Switc
This will just allow Nagios XI to post more variables from the interface. No, the whole system won't restart, just httpd which should table about 2 seconds.lalitam wrote:Thank you, I really appreciate your prompt response.
What will be the impact of this command on Nagios, Will the whole system restart?
Kind Regards
LM
Re: Unable to pull all the interfaces via Wizard_Cisco Switc
Thank you again. Yes I went ahead with this change and this time none of the interfaces were dropped in the Wizard and almost 141 interfaces of Nexus 7K were added without a glitch.
Regarding my other question: I am trying to pull TenGig, Gig, port-channels and Stackports for a 3850 switch. Other switch responded well but one of our access switches is giving me trouble and no matter how many times I try, Nagios only pulls 4 interfaces out of 20 which I have to monitor.
Is there a reason why this is happening.
Kind Regards
lalita
Regarding my other question: I am trying to pull TenGig, Gig, port-channels and Stackports for a 3850 switch. Other switch responded well but one of our access switches is giving me trouble and no matter how many times I try, Nagios only pulls 4 interfaces out of 20 which I have to monitor.
Is there a reason why this is happening.
Kind Regards
lalita
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to pull all the interfaces via Wizard_Cisco Switc
Nagios XI can only pull interfaces that the SNMP community string or v3 user has access to see. It is possible that this has for some reason been restricted on the device