Administration Tasks Not Performed in the Web Manager : Configuring Storage of Buffered Data

Configuring Storage of Buffered Data
If data buffering is enabled, console output from managed devices is sent to the syslog daemon but is not stored. This section describes how the root user can manually configure the storage of buffered data either in a directory mounted from an NFS file server or in a PC Flash memory card.
NOTE: This file does not need to be edited for mounting a compact Flash PCMCIA card, because a compact Flash card is detected and automatically mounted under the /mnt directory when the OnBoard appliance is rebooted after card installation.
Device data received by the OnBoard appliance is sent to the syslog-ng daemon, which uses this file. This file can be modified to configure buffered data from all devices to be stored in a single file. See To store buffered data in multiple files, one for each connected device:.
Determines what is inserted into the conserver.cf file when a new device is added. This file can be modified to configure buffered data from each device to be stored in a separate file. See To store buffered data in multiple files, one for each connected device:.
NOTE: The /usr/sbin/ directory is mounted read-only by default. The procedure describes how you can mount the /usr/sbin/ directory in read-write mode before you can edit the cyc-conserver file.
Determines where data buffer files are stored. Because direct user modifications to conserver.cf are lost whenever a new device is added, the cyc.conserver file is modified instead.
To store buffered data in a single file:
1.
2.
The example entries configure data buffer storage in an NFS-mounted /mnt/nfs_server/log/device.log file.
source src_dev_log { unix-stream("/dev/log"); };
filter f_device { program("conserver");};
destination d_device { file("/mnt/nfs_server/log/device.log"); };
log { source(src_dev_log); filter(f_device); destination(d_device); };
3.
$ killall -hup syslog-ng
The configuration changes are saved to the appliance’s resident Flash memory if the appliance is booted from a local image.
To store buffered data in multiple files, one for each connected device:
1.
2.
Use the cat command to display the contents of the /proc/cmdline file to find out which boot image is currently running.
[root@OnBoard /]# cat /proc/cmdline
root=/dev/hda6 console=ttyS0,9600
If the output shows root=/dev/hda5, Image 1 is running, and if root=/dev/hda6, Image 2 is running.
3.
$ mount -t ext2 -o rw,remount /dev/hda5
-or-
$ mount -t ext2 -o rw,remount /dev/hda6
4.
$ cd /usr/sbin
$ vi cyc-conserver
5.
'LOGDIR=/mnt/nfs_server/log'
-or-
'LOGDIR=/mnt/pc_compact_flash_card/log'
6.
llset('conserver', "server/$server/logfile", "/dev/null"),
7.
llset('conserver', "server/$server/logfile", "$server.log"),
NOTE: This example configuration stores the buffered data in separate files according to each device’s alias. Adding devices automatically results in their data being buffered to a device-specific logfile.