new configuration system - service names (questions)
Joost van Baal
joostvb at logreport.org
Wed Sep 3 12:19:37 CEST 2003
Hi Joelle,
On Tue, Sep 02, 2003 at 05:23:28PM +0100, Joelle Nebbe wrote:
>
> This is probably a stupid question
Not at all!
> but I have been trying to upgrade my lire installation and I am a bit puzzled by the new configuration system.
> I looked through the logreport site and the list archives and could not find a reference on the new format and the possible values of parameters like lr_service,
>
You can get a list of all Lire services by running
$ lr_check_service -l 2>/dev/null
. A command lr_check_superservice is available too (though not
installed in the default $PATH, you'd have to run it like e.g.
/usr/local/libexec/lire/lr_check_superservice -l
.) These commands come with manpages.
> Most of the options are obvious to me but I am having problems with the service name.
> The system used to offer options so you could browse and pick from but that is gone. Now i just need to put it in but I can't figure out what to use.
>
> I put 'syslog' for example but it just won't have it.
>
> Here's what lr_config generated in the xml file
>
> <job name="Weekly_syslog">
> <param name="lr_period">weekly</param>
> <param name="lr_mail_to">sysadmin at domain.com</param>
> <param name="lr_mail_subject">`hostname` `date +%Y%m%d`</param>
> <param name="log_file">/var/log/messages.1</param>
> <param name="lr_user_level">advanced</param>
> <param name="lr_output_format">txt</param>
> <param name="lr_filter">eval</param>
> <param name="lr_service">syslog</param>
> <param>
Is this your complete xml file? It should end with </job> , as you've
quoted it, it's imcomplete.
> but if i try to run lr_cron weekly i get:
>
> invalid value for parameter 'lr_service': syslog at /usr/lib/perl5/site_perl/5.6.1/Lire/Config.pm line 426
>
> Obviously I am not using the right value... or is it a formatting issue?
> Before i dive in the code I thought maybe there is an existing list somewhere?
> I installed from rpm so i dont have all the documentation (that i am aware of)
I believe all documentation is shipped with the RPM. Probably installed
in something like /usr/share/doc/lire/ .
Which RPM are you using exactly? On what platform?
If I have more time, I'll try to reproduce the behaviour here, one of
these days.
Bye,
Joost
--
. . http://logreport.com/
| '.| /^LogReport$/
| Lire http://logreport.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20030903/58312608/attachment.bin
More information about the Questions
mailing list