Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Hassib Belhaj
byHassib Belhaj, September 12, 2014
Thanks, very useful script.
I have has a small problem with it on older Linux systems. in the SRCDIR definition:
os.path.dirname() does not return a full path if sys.argv[0] doesn't contain one, which result in an error. (This is the case on some systems, like older versions of CentOS).
replacing it with the following:
SRCDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
would solv the problem and be more robust.
Regards
I have has a small problem with it on older Linux systems. in the SRCDIR definition:
os.path.dirname() does not return a full path if sys.argv[0] doesn't contain one, which result in an error. (This is the case on some systems, like older versions of CentOS).
replacing it with the following:
SRCDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
would solv the problem and be more robust.
Regards