Results 25 to 45 of 45
-
09-30-2010, 08:50 AM #25Newcomer
- Join Date
- Jan 2009
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
On second thought. Noticed the latest tarball does not include .htaccess!
Create /var/www/statmon/.htaccess with the following content:
SetHandler mod_python
PythonHandler statmonHandler::handler
PythonDebug On
PythonInterpPerDirective On
ps: Also hacked a bit with the project this weekend, latest version on github now supports TSM 6.x
-
09-30-2010, 09:36 AM #26
all config files are as expected, but keeps bailing out...
Code:Thu Sep 30 15:27:48 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 configured -- resuming normal operations [Thu Sep 30 15:27:48 2010] [info] Server built: Apr 19 2010 19:57:58 [Thu Sep 30 15:27:48 2010] [debug] prefork.c(1032): AcceptMutex: sysvsem (default: sysvsem) [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.html denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.cgi denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.pl denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.php denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.xhtml denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/statmon/index.htm denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.html denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.cgi denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.pl denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.php denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.xhtml denied [Thu Sep 30 15:30:30 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /statmon/core/index.htm denied [Thu Sep 30 15:30:32 2010] [notice] mod_python (pid=16330, interpreter='daniel.edvz.uni-linz.ac.at'): Importing module '/var/www/statmon/statmonHandler.py' [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] mod_python (pid=16330, interpreter='daniel.edvz.uni-linz.ac.at', phase='PythonHandler', handler='statmonHandler'): Application error, referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] ServerName: 'daniel.edvz.uni-linz.ac.at', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] DocumentRoot: '/var/www/', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] URI: '/statmon/statmonHandler.py', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] Location: None, referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] Directory: '/var/www/statmon/', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] Filename: '/var/www/statmon/statmonHandler.py', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] PathInfo: '', referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] Traceback (most recent call last):, referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent), referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1202, in _process_target\n module = import_module(module_name, path=path), referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 296, in import_module\n log, import_path), referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 680, in import_module\n execfile(file, module.__dict__), referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] File "/var/www/statmon/statmonHandler.py", line 5, in <module>\n from statmon.defaultConfig import config, referer: http://localhost/statmon/ [Thu Sep 30 15:30:32 2010] [error] [client 127.0.0.1] ImportError: No module named statmon.defaultConfig, referer: http://localhost/statmon/
-
09-30-2010, 07:41 PM #27Newcomer
- Join Date
- Jan 2009
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
linuxdomination, looks like a permission problem. Make sure the apache user has read access to /var/www/statmon directory.
Looks to me like you are running on Debian-based system, by default the apache user is called 'www-data'
Try running these commands to fix the problem:
# chown -R www-data /var/www/statmon
# chmod -R 750 /var/www/statmon/
If problem persists, check /var/log/apache2/*log for clues.
-
10-01-2010, 01:33 AM #28
shame on me...the permisions were indeed cranked up....
logs are clean now
but still only get directory listing or "Code:Fri Oct 01 07:26:00 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 configured -- resuming normal operations [Fri Oct 01 07:26:00 2010] [info] Server built: Apr 19 2010 19:57:58 [Fri Oct 01 07:26:00 2010] [debug] prefork.c(1032): AcceptMutex: sysvsem (default: sysvsem) [Fri Oct 01 07:26:49 2010] [notice] mod_python (pid=9209, interpreter='daniel.edvz.uni-linz.ac.at'): Importing module '/var/www/statmon/statmonHandler.py' [Fri Oct 01 07:27:23 2010] [notice] mod_python (pid=9211, interpreter='daniel.edvz.uni-linz.ac.at'): Importing module '/var/www/statmon/statmonHandler.py'
Forbidden
You don't have permission to access /statmon/statmonHandler.py on this server."
well, this python stuff is really strange..any hints?
-
10-01-2010, 08:58 AM #29Newcomer
- Join Date
- Jan 2009
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Agreed, mod_python is not the easiest to troubleshoot.
Questions:
1) What are the permissions of /var/www/statmon/statmonHandler.py ?
2) What are the contents of /etc/apache2/conf.d/statmon-apache.conf ?
3) What are the contents of /var/www/statmon/.htaccess ?
-
10-04-2010, 05:14 AM #30
here we go...

permissions under /var/www/statmon (everything under statmon isv 750)
Code:total 96K drwxr-x--- 6 www-data www-data 4.0K 2010-09-20 16:11 core -rwxr-x--- 1 www-data www-data 35K 2010-09-09 12:15 LICENSE -rwxr-x--- 1 www-data www-data 4.0K 2010-09-09 12:11 README drwxr-x--- 6 www-data www-data 4.0K 2010-09-20 16:11 statmon -rwxr-x--- 1 www-data www-data 1.3K 2010-09-30 15:30 statmonConfig.xml -rwxr-x--- 1 www-data www-data 2.3K 2010-09-09 12:12 statmonHandler.py
Code:daniel:/var/www/statmon# cat /etc/apache2/conf.d/statmon-apache.conf <Directory "/var/www/statmon/"> Options Indexes FollowSymLinks AllowOverride FileInfo AuthConfig Limit Indexes Order deny,allow #Allow from all </Directory>
Code:daniel:/var/www/statmon# cat /var/www/statmon/.htaccess SetHandler mod_python PythonHandler statmonHandler::handler PythonDebug On PythonInterpPerDirective On
-
10-05-2010, 05:56 PM #31Newcomer
- Join Date
- Jun 2004
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Like what I see, is there a way to report on more than 1 TSM server instance?
-
02-04-2011, 12:13 PM #32Newcomer
- Join Date
- Dec 2009
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Great software. Please find attached our patch for TSM version 6.
Last edited by sazs; 02-25-2011 at 04:57 AM.
-
02-14-2011, 01:28 PM #33Member
- Join Date
- Jun 2007
- Posts
- 36
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi Pallsigurdsson,
I have installed your software on to a RHEL5 Server and it is now collecting data from my tsm server. There is a wealth of data there for me to use for reporting purposes which is great. The only issue I seem to be having is that some of the graphs are not whowing any data whereas others are. e.g on the home page the 'Daily Amount of Backup' graph is showing data but the others are not. I wondered if you could point me in the right direction?
Thanks Andy
-
02-24-2011, 08:50 AM #34Newcomer
- Join Date
- Dec 2009
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Andy,
From my experience, if you type on graph you will get down to debug message. Or check /tmp/debug.lo.
Alex.
-
03-28-2011, 08:31 AM #35Newcomer
- Join Date
- Mar 2011
- Posts
- 7
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi hi
I have installed the newest packed found on Github, Version 1.2. I am trying to collect data from four servers but I have some problems.
Collecting and web server is Centos 5.5. Web pages for all four servers are shown normally. Collection for two of them fails with error at excatly same place.
TSM Servers:
Linux Redhat TSM 5.5.5.0 (collection working fine)
AIX 6.x TSM 6.2.2.0 (collection not working)
AIX 6.x TSM 6.2.2.2 (collection not working)
AIX 6.x TSM 6.1.3.1 (collection working fine)
Errors:
File "collector.py", line 364, in ?
if __name__ == '__main__': main()
File "collector.py", line 67, in main
collector.run()
File "collector.py", line 92, in run
tmp.run()
File "collector.py", line 143, in run
self.end()
File "collector.py", line 137, in end
self.local.query(query)
File "/var/www/html/server2/statmon/datasource.py", line 62, in query
count = self.cursor.execute(string)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1048, "Column 'node_name' cannot be null")
Does anyone know what this is about?
regards HerningLast edited by herning; 03-28-2011 at 05:07 PM.
-
04-11-2011, 06:05 AM #36Newcomer
- Join Date
- Mar 2011
- Posts
- 7
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hello
Nobody using Statmon on TSM 6.2.2.x?
I was adding the fifth server to my Statmon enviroment. This server is running Redhat and TSM version 6.2.1.0. Collection works fine.
So I'm wondering if this is related to version 6.2.2.x of TSM servers.
regards Herning
-
04-11-2011, 08:26 AM #37Member
- Join Date
- Sep 2006
- Location
- India
- Posts
- 340
- Thanks
- 0
- Thanked 7 Times in 7 Posts
I could not reach either of the links, throws error from the explorer
Site: www.minor.is
Live demo: www.minor.is/live_test
Am i using the correct links?
-
04-11-2011, 11:40 AM #38Newcomer
- Join Date
- Mar 2011
- Posts
- 7
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi Hema
If you are looking for the download packed then it is here: https://github.com/palli/statmon
regards herning.Last edited by herning; 04-12-2011 at 08:42 AM.
-
04-14-2011, 12:44 PM #39
Are you adding additional statmon intances or does one statmon instance have access to all of your TSM servers (and if so, how)?
-
04-18-2011, 07:22 AM #40Newcomer
- Join Date
- Mar 2011
- Posts
- 7
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi
I have one instance for each server.
My problem stops in here on two servers:
class Occupancy_snapshot(Job):
items = 'node_name,filespace_id,stgpool_name,type,num_files,physical _mb,logical_mb'
selectQuery = 'select %s from occupancy'
Herning
-
04-19-2011, 01:46 AM #41Newcomer
- Join Date
- Dec 2009
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
I am using Server Version 6, Release 2, Level 2.2 with my patch provided in post #32 http://adsm.org/forum/showthread.php...ll=1#post96305
Alex.
-
04-19-2011, 09:16 AM #42Newcomer
- Join Date
- Mar 2011
- Posts
- 7
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi sazs I saw your patch and was wondering how to go around installing it. I am using the packed from github that is supposed to work with TSM 6.x and it is but not for these two servers. Could you please inform how to?
regards herningLast edited by herning; 04-19-2011 at 12:47 PM.
-
04-26-2011, 03:33 AM #43Newcomer
- Join Date
- Dec 2009
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
I don't know how it will apply on git version, the patch was made for tarball.
Installing is straightforward: After you unpacked original statmon tarball:
1. 'cd ' into unpacked directory
2. zcat statmon-1.2-tsm6-updated.patch.gz | patch -p1
3. continue with installation procedure
-
02-14-2012, 07:00 PM #44Newcomer
- Join Date
- Jun 2010
- Posts
- 1
- Thanks
- 0
- Thanked 0 Times in 0 Posts
TSM STatmon - error
Hi,
I'm getting the following error when i ran
#cd /var/www/statmon/statmon
#python collector.py
Please let me know if anyone have a fix for this?
Traceback (most recent call last):
File "collector.py", line 364, in ?
if __name__ == '__main__': main()
File "collector.py", line 67, in main
collector.run()
File "collector.py", line 92, in run
tmp.run()
File "collector.py", line 143, in run
self.end()
File "collector.py", line 137, in end
self.local.query(query)
File "/var/www/statmon/statmon/datasource.py", line 62, in query
count = self.cursor.execute(string)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1136, "Column count doesn't match value count at row 1")
Thanks,
nixHacks
-
04-11-2012, 12:24 PM #45Member
- Join Date
- Sep 2005
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Mikey, you should look at Servergraph, servergraph.rocketsoftware.com. they also have a tape drive utilization report.
Similar Threads
-
Whats the best TSM reporting tool?
By hellow123 in forum TSM Reporting & MonitoringReplies: 16Last Post: 02-12-2008, 03:49 AM -
TSM Reporting Tool
By largoscargo in forum ScriptingReplies: 2Last Post: 12-06-2007, 01:37 PM -
tool for reporting in tsm
By kex in forum TSM Reporting & MonitoringReplies: 5Last Post: 02-12-2007, 01:24 PM -
TSM Operational Reporting Tool-Reporting wrong status
By Xenocide in forum TSM Reporting & MonitoringReplies: 2Last Post: 05-07-2006, 09:37 AM -
Can I use TSM operational reporting to monitor a TSM server running on SUN Solaris?
By PENNYWISE in forum TSM Reporting & MonitoringReplies: 1Last Post: 11-15-2005, 11:26 AM


Reply With Quote
