sawyl: (Default)
[personal profile] sawyl
Via RW, a neat method of using the Nagios configuration files to quickly switch large numbers of systems from one hostgroup to another, e.g. to allow machines to be moved from test to production status.
  • define a host template that conatains a hostgroup directive that puts the host in a primary group, e.g. test or production
  • define a host using the template
  • add any additional groups to the host using hostgroup +<secondary-group>
  • finally, toggle the value of the template as necessary

Although this trick doesn't really apply to the way we do things, moving the assignment of hostgroup memberships from the group definitions to the host definitions greatly simplifies the configuration files and makes it much easier to add and remove systems.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 09:12 pm
Powered by Dreamwidth Studios