I upgraded a system from Nagios 2 to Nagios 3, and now I am comparing some differences in the old and new configuration files.
There are significant changes to the configuration files, and I do not want to perform a diff on the entire file because vimdiff is showing me too many irrelevant differences and has trouble dealing with #
comments at the beginning of lines, etc.
Can I use vim, or a vimdiff-like functionality to perform a diff on two particular sections in two different files?
For example, I want to diff only the lines which look something like this:
# Define a service to check the load on the local machine.
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Blah Blah
check_command Blah Blah
}