Kernel Version

Moderator: crythias

Post Reply
manoj99
OTRS newbie
Posts: 31
Joined: 22 Jan 2020, 00:00
OTRS Version?: 5.0.42
Real Name: mk99

Kernel Version

Post by manoj99 »

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.

zzz
OTRS superhero
Posts: 713
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x–6.0.x
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Kernel Version

Post by zzz »

Hello Manoj,

This is how it should look like:
Bildschirmfoto 2020-01-22 um 16.18.24.png
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 & ((OTRS)) Community Edition services: efflux.de | efflux.de/en/

Free and premium OTRS add-ons: German | English

manoj99
OTRS newbie
Posts: 31
Joined: 22 Jan 2020, 00:00
OTRS Version?: 5.0.42
Real Name: mk99

Re: Kernel Version

Post by manoj99 »

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

zzz
OTRS superhero
Posts: 713
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x–6.0.x
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Kernel Version

Post by zzz »

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
Professional OTRS & ((OTRS)) Community Edition services: efflux.de | efflux.de/en/

Free and premium OTRS add-ons: German | English

manoj99
OTRS newbie
Posts: 31
Joined: 22 Jan 2020, 00:00
OTRS Version?: 5.0.42
Real Name: mk99

Re: Kernel Version

Post by manoj99 »

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!

zzz
OTRS superhero
Posts: 713
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x–6.0.x
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Kernel Version

Post by zzz »

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
Professional OTRS & ((OTRS)) Community Edition services: efflux.de | efflux.de/en/

Free and premium OTRS add-ons: German | English

manoj99
OTRS newbie
Posts: 31
Joined: 22 Jan 2020, 00:00
OTRS Version?: 5.0.42
Real Name: mk99

Re: Kernel Version

Post by manoj99 »

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

zzz
OTRS superhero
Posts: 713
Joined: 15 Dec 2016, 15:13
OTRS Version?: 3.x–6.0.x
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Kernel Version

Post by zzz »

Run '/opt/otrs6-portal/bin/otrs.SetPermissions.pl' and check if that's enough.

Best regards
Emin
Professional OTRS & ((OTRS)) Community Edition services: efflux.de | efflux.de/en/

Free and premium OTRS add-ons: German | English

manoj99
OTRS newbie
Posts: 31
Joined: 22 Jan 2020, 00:00
OTRS Version?: 5.0.42
Real Name: mk99

Re: Kernel Version

Post by manoj99 »

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.

Post Reply