chemist
2012-10-28 13:08:16 UTC
chemist [http://community.zenoss.org/people/chemist] created the discussion
"Command based data source not recording perf data"
To view the discussion, visit: http://community.zenoss.org/message/69581#69581
--------------------------------------------------------------
Hello,
So I had a command based data source in Zenoss 3.2.1. It's very simple and consists of 2 datapoints and a threshold. I copied it over to Zenoss 4.2.0 and although it is running, the perf data is not showing in the graphs (nan). Here's the debug output from zencommand:
2012-10-28 12:56:03,948 DEBUG zen.SshClient: 192.168.65.41 channel 13 SshConnection added command /home/etote/bin/clickatel.sh
2012-10-28 12:56:03,949 DEBUG zen.SshClient: 192.168.65.41 channel 14 Opening command channel for /home/etote/bin/clickatel.sh
2012-10-28 12:56:06,069 DEBUG zen.SshClient: 192.168.65.41 channel 14 CommandChannel exit code for /home/etote/bin/clickatel.sh is 0: Success
2012-10-28 12:56:06,070 DEBUG zen.SshClient: 192.168.65.41 channel 13 SshConnection closing
2012-10-28 12:56:06,070 DEBUG zen.SshClient: 192.168.65.41 channel 14 CommandChannel closing command channel for command /home/etote/bin/clickatel.sh with data: '|delayed:0 queued:6\n'
2012-10-28 12:56:06,070 DEBUG zen.zencommand: Process Clickatel/ckickatel.sh stopped (0), 2.12 seconds elapsed
2012-10-28 12:56:06,071 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from FETCH_DATA to PARSING_DATA
2012-10-28 12:56:06,071 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from PARSING_DATA to STORE_PERF_DATA
2012-10-28 12:56:06,072 DEBUG zen.zencommand: allowduplicateclears dropping useless clear event {'severity': 0, 'component': '', 'eventClass': '/Cmd/Fail', 'summary': [''], 'manager': 'monitor01.colo', 'eventKey': 'ckickatel.sh', 'agent': 'zencommand', 'device': 'app01.colo.internal', 'message': '|delayed:0 queued:6\n', 'performanceData': ['delayed:0 queued:6'], 'monitor': 'localhost'}
2012-10-28 12:56:06,072 INFO zen.CmdClient: command client finished collection for app01.colo.internal
2012-10-28 12:56:06,072 DEBUG zen.SshClient: 192.168.65.41 SshClient closing channel (openSessions = -13)
2012-10-28 12:56:06,072 INFO zen.CmdClient: command client finished collection for app01.colo.internal
2012-10-28 12:56:06,073 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote finished, result: [(<Products.ZenRRD.zencommand.Cmd instance at 0x60b2d88>, ParsedResults
 events: [{'component': '',
 'device': 'app01.colo.internal',
 'eventClass': '/Cmd/Fail',
 'eventKey': 'ckickatel.sh',
 'message': '|delayed:0 queued:6\n',
 'performanceData': ['delayed:0 queued:6'],
 'severity': 0,
 'summary': ['']}]
 values: []})]
2012-10-28 12:56:06,075 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from STORE_PERF_DATA to IDLE
2012-10-28 12:56:06,075 DEBUG zen.SshClient: 192.168.65.41 SshClient closing channel (openSessions = -14)
2012-10-28 12:56:06,076 INFO zen.CmdClient: command client finished collection for app01.colo.internal
I can see that the values are blank so I guess that is why there is no performance data, but can anyone tell me why? The output of the script is:
echo "|delayed:$delayed" "queued:$queued"
And this worked in 3.2.1
All help greatly appreciated.
Jim
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69581#69581]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Command based data source not recording perf data"
To view the discussion, visit: http://community.zenoss.org/message/69581#69581
--------------------------------------------------------------
Hello,
So I had a command based data source in Zenoss 3.2.1. It's very simple and consists of 2 datapoints and a threshold. I copied it over to Zenoss 4.2.0 and although it is running, the perf data is not showing in the graphs (nan). Here's the debug output from zencommand:
2012-10-28 12:56:03,948 DEBUG zen.SshClient: 192.168.65.41 channel 13 SshConnection added command /home/etote/bin/clickatel.sh
2012-10-28 12:56:03,949 DEBUG zen.SshClient: 192.168.65.41 channel 14 Opening command channel for /home/etote/bin/clickatel.sh
2012-10-28 12:56:06,069 DEBUG zen.SshClient: 192.168.65.41 channel 14 CommandChannel exit code for /home/etote/bin/clickatel.sh is 0: Success
2012-10-28 12:56:06,070 DEBUG zen.SshClient: 192.168.65.41 channel 13 SshConnection closing
2012-10-28 12:56:06,070 DEBUG zen.SshClient: 192.168.65.41 channel 14 CommandChannel closing command channel for command /home/etote/bin/clickatel.sh with data: '|delayed:0 queued:6\n'
2012-10-28 12:56:06,070 DEBUG zen.zencommand: Process Clickatel/ckickatel.sh stopped (0), 2.12 seconds elapsed
2012-10-28 12:56:06,071 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from FETCH_DATA to PARSING_DATA
2012-10-28 12:56:06,071 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from PARSING_DATA to STORE_PERF_DATA
2012-10-28 12:56:06,072 DEBUG zen.zencommand: allowduplicateclears dropping useless clear event {'severity': 0, 'component': '', 'eventClass': '/Cmd/Fail', 'summary': [''], 'manager': 'monitor01.colo', 'eventKey': 'ckickatel.sh', 'agent': 'zencommand', 'device': 'app01.colo.internal', 'message': '|delayed:0 queued:6\n', 'performanceData': ['delayed:0 queued:6'], 'monitor': 'localhost'}
2012-10-28 12:56:06,072 INFO zen.CmdClient: command client finished collection for app01.colo.internal
2012-10-28 12:56:06,072 DEBUG zen.SshClient: 192.168.65.41 SshClient closing channel (openSessions = -13)
2012-10-28 12:56:06,072 INFO zen.CmdClient: command client finished collection for app01.colo.internal
2012-10-28 12:56:06,073 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote finished, result: [(<Products.ZenRRD.zencommand.Cmd instance at 0x60b2d88>, ParsedResults
 events: [{'component': '',
 'device': 'app01.colo.internal',
 'eventClass': '/Cmd/Fail',
 'eventKey': 'ckickatel.sh',
 'message': '|delayed:0 queued:6\n',
 'performanceData': ['delayed:0 queued:6'],
 'severity': 0,
 'summary': ['']}]
 values: []})]
2012-10-28 12:56:06,075 DEBUG zen.collector.scheduler: Task app01.colo.internal 60 Remote changing state from STORE_PERF_DATA to IDLE
2012-10-28 12:56:06,075 DEBUG zen.SshClient: 192.168.65.41 SshClient closing channel (openSessions = -14)
2012-10-28 12:56:06,076 INFO zen.CmdClient: command client finished collection for app01.colo.internal
I can see that the values are blank so I guess that is why there is no performance data, but can anyone tell me why? The output of the script is:
echo "|delayed:$delayed" "queued:$queued"
And this worked in 3.2.1
All help greatly appreciated.
Jim
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69581#69581]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]