Help - NCV graph issue
list Charles Jones
I'm having problems getting some particular NCV graphs to display (I get missing graph link) . I have successfully added other NCV graphs, and I thought I knew what I was doing, but alas I am stuck and cannot figure out what I've done wrong. I'm hoping that Henrik or anyone can see what I'm doing wrong.
What I've checked so far:
* Script is properly sending data message to Hobbit
* Hobbit is receiving the data and creating RRD files
* The RRD files are being updated
* proper? definitions in TEST2RRD
* proper? definition in hobbitgraph.cfg, using correct rrd filename and ds name
I have a server-side script that collects database connection stats for Tomcat processes (5 seperate processes per server). The collector script is working fine, and I verified that rrd files are being created and populated. The DS is "dbconn":
extt$ ~/local/bin/rrdtool dump ../../data/rrd/host1/tc_1_1-dbconn.rrd |grep name
<name> dbconn </name>
data is definitely going into the rrd file(s):
ext$ ~/local/bin/rrdtool dump ../../data/rrd/host/tc_1_1-dbconn.rrd |grep row |grep -v NaN
<!-- 2007-06-29 19:05:00 GMT / 1183143900 --> <row><v> 2.0000000000e+00 </v></row>
<!-- 2007-06-29 19:10:00 GMT / 1183144200 --> <row><v> 2.0000000000e+00 </v></row>
<!-- 2007-06-29 19:15:00 GMT / 1183144500 --> <row><v> 2.6633333333e+00 </v></row>
<!-- 2007-06-29 19:20:00 GMT / 1183144800 --> <row><v> 3.6533333333e+00 </v></row>
<!-- 2007-06-29 19:25:00 GMT / 1183145100 --> <row><v> 5.2866666667e+00 </v></row>
Here is the test definition I am using in hobbitgraph.cfg:
[tc_1_1-dbconn]
TITLE Tomcat Database Connections
YAXIS #
DEF:dbconn=tc_1_1-dbconn.rrd:dbconn:AVERAGE
LINE2:dbconn#00CCCC:database connections
COMMENT:(5 Minute Combined Avg)\n
GPRINT:modjk:LAST: \: %5.6lf (cur)
GPRINT:modjk:MAX: \: %5.6lf (max)
here is the relavant additions I made to the TEST2RRD section of hobbitserver.cfg:
TEST2RRD="<hobbit default settings>,tc_1_1-dbconn=ncv,tc_1_2-dbconn=ncv,tc_1_3-dbconn=ncv,tc_1_4-dbconn=ncv,tc_1_5-dbconn=ncv,tc_2_1-dbconn=ncv,tc_2_2-dbconn=ncv,tc_2_3-dbconn=ncv,tc_2_4-dbconn=ncv,tc_2_5-dbconn=ncv,tc_3_1-dbconn=ncv,tc_3_2-dbconn=ncv,tc_3_3-dbconn=ncv,tc_3_4-dbconn=ncv,tc_3_5-dbconn=ncv"
Once I can get this single graph working, I plan on creating a definition that will display all of the dbconn data in one graph (per host).
-Charles
list Ralph Mitchell
On 6/29/07, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
DEF:dbconn=tc_1_1-dbconn.rrd:dbconn:AVERAGE GPRINT:modjk:LAST: \: %5.6lf (cur)
GPRINT:modjk:MAX: \: %5.6lf (max)
Shouldn't that be:
GPRINT:dbconn:LAST.......
GPRINT:dbconn:MAX........
Ralph Mitchell
list Charles Jones
Wow. YET AGAIN I send an email to the list with a problem, and figure it out immediately afterwards. The issue was using the wrong def name in the GPRINT. I know it looks like I'm a total idiot - I swear I looked at that section of hobbitgraph.cfg at least a dozen times and didn't notice it. Ught. Thank goodness it's Friday. -Charles
list Bruce White
Hi all, I have yet a different problem with an NCV graph. I have a script which monitors are UPS. In the script it captures the current load. I have set-up the hobbitserver.cfg file and hobbitgraph.cfg files based on the examples and it is storing the data and producing the graph, but the numbers don't match. When I do an rrdtool dump I see the current data point is ok (like 29% and I see that 29 is the current datapoint). When it graphs it, it shows it as 8. I have tried playing with the data types and that doesn't help. Any ideas? Thanks ahead of time, Bruce
▸
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
Sent: Friday, June 29, 2007 3:23 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Re: Help - NCV graph issue
Wow. YET AGAIN I send an email to the list with a problem, and figure it
out immediately afterwards. The issue was using the wrong def name in
the GPRINT. I know it looks like I'm a total idiot - I swear I looked
at that section of hobbitgraph.cfg at least a dozen times and didn't
notice it. Ught. Thank goodness it's Friday.
-Charles
Note: The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it from
your computer. Thank you. Fellowes, Inc.
list Ralph Mitchell
▸
On 6/29/07, White, Bruce <user-58f975e8bf9d@xymon.invalid> wrote:
Hi all, I have yet a different problem with an NCV graph. I have a script which monitors are UPS. In the script it captures the current load. I have set-up the hobbitserver.cfg file and hobbitgraph.cfg files based on the examples and it is storing the data and producing the graph, but the numbers don't match. When I do an rrdtool dump I see the current data point is ok (like 29% and I see that 29 is the current datapoint). When it graphs it, it shows it as 8. I have tried playing with the data types and that doesn't help. Any ideas?
RRD expects the data at rigidly specified intervals. Any datum entered slightly off the expected interval is "extrapolated" to fit the correct interval. If you manage to get it *really* close to the correct time, then it goes in almost untouched. I'm guessing you could be hitting somewhere in the middle of the interval, for it to be so wildly out Or I'm completely wrong... :) It's worth looking into, though, because the extrapolation does happen. Ralph Mitchell
list Uma Bandi
Hi I successfully Install Hobbit client for Solaris and HP but I failed for Linux I am getting following error, could you please help me to come out this situation. [root at laboz001 logs]# tail -f hobbitclient.log shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Thanks Uma Maheswar
list Hobbit User
On Mon, July 2, 2007 07:51, Bandi, Uma (GE Indust, Plastics, consultant)
▸
wrote:Hi I successfully Install Hobbit client for Solaris and HP but I failed for Linux I am getting following error, could you please help me to come out this situation. [root at laboz001 logs]# tail -f hobbitclient.log shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
If you haven't figured it out yet, that's what happens when you do something that removes the directory you're currently in.
list Uma Bandi
-----Original Message----- From: Bandi, Uma (GE Indust, Plastics, consultant) Sent: Monday, July 02, 2007 7:51 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Linux Client Installation. Hi I successfully Install Hobbit client for Solaris and HP but I failed for Linux I am getting following error, could you please help me to come out this situation. [root at laboz001 logs]# tail -f hobbitclient.log shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Thanks Uma Maheswar
list Tod Hansmann
I'm in no way an expert on the Hobbit Client, but you seem to want an answer, so I'll oblige. It looks like you have a configuration/permissions error on the client you've installed this on. This could be for many reasons, but if it were me I would start looking at file permissions of things you are looking at on that server. You may also have it configured to be looking for a directory or file that doesn't exist. Just a guess. Happy hunting. Tod Hansmann Network Engineer -----Original Message----- From: Bandi, Uma (GE Indust, Plastics, consultant) [mailto:user-55d20652efdc@xymon.invalid] Sent: Tuesday, July 03, 2007 9:35 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] getcwd: cannot access parent directories: No such file
▸
or directory
-----Original Message-----
From: Bandi, Uma (GE Indust, Plastics, consultant)
Sent: Monday, July 02, 2007 7:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Linux Client Installation.
Hi I successfully Install Hobbit client for Solaris and HP but I failed
for Linux I am getting following error, could you please help me to come
out this situation.
[root at laboz001 logs]# tail -f hobbitclient.log
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
Thanks
Uma Maheswar
list Hobbit User
It looks like the current working directory for the shell session no longer exists. [root at home dir2]# mkdir /tmp/dir1;mkdir /tmp/dir1/dir2;cd /tmp/dir1/dir2;rmdir /tmp/dir1/dir2;rmdir /tmp/dir1;man 3 getcwd
▸
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
There may be other scenarios, but every time I've had a panicky sysadmin
ask me about this, the current working directory has been removed. Often
happens with a "rpm -e" while you're in one of the directories created by
the rpm.
▸
On Tue, July 3, 2007 11:44, Tod Hansmann wrote:I'm in no way an expert on the Hobbit Client, but you seem to want an answer, so I'll oblige. It looks like you have a configuration/permissions error on the client you've installed this on. This could be for many reasons, but if it were me I would start looking at file permissions of things you are looking at on that server. You may also have it configured to be looking for a directory or file that doesn't exist. Just a guess. Happy hunting. Tod Hansmann Network Engineer -----Original Message----- From: Bandi, Uma (GE Indust, Plastics, consultant) [mailto:user-55d20652efdc@xymon.invalid] Sent: Tuesday, July 03, 2007 9:35 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] getcwd: cannot access parent directories: No such file or directory -----Original Message----- From: Bandi, Uma (GE Indust, Plastics, consultant) Sent: Monday, July 02, 2007 7:51 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Linux Client Installation. Hi I successfully Install Hobbit client for Solaris and HP but I failed for Linux I am getting following error, could you please help me to come out this situation. [root at laboz001 logs]# tail -f hobbitclient.log shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory