[Nagios-users] installation question

2007-08-07 Thread Samuel V. Green III
I installed Nagios via macports.

In sub section 2) Configure the Nagios sample files in /opt/local/etc/ 
nagios.

b) Then rename the sample files for use.

sudo for i in *cfg-sample; do mv $i `echo $i | sed -e s/cfg- 
sample/cfg/`; done;

I get this terminal error:

syntax error near unexpected token `do'

is there another way I can rename these sample files?

thanks for any help,

Samuel.



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] installation question

2007-08-07 Thread Jim Avery
On 07/08/07, Samuel V. Green III [EMAIL PROTECTED] wrote:

 is there another way I can rename these sample files?

Yes.  I wouldn't rename them though because they are useful to refer
back to if you mess up your config files.  I would copy them instead,
for example:

sudo -s
cd /opt/local/etc
cp nagios.cfg-sample nagios.cfg
cp cgi.cfg-sample cgi.cfg

and so on..

I didn't know Nagios was available on macports - thanks for that, it
might come in handy one day.

Cheers,

Jim

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@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