root@cents:/var/log/xymon# vi xymonclient.log <div><div>No LSB modules are available.</div><div><br></div><div>The bug report here describes the likely source of the problem:</div><div><br></div><div><a href="https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/66914">https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/66914</a></div>
<div><br></div><div>Relevant excerpt:</div><div><br></div><div>***</div><div><p id="yui_3_3_0_1_1347659976276471">This behaviour seems correct to me. <a rel="nofollow" href="http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html">http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html</a>
 says "If no options are given, the -v option is assumed." -v requires 
the display of LSB modules, which in Debian/Ubuntu are implemented by 
the lsb-* metapackages. If you have none of those installed, then you'll
 get the output you quote.</p>
<p>However, if you simply say 'lsb_release -a', you'll get the 
information you asked for. This is in accordance with the specification 
for lsb_release.</p></div><div>***</div><div><br></div><div>Host machine output:</div><div><br></div><div>root@cents:/var/log/xymon# lsb_release -a</div><div>No LSB modules are available.</div><div>Distributor ID: Ubuntu</div>
<div>Description:    Ubuntu 10.04.2 LTS</div><div>Release:        10.04</div><div>Codename:       lucid</div><div>root@cents:/var/log/xymon# lsb_release</div><div>No LSB modules are available.</div><div>root@cents:/var/log/xymon#</div>
</div><div><br></div><div>Interestingly, the code calls</div><div><br></div><div>/usr/bin/lsb_release -r -i -s | xargs echo</div><div><br></div><div>Which produces the correct result: Ubuntu 10.04. </div><div><br></div><div>
However, the next line after it isn't filtered... looks like the error message being logged is going to standard out and being logged as a result, while the rest of the output is being properly redirected to the msg file in /var/lib/xymon/tmp.</div>
<div><br></div><div><div>elif [ -x /usr/bin/lsb_release ]; then</div><div>        /usr/bin/lsb_release -r -i -s | xargs echo</div><div>        /usr/bin/lsb_release -a</div></div><div><br></div><div>I suggest that the standard output of lsb_release -a be filtered to eliminate the errant error mesage.</div>
<div><br></div><div>Regards,</div><div>Thomas Leavitt</div>