Page 1 of 1

Bulk Warning/Critical Alert Changes on Switches and Routers

Posted: Thu Mar 07, 2013 4:46 pm
by mikew
Is there a bulk way to change the warning and alert thresholds for Cisco routers and switches?

The issue is in a large environment making changes based on each port after they have been set can be very time consuming.

Re: Bulk Warning/Critical Alert Changes on Switches and Rout

Posted: Thu Mar 07, 2013 4:54 pm
by slansing
Hello Mike,

Are they going to receive the threshold change as host or service groups? If so you could define a new template and push it out to them, if not the Bulk Mods tool does not currently support this as users define the thresholds in many different ways, such as hard coded within the command, or in different spots in the Argument fields.

Is this what you were looking to get answered?

Re: Bulk Warning/Critical Alert Changes on Switches and Rout

Posted: Thu Mar 07, 2013 5:18 pm
by mikew
Thanks..I will try to get them to post their specific needs in the forum so you can see exactly what they need.

Re: Bulk Warning/Critical Alert Changes on Switches and Rout

Posted: Thu Mar 07, 2013 5:26 pm
by slansing
Great, they can reply right here if they like, we can keep the thread open.

Re: Bulk Warning/Critical Alert Changes on Switches and Rout

Posted: Thu Mar 07, 2013 6:06 pm
by mikew
So this is what they want to do:


Basically for the port bandwidth warning+critical settings, I want to increase them from their current
values, 20% and 50% respectively, to 75% and 90%. I'd like to apply this
to a group of switches vs changing each port check.

Re: Bulk Warning/Critical Alert Changes on Switches and Rout

Posted: Thu Mar 07, 2013 7:38 pm
by scottwilkerson
Honestly, there is no real "easy" way to do this.

Probably the least painful way would be to open the service cfg files for each of these switches, do a find/replace and then copy the configs to the /usr/local/nagios/etc/import directory and then Apply Configuration..

this could likely be done in bulk with some fancy sed work, in the CLI but it would rely on all of the current values being fixed..