Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#32 closed defect (invalid)

rc.conf: remote logging naar loghost ((test of image-r6873)

Reported by: huub Owned by: rick
Priority: major Milestone:
Keywords: Cc:
Resource needed to fix:

Description

In rc.conf (generieke conf file voor alle nodes identiek) is de loghost==localhost (127.0.0.1).
Daar moet dus de nodenaam ingevuld worden en daarmee is rc.conf niet meer generiek. $HOST gebruiken werkt niet, omdat hostname later in de bootcyclus, namelijk in rc.node.local, wordt gedefinieerd.

Change History (5)

comment:1 by maarten, 15 years ago

loghost defenitie uit generieke rc.conf halen en plaatsen in rc.node.local met $MASTER_IP of $HOST...

comment:2 by huub, 15 years ago

In het handboek (11.3 Core Configuration) lees ik:
"A number of strategies may be applied in clustered applications to separate site-wide configuration from system-specific configuration in order to keep administration overhead down. The recommended approach is to place site-wide configuration into another file, such as /etc/rc.conf.site, and then include this file into /etc/rc.conf, which will contain only system-specific information.
As rc.conf is read by sh(1) it is trivial to achieve this. For example:
*
rc.conf:

. /etc/rc.conf.site

.....
etc

Volgens het handboek zou je het dus om moeten draaien:
een rc.conf.site (of 'rc.conf.wleiden') die voor alle nodes identiek is
en
een rc.conf die specifiek is voor een node. Daarin kan dan ook de config van syslogd node-specifiek vermeld worden.

Het lijkt me een mooie oplossing en sowieso niet verkeerd om het handboek te volgen.

comment:3 by rick, 15 years ago

Milestone: 0.1

comment:4 by rick, 15 years ago

Resolution: invalid
Status: newclosed

Loghost is remote host which needs to be specified at /etc/syslog.conf. Argument at syslogd is the binding ip, which always needs to be 127.0.0.1 to keep it a bit secure

comment:5 by rick, 12 years ago

Milestone: 0.1

Milestone 0.1 deleted

Note: See TracTickets for help on using tickets.