using fping to find missing A records

Roger Roger at NagiosWiki.com
Thu Feb 14 03:05:07 CET 2008


I have a specific question on how to do something, and a larger question
addressing other "better" ways to do the spirit of what I'm asking.

I'm setting up Nagios, and am trying to make sure that all of the subnets
have A records, as IP addresses will be changing very, very rapidly, and
when that day comes, I will not be here (but on another Nagios project).

So, I'd like to create A records for each host.  How do I "fping -a" a range
of IP addresses, strip out the names of the name that the host replies with,
and then ping that list of names?  (You don't have to tell me how exactly, a
general idea of which command line tools will do)

I'm thinking something like: fping -g 192.168.1.0 192.168.1.255 -A | grep
whatever > file, and then shove that file in another fping statement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080213/c2109612/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list