summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
David McBride [Wed, 21 Jan 2009 15:39:54 +0000]
Update to switch mapping; update Nagios config atomically.
* Update to hard-coded switch topology information.
* Well, it's not quite atomic, but the Nagios configuration
will now be cleared and replaced with a new file set in
two distinct steps. This means that hosts and hostgroups
which no-longer exist will get removed properly.
David McBride [Fri, 29 Feb 2008 17:36:31 +0000]
Remove hard-coded hostgroup definitions.
The original hard-coded hostgroup definitions are no-longer required now that
we automatically generate hostgroups based on class membership from the main DB.
David McBride [Fri, 8 Feb 2008 15:00:00 +0000]
Update hard-coded switch mapping
The router 146.169.11.222 had most of its sub-switches moved to .223;
updating the hard-coded switch mapping in the script to match realtiy.
David McBride [Tue, 27 Nov 2007 21:04:21 +0000]
Update script to use nagios3 paths; discard dynamic laptop hosts.
* Update the script to write the generated configuration files
to a nagios3, rather than nagios2, installation.
* Discard any host generated from the host database which appears
in one of the laptop subnet ranges - we don't care about monitoring
these, and it just makes the network map more unreadable.
David McBride [Mon, 19 Nov 2007 11:24:49 +0000]
Bugfix: correct SQL query used to extract host alias information.
* The previous change from using a host's shortname to a
fully-qualified domain-name as a node's unique identifier
also broke the lookups of host alias information.
David McBride [Fri, 16 Nov 2007 15:45:20 +0000]
Remove GraphViz positioning facility, add subnet-specific hostgroups.
* Remove the GraphViz positioning facilities - it takes too long to run,
and doesn't produce layouts of _global_ state that are useful.
The intention is to use GraphViz elsewhere in custom mapping scripts that
will show specialized subset views, e.g. of the lab, and of the network
topology.
* Add each host to a dynamically-created subnet-specific host-group.
David McBride [Thu, 15 Nov 2007 19:40:24 +0000]
Throw away hosts with unknown parents; update switch data.
* Discard any hosts mentioned in the host database for which
we have no parent data (either a manual switch mapping recorded
in the script, or EDP data from the host database.)
* Warn when discarding a host in the No.11 subnet (switch subnet)
because of incomplete switch mapping data.
* Map layout:
- Use 'fdp' instead of 'dot' to generate the topological map.
- Scale all graphviz position values by a constant scaling factor
to reduce the map size to within practical limits.
* Human readable host names: use the short host and domain names,
rather than the full fully-qualified hostnames, when generating
human-readable hostnames.
* DNS CNAME data no-longer seems to be recorded properly in the
generated configuration; investigation ongoing.
David McBride [Thu, 15 Nov 2007 08:57:33 +0000]
Use Graphviz to calculate map coords; generate host class groups.
* Use GraphViz to calculate map positions of each node. Currently
using the 'dot' layout, which though comparatively quick to
execute produces very wide, flat graphs.
* Generate a hostgroup configuration file for every class defined
in the database that contains at least one member.
David McBride [Wed, 14 Nov 2007 15:14:51 +0000]
Correct class-membership calculations; update parent data.
* The class-membership lookup call was broken by the previous change to using
fully-qualified domain-names as a host's primary identifier. The
class-membership lookup now uses a host's short name and now works again
as intended.
* Updated hard-coded parent data not available from db-admin:
- egret.doc.ic.ac.uk is now listed as the parent for all laptop devices.
- The router interconnections list now includes all local managed switches.
* Fixed writing of hostgroup files. (Data shouldn't be written to STDOUT..)
* Removed old cruft:
- The %services map is no-longer needed, this is provided by separate
hostgroup-service assertions.
- Updated the linux-hosts hostgroup definition to also include some
Ubuntu hosts. (This would ideally be stored much more nicely in the
host database, but never mind..)
David McBride [Tue, 13 Nov 2007 22:51:20 +0000]
Update internal datastructure, add parent lookups facility.
* Update the main data structure to use the fully-qualified domain name as
the main index. (Storing the short hostname and storing the domain as a sub-key
could result in broken data if two hosts in different domains had the same short
name.)
* Lookup parent dependencies for each host.
* Start hard-coding inter-switch dependencies for parent lookup use.
* Obtain all EDP data from the upstream database in one query, rather than using
one query per host.
* Dump internal datastructure to target configuration directory to aid in
development.
David McBride [Tue, 13 Nov 2007 20:19:06 +0000]
Update script for Nagios 2.x and CSG Ubuntu distribution.
* Use Sys::Maint rather than CSG.pm interfaces.
* Remove contact_groups from hostgroup information, no-longer suppoted.
* Drop the ping-service rule; this is now implicit for all hosts.
* Write out multiple seperate configuration files to target conf.d directory.
* Drop service instances generation; this will (mostly) now be handled with
hostgroup-service rules.
David McBride [Thu, 23 Jun 2005 19:03:02 +0000]
Fix typo in hash key - 'service' -> 'services'
git-archimport-id: dwm@doc.ic.ac.uk--2005/nagios-csg--main--0--patch-1
David McBride [Thu, 23 Jun 2005 18:39:38 +0000]
Initial import
git-archimport-id: dwm@doc.ic.ac.uk--2005/nagios-csg--main--0--base-0