From: W.J.M. N. <ne...@nl...> - 2009-12-30 08:45:52
|
Hello, > On Tuesday, 29 December 2009 10:55:40 W.J.M. Nelis wrote: > >> I recently solved a similar problem, with the additional restraint that >> the "interesting interfaces" should be specified in the templates only, >> while the interfaces which are shutdown are listed only in the bb-hosts >> file. >> > > Devmon ignores interfaces which are "shut", so you shouldn't need to exclude > them in bb-hosts ... > We're using devmon version 0.3.1-beta1. As the interfaces of Cisco switches which are "shutdown" (disabled) do show up in the output of for instance if_err, there must be a problem over here. Does the version of Hobbit / Xymon one is using matters? >> My final setup is as follows: >> - in the templates, file exceptions, the exception "only" is used to >> select the interfaces of interest. The exception "ignore" is thus not used. >> - in bb-hosts, for "all" tests, the "ignore" exception is used and the >> "only" exception is not used. >> > > This is obviously not a generic solution, which means that you have to > maintain local modifications to the templates (which is not what I want to > encourage). > I was not aware of this design / usage rule. I thought it to be normal that one changes the templates to match the local conditions, at least the thresholds. >> Thus the devmon configuration in bb-hosts does not contain dependencies >> on tests, which is encoded only in the templates. The devmon >> configuration in bb-hosts does contain for each networking device the >> list of disabled interfaces. In my case, those lists are generated from >> a configuration database. >> > > BTW, I've got a local hack to write some devmon test data to a database ... > there are some minor issues with the feature I was wanting to create > (effectively using devmon as part of a network discovery tool). Would this be > of interest? > No, I don't think so. We're running a network-discovery script, which generates a database. Using this database about 10 configuration files are generated, amongst them (parts of the) configuration files for Xymon (devmon) and MRTG. A closed loop (database -> devmon -> database) does not seem to be a good idea. Regards, Wim Nelis. ******************************************************************************************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ******************************************************************************************************* |