Host name from IP address

Michael Jewett mgj at unb.ca
Fri Nov 3 15:46:24 CET 2006


Good morning,

I was curious if anyone knows a way to find out the hostname from the 
hosts.cfg if I know the IP address.

For instance I have a program that I wrote that runs on switch 1 that 
returns me an IP address of switch 2 and its status.  I would then like 
the get the name from Nagios's configs for switch 2.  Is this possible, 
without going through the entire hosts.cfg file?  If not, has anyone 
else written something to do the similar function?

Thanks,

Michael

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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