Public bug reported:

Dear maintainers,

I am running ocsinventory-agent with anacron like this :
 # ocsinventory-agent 1> /dev/null

I would expect output only if there is an error, so that I am notified
only if there is a problem. Instead, the agent always returns some
"debug" output on /dev/stderr, which leads my email to be spammed.

Here is the output I get if I run the command line above :
# ocsinventory-agent 1> /dev/null
[info] No support detected. Registration key: N/A
[info] [download] Download is off.
[info] [download] Beginning work. I am 4298.
[info] [download] Option turned off. Exiting.

I am running Ubuntu 14.04 amd64, ocsinventory-agent is version
2:2.0.5-1.

The configuration is almost the default one, I only changed the server
FQDN.

/etc/ocsinventory/modules.conf :
 # this list of module will be loaded by the agent at run time
 # to check its syntax do:
 # $perl modules.conf
 # You must have NO error. Else the content will be ignored

 use Ocsinventory::Agent::Modules::Download;

 # DO NO REMOVE the 1;
 1;

/etc/ocsinventory/ocsinventory-agent.cfg
 server=myserver-FQDN

Regards,
YvanM

** Affects: ocsinventory-agent (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1465192

Title:
  [info] output should go to /dev/stdout instead of /dev/stderr

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocsinventory-agent/+bug/1465192/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to