0graham0
2011-12-09 18:09:37 UTC
0graham0 [http://community.zenoss.org/people/0graham0] created the discussion
"Command data source using bash script"
To view the discussion, visit: http://community.zenoss.org/message/63184#63184
--------------------------------------------------------------
I'm trying to set up a command data source using a bash script and I may be missing some obvious things...it's not working. Unfortunately I'm not sure what I'm missing after reading over the admin guide and FAQ.
I have a bash script which outputs an integer. I would like to use the information for graphing and thresholds. Here are the steps I've taken:
I created a data source called "test" with Cycle Time set to 5 seconds and Command Template set to "test.sh", a script in $ZENHOME/libexec. Running a test in the data source window returns the script output:
" Preparing Command... Â Executing command $ZENHOME/libexec/test.sh against xx.xxx.xx.xx
 -185Â
 DONE in 1 seconds "
I created a data point titled "timetest" which is set to RRD Type Gauge. I then created a graph called "time" and added the datapoint "timetest" to the graph.
I've also tried tweaking the script output so it reads: "timetest = Gauge32: -185"
Pardon my ignorance. Any assistance is greatly appreciated.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63184#63184]
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 data source using bash script"
To view the discussion, visit: http://community.zenoss.org/message/63184#63184
--------------------------------------------------------------
I'm trying to set up a command data source using a bash script and I may be missing some obvious things...it's not working. Unfortunately I'm not sure what I'm missing after reading over the admin guide and FAQ.
I have a bash script which outputs an integer. I would like to use the information for graphing and thresholds. Here are the steps I've taken:
I created a data source called "test" with Cycle Time set to 5 seconds and Command Template set to "test.sh", a script in $ZENHOME/libexec. Running a test in the data source window returns the script output:
" Preparing Command... Â Executing command $ZENHOME/libexec/test.sh against xx.xxx.xx.xx
 -185Â
 DONE in 1 seconds "
I created a data point titled "timetest" which is set to RRD Type Gauge. I then created a graph called "time" and added the datapoint "timetest" to the graph.
I've also tried tweaking the script output so it reads: "timetest = Gauge32: -185"
Pardon my ignorance. Any assistance is greatly appreciated.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63184#63184]
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]