Discussion:
Command datasource, graph problem
fisk4
2012-02-05 15:41:42 UTC
Permalink
fisk4 [http://community.zenoss.org/people/fisk4] created the discussion

"Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64258#64258

--------------------------------------------------------------
I have created a "command datasource" to be able to do graph from a snmprequest that returns values as a string (ex 1.5 tb).
it looks like this in the datasource under command template.

string_to_int.sh ${dev/zSnmpVer} ${dev/zSnmpCommunity} ${dev/manageIp} .1.3.6.1.4.1.24681.1.2.17.1.5.1

I tried to run the script from the command line like this:

./string_to_int.sh v2c public 192.168.1.1 .1.3.6.1.4.1.24681.1.2.17.1.5.1

and got the return
1.58
I have created a graph and added that as a datasource, but cant get any data into it.
Any ideas?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64258#64258]

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]
jmp242
2012-02-06 13:49:13 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64272#64272

--------------------------------------------------------------
Yea, 1.58 isn't an INT, and the return format is not the proper nagios format Zenoss is looking for. See:
https://zcaportal.org/wiki/bin/view/ZCA/ZCAFAQ#Command_Based_Data_Sources https://zcaportal.org/wiki/bin/view/ZCA/ZCAFAQ#Command_Based_Data_Sources

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64272#64272]

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]
fisk4
2012-02-08 18:14:33 UTC
Permalink
fisk4 [http://community.zenoss.org/people/fisk4] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64375#64375

--------------------------------------------------------------
Like this Datasource|EnclosureStatus=1.56 ?

Hmm, cant i make a graph from something that is not a int (float, double etc)?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64375#64375]

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]
jmp242
2012-02-08 19:27:11 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64379#64379

--------------------------------------------------------------
As far as I know, Zenoss needs INT to graph.

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64379#64379]

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]
fisk4
2012-02-08 19:36:07 UTC
Permalink
fisk4 [http://community.zenoss.org/people/fisk4] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64391#64391

--------------------------------------------------------------
But Datasource|EnclosureStatus=1.5 is right (expect for 1.5)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64391#64391]

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]
fisk4
2012-02-11 16:28:46 UTC
Permalink
fisk4 [http://community.zenoss.org/people/fisk4] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64464#64464

--------------------------------------------------------------
ttt
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64464#64464]

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]
themactech
2012-02-16 20:38:17 UTC
Permalink
themactech [http://community.zenoss.org/people/themactech] created the discussion

"Re: Command datasource, graph problem"

To view the discussion, visit: http://community.zenoss.org/message/64551#64551

--------------------------------------------------------------
Yeah the syntax is ok, you just need to multiply the value to make it an integer and adjust the graph scale accordingly.

Manuel
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64551#64551]

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]
Loading...