Subject: | When launching ocsinventory-agent without Compress::Zlib, gzip alternative doesn't work |
Perl version: v5.8.2 built for aix-thread-multi
OS: AIX
gzip version: gzip 1.2.4 (18 Aug 93)
When the module Compress::Zlib is not available on the system,
ocsinventory-agent tries to use gzip to compress the XML data, but
there seems to be an incorrect parameter as when I run it with --debug,
I get the help from gzip, as shown below:
(root):/tmp/ocs/Ocsinventory-Agent-
0.0.9.2# /usr/opt/perl5/bin/ocsinventory-agent --debug
[debug] Ocsinventory unified agent for UNIX and Linux0.0.9.2
[debug] Log system initialised
[debug] Accountinfo file: /var/lib/ocsinventory-
agent/http:__anothermachine/ocsinv.adm
[debug] OCS Agent initialised
gzip 1.2.4 (18 Aug 93)
usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
-c --stdout write on standard output, keep original files
unchanged
-d --decompress decompress
-f --force force overwrite of output file and compress links
-h --help give this help
-l --list list compressed file contents
-L --license display software license
-n --no-name do not save or restore the original name and time
stamp
-N --name save or restore the original name and time stamp
-q --quiet suppress all warnings
-r --recursive operate recursively on directories
-S .suf --suffix .suf use suffix .suf on compressed files
-t --test test compressed file integrity
-v --verbose verbose mode
-V --version display version number
-1 --fast compress faster
-9 --best compress better
file... files to (de)compress. If none given, use standard
input.
[debug] Compress::Zlib is not avalaible! The data will be compressed
with
gzip instead but won't be accepted by server prior 1.02
[debug] sending XML
Nothing is sent, and the agent gets stuck.