Found EOL issue with logrotate.d/nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
BrianBuchanan
Posts: 1
Joined: Fri Jan 07, 2011 9:31 am

Found EOL issue with logrotate.d/nagiosxi

Post by BrianBuchanan »

I've recently downloaded the trial of Nagiosxi and tracked down this error I was receiving:

Code: Select all

/etc/cron.daily/logrotate:

error: nagiosxi:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: nagiosxi:2 unexpected text
error: nagiosxi:3 unexpected text
error: nagiosxi:4, unexpected text after {
error: nagiosxi:4 lines must begin with a keyword or a filename (possibly in double quotes)
The problem is that the file /etc/logrotate.d/nagiosxi has MS-DOS End-Of-Line characters which logrotate doesn't like.

This command should fix it:

sed --in-place 's/^M//' /etc/logrotate.d/nagiosxi

This is probably well known, but I couldn't find anything on it.

Brian
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Found EOL issue with logrotate.d/nagiosxi

Post by mguthrie »

Thanks for the heads up. Reported on our bug tracker: http://tracker.nagios.com/view.php?id=112
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: Found EOL issue with logrotate.d/nagiosxi

Post by admin »

This will be fixed in the next release - thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
Locked