[collectd] Unable to use Collectd::Unixsock.pm correctly (might be due to FQDN)??

Blatt, Andrew (A&E) andrew_blatt at ml.com
Mon Mar 23 15:33:07 CET 2009


Hi,

I'm trying to use Collectd::Unixsock.pm to get values, and I can't seem
to get any values back correctly:

# ./main.pl
-> GETVAL "upeks1.dev.us.ml.com/load/load"
<- -1 Type `load"' is unknown.
-> GETVAL "upeks1.dev.us.ml.com/cpu-0/cpu"
<- -1 Type `cpu"' is unknown.
-> GETVAL "upeks1.dev.us.ml.com/disk-sda/disk_merged"
<- -1 Type `disk_merged"' is unknown.
-> GETVAL "upeks1.dev.us.ml.com/memory/memory"
<- -1 Type `memory"' is unknown.

Here is my code, can anyone see something really wrong with it??

use Regexp::Common;
use Collectd::Unixsock;


my $host = dcsa-cln17rh.222.nyc.us.ml.com';
my $plugin = "load";
my $type = "load";
my %other_args;

my $sock = Collectd::Unixsock->new('/var/run/collectd-unixsock');
%identifier = (host => $host, plugin => $plugin, type =>
$type,%other_args);
print $sock->getval(%identifier);
$sock->destroy ();

When looking at listval, I see these values:
host: dcsa-cln17rh.222.nyc.us.ml.com
plugin: load
time: 1237808627
type: load

Any help would be appreciated.

Thank You.

Andrew Blatt


--------------------------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to "Merrill Lynch" are references to any company in the Merrill Lynch & Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------------------------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090323/8bcfbc9e/attachment.htm 


More information about the collectd mailing list