# Text Manipulation Help

**URL:** <https://www.ruby-forum.com/t/text-manipulation-help/119078>\
**Category:** Ruby\
**Created:** [November 2, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/text-manipulation-help/119078 "2007-11-02T22:08:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawn027](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d07c76/32.png) [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Post date:** [November 2, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/text-manipulation-help/119078/1 "2007-11-02T22:08:48Z")

</div>

I am currently trying to write a script that will take the hostnames  
from a webserver directory listing and create nagios configs from that  
data.

Everything is in place on the nagios end that all it needs to do it  
run this script and im done.  
I was thinking of using the hpricot gem in order to parse the web  
server directory listing. The listing is of the config files for each  
device which is named its hostname.

I also have all the names in a text file if that is easier, it is just  
less dynamic.  
I will post my progress as well. Eventually I might turn this into a  
RESTful app that can be run via the web but thats Version 2.0

Thanks.  
-Ron
