Bulk Warning/Critical Alert Changes on Switches and Routers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Bulk Warning/Critical Alert Changes on Switches and Routers

Post 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.
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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.
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

Great, they can reply right here if they like, we can keep the thread open.
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

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

Post 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.
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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..
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked