[hobbit] trying to get netapp filer data into larrd graphs
Thanks for the pointer! It makes some sense to me. But I have the ciscocpu external script reporting its output under the cpu column, will that have any effect on what I'm trying to accomplish? I mean if I create a custom rrd script for this, will it interfere with my windows/unix hosts cpu graphs that are already being generated? Do I need to configure it to report under its own column? Here is what the status message looks like from the ciscocpu script: @@status#28646|1108591336.263764|10.10.10.22||WAN.jvbs-router.atg.com|cp u|1108593136|green||green|1108550383|0||0| status WAN,jvbs-router,atg,com.cpu green Wed Feb 16 16:02:16 CST 2005 <br>CPU 5 min average: 4% Thanks! Michael Lowery -----Original Message----- From: Tom Georgoulias [mailto:tgeorgoulias at nandomedia.com] Sent: Wednesday, February 16, 2005 3:32 PM To: hobbit at hswn.dk Subject: Re: [hobbit] trying to get netapp filer data into larrd graphs Lowery, Michael wrote:
On a similar note, I'm trying to get the ciscocpu.pl/.sh script to also present the data to larrd. But I don't really have a clue as how to accomplish this, so if someone feels that they would like to help, let me know. I will be equally grateful for those who can provide links and or hints that can help me get this done.
Did you look at the "custom rrd data" section in the hobbitd_larrd manpage? It may be easier to do than you think. THere is no perl involved (assuming your ciscocpu script is already running on the hobbit server and displaying the data (but not the graphs)) and an example shell script is provided. Tom To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Feb 16, 2005 at 04:09:47PM -0600, Lowery, Michael wrote:
Thanks for the pointer! It makes some sense to me. But I have the ciscocpu external script reporting its output under the cpu column, will that have any effect on what I'm trying to accomplish? I mean if I create a custom rrd script for this, will it interfere with my windows/unix hosts cpu graphs that are already being generated?
The way hobbitd_larrd works, then the external scripts can only be invoked for status messages that it does not know how to handle. Since "cpu" is well-known and handled internally in hobbitd_larrd, a script cannot be used to process "cpu" status messages.
Do I need to configure it to report under its own column?
If you want to do it with a script: Yes.
Here is what the status message looks like from the ciscocpu script:
@@status#28646|1108591336.263764|10.10.10.22||WAN.jvbs-router.atg.com|cp u|1108593136|green||green|1108550383|0||0| status WAN,jvbs-router,atg,com.cpu green Wed Feb 16 16:02:16 CST 2005 <br>CPU 5 min average: 4%
Wouldn't be hard to add support for this in the standard hobbitd_larrd handler. Is that "CPU 5 min average" on a line by itself, or is it just your mail program that added a newline between the "status ..." and "<br>CPU 5 min average..." ? Henrik
On Wed, Feb 16, 2005 at 11:18:28PM +0100, Henrik Stoerner wrote:
Here is what the status message looks like from the ciscocpu script:
@@status#28646|1108591336.263764|10.10.10.22||WAN.jvbs-router.atg.com|cp u|1108593136|green||green|1108550383|0||0| status WAN,jvbs-router,atg,com.cpu green Wed Feb 16 16:02:16 CST 2005 <br>CPU 5 min average: 4%
Wouldn't be hard to add support for this in the standard hobbitd_larrd handler.
I've added a couple of lines to the "cpu" handler in hobbitd_larrd, and from your message I think it should make it work. I also added the lines that should make the Netapp cpu-reports work. I've attached a small patch for this (also available at http://www.hswn.dk/beta/cpu-reports.patch); apply with GNU patch using "cd hobbit-4.0-RC2; patch -p0 </tmp/cpu-reports.patch" then rebuild with "make" and "make install" and restart Hobbit. If graphs appear after 10-15 minutes, it worked. Let me know if it's OK. Regards, Henrik (off to bed now)
participants (2)
-
henrik@hswn.dk
-
mlowery@alliedtechgroup.com