LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-14-2009, 11:51 PM   #1
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Rep: Reputation: 0
Question Linux Monitoring tool


Hi ALL,

I have installed a linux-monitoring tool


linux-monitoring.tar.bz2

but am getting errors in my /var/db/rrdtool/error.log



Broken PIPE ????

Cant seem to find rrdtool or something.


/var/db/rrdtool/scripts/disk_graph3.sh: line 52: rrdtool: command not found
/var/db/rrdtool/scripts/disk_graph3.sh: line 59: rrdtool: command not found
/var/db/rrdtool/scripts/disk_graph3.sh: line 66: rrdtool: command not found
/var/db/rrdtool/scripts/processes_update.sh: line 9: rrdtool: command not found
/var/db/rrdtool/scripts/net_update.sh: line 14: rrdtool: command not found
/var/db/rrdtool/scripts/mem_update.sh: line 17: rrdtool: command not found
Cannot write data to system activity file: Broken pipe
/var/db/rrdtool/scripts/mem2_update.sh: line 18: rrdtool: command not found
Cannot write data to system activity file: Broken pipe
/var/db/rrdtool/scripts/disk_update1.sh: line 10: rrdtool: command not found
/var/db/rrdtool/scripts/disk_update2.sh: line 10: rrdtool: command not found
ERROR: '/var/db/rrdtool/disk3.rrd' is not an RRD file
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe

Can anyone help me on this one as would like to start using all sysstat tools for monitoring a web server
 
Old 06-15-2009, 12:29 AM   #2
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 181
Blog Entries: 1

Rep: Reputation: 35
"rrdtool: command not found"

looks like rrdtool is not in your path.
 
Old 06-15-2009, 03:05 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,290

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
'rrdtool' : Round Robin Database Tool

/usr/bin/rrdtool
/usr/bin/rrdupdate
 
Old 06-15-2009, 11:19 PM   #4
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Angry

Thanks Guys for your swift answers to my prob.


I also thought path'ing issue. I have tried adding this to my path for root, maybe I should be updating the /etc/profile for system wide changes for all users hmmm :-8.

Anyways here are my $PATH details for root



web02 ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local

And after updating my PATH it is now

echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.48/bin/rrdtool:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:



and after making ab sure about adding everything about rrdtool I now have

[root@web02 ~]# whereis rrdtool
rrdtool:


[root@web02 ~]# whereis rrdtool-1.0.46
rrdtool-1.0: /usr/local/rrdtool-1.0.48


Could it be the version I'm using ?

Anyroad, after trying to correct thePATH'ing issue I am still faced with a broken pipe.

[root@icgweb02 rrdtool]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.48/bin/rrdtool
[root@icgweb02 rrdtool]# tail error_log
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
[root@icgweb02 rrdtool]#


Has anyone else tried to run this linux monitoring tool and ever got it to work for them ?

It seems a great tool with all the necessary bits included as long as you download sysstat rpm tools. I believe I got it off a novell.coolcommands site

/var/db/rrdtool/scripts/load_update.sh: line 13: rrdtool: command not found
/var/db/rrdtool/scripts/processes_update.sh: line 9: rrdtool: command not found
/var/db/rrdtool/scripts/net_update.sh: line 14: rrdtool: command not found
/var/db/rrdtool/scripts/mem_update.sh: line 17: rrdtool: command not found
Cannot write data to system activity file: Broken pipe
/var/db/rrdtool/scripts/mem2_update.sh: line 18: rrdtool: command not found
/var/db/rrdtool/scripts/disk_update1.sh: line 10: rrdtool: command not found
/var/db/rrdtool/scripts/disk_update2.sh: line 10: rrdtool: command not found
/var/db/rrdtool/scripts/disk_update3.sh: line 10: rrdtool: command not found
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe


Maybe I should change all references in the scripts FROM rrdtool to the version I'm using rrdtool-1.0.46. Seems logical.


I Cannot believe I have added everything I can see for RRDTOOL into my path and still get broken pipe errors.


echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:/usr/local/rrdtool-1.0.48/bin/rrdtool:/usr/local/rrdtool-1.0.46/bin:/usr/local/rrdtool-1.0.46/bin/rrdtool:

Last edited by cozcol; 06-15-2009 at 11:30 PM.
 
Old 06-15-2009, 11:43 PM   #5
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Lightbulb

OK I think I may have it!!!!!!


setup some symbolic links ........

ln -sf /usr/local/rrdtool-1.0.48/bin/rrdtool /usr/bin/rrdtool
ln -sf /usr/local/rrdtool-1.0.48/bin/rrdupdate /usr/bin/rrdupdate
ln -sf /usr/local/rrdtool-1.0.48/bin/rrdcgi /usr/bin/rrdcgi
 
Old 06-15-2009, 11:48 PM   #6
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
OK so I now have different messages....This is good as the links to rrdtool are now working OK.


but now seems to be an RRDTool issue with parameters.

ERROR: expected 2 data source readings (got 1) from N::...
ERROR: expected 2 data source readings (got 1) from N::...
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
Cannot write data to system activity file: Broken pipe
ERROR: expected 2 data source readings (got 1) from N::...
ERROR: expected 2 data source readings (got 1) from N::...
 
Old 06-15-2009, 11:59 PM   #7
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Original Poster
Rep: Reputation: 0
HEY I got it working.

Created some links in /var/usage/DB-STAT

although I am seeing some errors in log still, my graphs are working.

GREAT!!!!! I do like the look of this tool and great to see it working !!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux tool for Netware 5 User Monitoring mjpaton Linux - Software 1 06-16-2009 12:04 AM
Linux tool for Netware 5 User Monitoring mjpaton Suse/Novell 0 02-13-2005 05:28 PM


All times are GMT -5. The time now is 08:33 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration