Hello,
How can we load Kernel Version in Operating System section for DataSupportCollector for OTRS v6? In other words, what part of the source code has to be manipulated to fetch Kernel Version details.
Thanks,
Manoj.
Kernel Version
Moderator: crythias
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Kernel Version
Hello Manoj,
This is how it should look like:
Are you expecting/seeing something else?
Best regards
Emin
This is how it should look like:
Are you expecting/seeing something else?
Best regards
Emin
You do not have the required permissions to view the files attached to this post.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Kernel Version
Yes. But, how do we get that info from . Should we have some perl module or configure anything at OS level or within OTRS source code ? If so, where exactly should we do that to get that info
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Kernel Version
OTRS runs the command 'uname -a' to get the kernel version.
Check if you can run '/bin/uname -a' or 'uname -a' in the shell. It might be a permission problem.
Best regards
Emin
Check if you can run '/bin/uname -a' or 'uname -a' in the shell. It might be a permission problem.
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Kernel Version
Those two commands were able to execute from the shell.
When I clicked on Support Data Collector from the OTRS Admin page,
I see these logs on apache
Can't exec "df": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/DiskSpacePartitions.pm line 41.
-e: Can't exec "uname": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/KernelVersion.pm line 34.
-e: Can't exec "perl": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 32.
e: readline() on closed filehandle $FH at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 34.
-e: Use of uninitialized value $Output in pattern match (m//) at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 39.
-e: Use of uninitialized value $Output in pattern match (m//) at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 39.
Have no clue how to solve this!
When I clicked on Support Data Collector from the OTRS Admin page,
I see these logs on apache
Can't exec "df": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/DiskSpacePartitions.pm line 41.
-e: Can't exec "uname": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/KernelVersion.pm line 34.
-e: Can't exec "perl": No such file or directory at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 32.
e: readline() on closed filehandle $FH at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 34.
-e: Use of uninitialized value $Output in pattern match (m//) at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 39.
-e: Use of uninitialized value $Output in pattern match (m//) at /opt/otrs//Kernel/System/SupportDataCollector/Plugin/OS/PerlModules.pm line 39.
Have no clue how to solve this!
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Kernel Version
What distribution are you using and are you having similar log entries while working on your system?
The message indicates that it's not a bash issue per se. It looks like the Perl script is just having a problem executing those commands.
Double-check if the folder permission is set correctly and the user is in the correct webserver group.
Best regards
Emin
The message indicates that it's not a bash issue per se. It looks like the Perl script is just having a problem executing those commands.
Double-check if the folder permission is set correctly and the user is in the correct webserver group.
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Kernel Version
Im using CentOS7 with SeLinux on permissive mode(dealing with Permissions to get it on enforcing mode simultaneously).
Current folder permissions,
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 Custom
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 doc
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 i18n
-rw-r-----. otrs apache system_u:object_r:httpd_sys_content_t:s0 INSTALL.md
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 Kernel
web and admin group= apache
user - otrs
Current folder permissions,
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 Custom
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 doc
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 i18n
-rw-r-----. otrs apache system_u:object_r:httpd_sys_content_t:s0 INSTALL.md
drwxr-x---. otrs apache system_u:object_r:httpd_sys_content_t:s0 Kernel
web and admin group= apache
user - otrs
-
- Znuny superhero
- Posts: 889
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Kernel Version
Run '/opt/otrs6-portal/bin/otrs.SetPermissions.pl' and check if that's enough.
Best regards
Emin
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Kernel Version
I was missing including /usr/bin in envt variable under /etc/sysconfig/httpd for apache to access the OS Libraries.
Thanks everyone and sorry for updating so late.
Best,
M.
Thanks everyone and sorry for updating so late.
Best,
M.