Nagios only shows disabled ports from Meraki switch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by scottwilkerson »

I think I do have a possible fix for you but it will show all interfaces when you run the wizards even if they are admin down...

Edit /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php

On about like 44 change this

Code: Select all

$args[] = "--show-op-down";
to this

Code: Select all

$args[] = "--no-down";

then re-run the wizard.

One thing to note, this change will not persist when you upgrade the switch wizard in the future.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nagiosfan
Posts: 12
Joined: Wed May 16, 2018 4:22 pm

Re: Nagios only shows disabled ports from Meraki switch

Post by nagiosfan »

So how do I solve this problem?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by scottwilkerson »

scottwilkerson wrote:I think I do have a possible fix for you but it will show all interfaces when you run the wizards even if they are admin down...

Edit /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php

On about like 44 change this

Code: Select all

$args[] = "--show-op-down";
to this

Code: Select all

$args[] = "--no-down";

then re-run the wizard.

One thing to note, this change will not persist when you upgrade the switch wizard in the future.
This will solve the issue, once you do the above you can re-run the wizard for these switches and you will have all the interfaces
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nagiosfan
Posts: 12
Joined: Wed May 16, 2018 4:22 pm

Re: Nagios only shows disabled ports from Meraki switch

Post by nagiosfan »

I will try it but it is weird because all of the ports are enabled and active except there are 5 ports which were disabled and those 5 ports are shown on Nagios.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by scottwilkerson »

Let us know how it turns out.

With that flad set it is not even supposed to check the status so they should all show
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nagiosfan
Posts: 12
Joined: Wed May 16, 2018 4:22 pm

Re: Nagios only shows disabled ports from Meraki switch

Post by nagiosfan »

yes it now shows all ports and thanks for it.
I have one question. Now all ports are marked as administratively down are inside unhandled pool and status shown in Nagios is warning. Is there anyway I can skip checking port status but only bandwidth. I tried to uncheck port status during setup winzard but port status is still added as a service.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by scottwilkerson »

nagiosfan wrote:yes it now shows all ports and thanks for it.
I have one question. Now all ports are marked as administratively down are inside unhandled pool and status shown in Nagios is warning. Is there anyway I can skip checking port status but only bandwidth. I tried to uncheck port status during setup winzard but port status is still added as a service.
Hmm, if you unchecked them during the setup they shouldn't be added, but you can remove them in the
CCM -> Services
Select the Config
Search for status
Select all
"With checked" select Delete
Click Go
Click Apply Configuration
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by eloyd »

Meraki switches, when probed for SNMP, are just like any other switch. However, the Meraki management program will do its own port management to save power, manage resources, and do other weird things. It's possible it was in a DOWN State when you ran your wizard the first time.

The nice thing about the wizard is you can run it again, any time, and simply add to what you already have. Or you can duplicate the service(s) in CCM and just change the port numbers.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios only shows disabled ports from Meraki switch

Post by scottwilkerson »

Thanks for the heads up @eloyd
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked