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.
Bulk Warning/Critical Alert Changes on Switches and Routers
Bulk Warning/Critical Alert Changes on Switches and Routers
Mike Weber
Nagios Training/Consulting
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
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?
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
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
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
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
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.
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
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
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..
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..