Please always respond on list so that others may benefit from your
experience.

[moving top-post to inline comment]


>> On 1/5/06, Marc Powell <[EMAIL PROTECTED]> wrote:

[chop]

>> 
>>      It sounds like you've got a typo or other issue that's throwing
the
>>      parser off (missing close bracket, file edited under windows and
>>      includes special control characters, etc). How many objects
>>      (approximately) do you have?
>> 

> -----Original Message-----
> From: Rene Nelson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 05, 2006 12:35 PM
> To: Marc Powell
> Subject: Re: [Nagios-users] bigger.cfg
> 
> Aproximately 100 objects.  I did compile the .cfg in wordpad for the
ease
> of cut and paste.  Is there a way I can parse the file for invalid
chars
> and remove?
> 
 
Wordpad + unix == bad unless you specifically save as plain text. Either
use notepad, vi, or some other text editor that works with plain text
natively ;)

Try opening the file in notepad, re-formatting the text if necessary and
re-saving it. That's probably the simplest way if you're not able to
start from scratch again.

If you have the original files you could always just cat them together
from the unix command line with 'cat file1.cfg file2.cfg file3.cfg >
my_new.cfg'. then use vi or pico to edit it there.

--
Marc Powell



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to