Archived community.zenoss.org | full text search
Skip navigation
3635 Views 4 Replies Latest reply: Feb 7, 2011 3:12 PM by Tad RSS
Tad Rank: White Belt 12 posts since
Jan 26, 2010
Currently Being Moderated

Feb 7, 2011 10:58 AM

ZenCommand not saving performance data

I'm having a problem getting zencommand to store my performance data.

 

I've created the following monitoring template.

NAME: IBMDS4000LogicalDrive
TYPE: COMMAND
ENABLED: CHECKED
SEVERITY: WARNING
EVENT CLASS: /cmd/fail
CYCLE TIME: 300
PARSER: Auto
COMMAND TEMPLATE: /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TadSmith.IBMDS4000/ZenPacks/TadSmith/IBMDS4000/lib/IBMDS4000LogicalDrivePerformance.pl ${here/titleOrId}

 

I've then created a very basic Perl script just to try and output some data.

#!/usr/bin/env perl
print "|someData=23s;;;;;";

 

When I view the results of ZenCommand, nothing seems to be being saved. I see that it is getting the correct return from the Perl script, but then it gives me an error of "Dropping useless clear event", and doesn't seem to be saving any data.

2011-02-07 09:56:37,262 DEBUG zen.zencommand: Received exit code: 0
2011-02-07 09:56:37,262 DEBUG zen.zencommand: Command: '/bin/sh -c exec /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TadSmith.IBMDS4000/ZenPacks/TadSmith/IBMDS4000/lib/IBMDS4000LogicalDrivePerformance.pl MIR-DHS3SS107-T'
2011-02-07 09:56:37,263 DEBUG zen.zencommand: Output: '|someData=23s;;;;;'
2011-02-07 09:56:37,263 DEBUG zen.zencommand: Process IBMDS4000LogicalDrivePerformance.pl MIR-DHS3SS107-T  stopped (0), 0.27 seconds elapsed
2011-02-07 09:56:37,263 DEBUG zen.zencommand: Dropping useless clear event {'manager': 'sos-zen01.mn-dhs1.co.dhs', 'eventKey': 'IBMDS4000LogicalDrivePerformance', 'device': '10.1.230.231', 'eventClass': '/Cmd/Fail', 'summary': 'Cmd: /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TadSmith.IBMDS4000/ZenPacks/TadSmith/IBMDS4000/lib/IBMDS4000LogicalDrivePerformance.pl MIR-DHS3SS107-T - Code: 0 - Msg: Success', 'component': '', 'monitor': 'localhost', 'agent': 'zencommand', 'severity': 0}
2011-02-07 09:56:37,263 DEBUG zen.zencommand: The result of "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TadSmith.IBMDS4000/ZenPacks/TadSmith/IBMDS4000/lib/IBMDS4000LogicalDrivePerformance.pl MIR-DHS3SS107-T" was "'|someData=23s;;;;;'"
2011-02-07 09:56:37,265 DEBUG zen.zencommand: Next command in 299 seconds
2011-02-07 09:56:37,265 DEBUG zen.zencommand: Received exit code: 0

 

Can anyone see what I'm doing wrong? Thanks in advance.

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    1. Feb 7, 2011 12:38 PM (in response to Tad)
    Re: ZenCommand not saving performance data

    You need to output nagios plugin format.

    Datasource|Datapoint=integer

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    3. Feb 7, 2011 12:59 PM (in response to Tad)
    Re: ZenCommand not saving performance data

    Really it doesn't matter. You just have to have the datapoint for the graph be named someData for your example.

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points