Page 2 of 2 FirstFirst 12
Results 25 to 45 of 45
  1. #25
    Newcomer
    Join Date
    Jan 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  2. #26
    Member linuxdomination's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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/

  3. #27
    Newcomer
    Join Date
    Jan 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #28
    Member linuxdomination's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    shame on me...the permisions were indeed cranked up....

    logs are clean now
    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'
    but still only get directory listing or "
    Forbidden

    You don't have permission to access /statmon/statmonHandler.py on this server."


    well, this python stuff is really strange..any hints?

  5. #29
    Newcomer
    Join Date
    Jan 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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 ?

  6. #30
    Member linuxdomination's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  7. #31
    Newcomer
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Like what I see, is there a way to report on more than 1 TSM server instance?

  8. #32
    Newcomer
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great software. Please find attached our patch for TSM version 6.
    Attached Files Attached Files
    Last edited by sazs; 02-25-2011 at 04:57 AM.

  9. #33
    Member
    Join Date
    Jun 2007
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  10. #34
    Newcomer
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Andy,
    From my experience, if you type on graph you will get down to debug message. Or check /tmp/debug.lo.

    Alex.

  11. #35
    Newcomer
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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 Herning
    Last edited by herning; 03-28-2011 at 05:07 PM.

  12. #36
    Newcomer
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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

  13. #37
    Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    340
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Default

    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?

  14. #38
    Newcomer
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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.

  15. #39
    Member tenpin's Avatar
    Join Date
    Dec 2004
    Location
    Midwest
    Posts
    122
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Are you adding additional statmon intances or does one statmon instance have access to all of your TSM servers (and if so, how)?

  16. #40
    Newcomer
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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

  17. #41
    Newcomer
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by herning View Post
    Hello

    Nobody using Statmon on TSM 6.2.2.x?
    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.

  18. #42
    Newcomer
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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 herning
    Last edited by herning; 04-19-2011 at 12:47 PM.

  19. #43
    Newcomer
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  20. #44
    Newcomer
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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

  21. #45
    Member
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Mikey, you should look at Servergraph, servergraph.rocketsoftware.com. they also have a tape drive utilization report.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Whats the best TSM reporting tool?
    By hellow123 in forum TSM Reporting & Monitoring
    Replies: 16
    Last Post: 02-12-2008, 03:49 AM
  2. TSM Reporting Tool
    By largoscargo in forum Scripting
    Replies: 2
    Last Post: 12-06-2007, 01:37 PM
  3. tool for reporting in tsm
    By kex in forum TSM Reporting & Monitoring
    Replies: 5
    Last Post: 02-12-2007, 01:24 PM
  4. TSM Operational Reporting Tool-Reporting wrong status
    By Xenocide in forum TSM Reporting & Monitoring
    Replies: 2
    Last Post: 05-07-2006, 09:37 AM
  5. Replies: 1
    Last Post: 11-15-2005, 11:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •