Giter VIP home page Giter VIP logo

collectd-top's Introduction

Welcome to Michel's GitHub Page! πŸ‘‹

My name is Michel Gokan Khan & I'm a computer science researcher. I'm currently conducting research as a PostDoc at KTH Royal Institute of Technology and AstraZeneca in ML-Driven Optimization of Production in Industry 5.0. I have a PhD in computer science from KAU Sweden πŸ‡ΈπŸ‡ͺ. My focus was optimizing service function chains in the context of cloud native computing with use cases in 5G networks and NFV through deep learning.

IMPORTANT NOTE: Unless otherwise mentioned in the README.md, any contributions or repositories on my account are not affiliated with any organization, company, or institution I am or was affiliated with.

Github Linkedin Twitter Gmail Outlook ResearchGate GoogleScholar Medium

LIDo_Int

I recieved BSc degree in applied mathematics and continued with MSc in computer engineering @ Iran University of Science and Technology. I started my PhD journey with the Distributed Systems and Communications lab (DISCO) @ Karlstad University (KAU) in Sweden. During my PhD, I worked in Ericsson research and development department as a research intern and directly contributed to the projects related to optimizing both the 4G-LTE and the 5G core.

I have a established publications and inventions record. To know more about me and get access to the most recent information and updates about my research, please visit my Linkedin profile or follow me on Twitter.

Michel's github stats

collectd-top's People

Contributors

michelgokan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

collectd-top's Issues

perl: Configuration failed with a fatal error - plugin disabled!

Plugin loading failed while starting collectd server, this is my collectd logs

Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "syslog" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: type = syslog, key = LogLevel, value = info
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "perl" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: perl: Initializing Perl interpreter...
Jan 31 07:54:56 localhost collectd[5517]: perl: init_pi: Unable to bootstrap Collectd: lock can only be used on shared values at /usr/share/perl/5.18/perl5db.pl line 4100.
Jan 31 07:54:56 localhost collectd[5517]: perl: Configuration failed with a fatal error - plugin disabled!
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "cpu" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "csv" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "df" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "load" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "memory" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "write_http" successfully loaded.
Jan 31 07:54:56 localhost collectd[5517]: plugin_load: plugin "swap" successfully loaded.
Jan 31 07:54:56 localhost collectdmon[5505]: Warning: collectd terminated with exit status 1
Jan 31 07:54:56 localhost collectdmon[5505]: Warning: restarting collectd
Jan 31 07:54:56 localhost collectd[5518]: plugin_load: plugin "syslog" successfully loaded.
Jan 31 07:54:56 localhost collectd[5518]: type = syslog, key = LogLevel, value = info
Jan 31 07:54:56 localhost collectd[5518]: plugin_load: plugin "perl" successfully loaded.
Jan 31 07:54:56 localhost collectd[5518]: perl: Initializing Perl interpreter...
Jan 31 07:54:56 localhost collectd[5518]: perl: init_pi: Unable to bootstrap Collectd: lock can only be used on shared values at /usr/share/perl/5.18/perl5db.pl line 4100.
Jan 31 07:54:56 localhost collectd[5518]: perl: Configuration failed with a fatal error - plugin disabled!

My Perl version
root@localhost:~# perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 55 registered patches, see perl -V for more detail)

My Top plugin config:

Globals true IncludeDir "/usr/local/share/perl/5.18.2/Collectd/Plugins" BaseName "Collectd::Plugins" EnableDebugger "" LoadPlugin "Top"
    <Plugin Top>

TopProcessesCountByMemory "4"

TopProcessesCountByCPU "5"

    </Plugin>

root@localhost:/etc/init.d# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

Could you check issue

Error sort: write failed: 'standard output': Broken pipe

I installed your plugin following the readme step by step. Collectd starts and other plugins are working as usual. Yours is not recording data and I see the following traces in the journal.

Ubuntu 18.04.3 LTS (GNU/Linux 3.16.78-48 aarch64)
Collectd 5.7.2
Perl 5.26.1

Jan 27 19:24:29 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:29 xxx collectd[19950]: sort: write error
Jan 27 19:24:29 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:29 xxx collectd[19950]: sort: write error

Jan 27 19:24:39 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:39 xxx collectd[19950]: sort: write error
Jan 27 19:24:39 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:39 xxx collectd[19950]: sort: write error

Jan 27 19:24:49 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:49 xxx collectd[19950]: sort: write error
Jan 27 19:24:59 xxx collectd[19950]: sort: write failed: 'standard output': Broken pipe
Jan 27 19:24:59 xxx collectd[19950]: sort: write error

Error on "perl Makefile.PL"

Please see the following errors:


$perl Makefile.PL
Checking if your kit is complete...
Warning: the following files are missing in your kit:
README
Please inform the author.
WARNING: Setting VERSION via file 'lib/Collectd/Plugins/Top.pm' failed
at /usr/share/perl/5.22/ExtUtils/MakeMaker.pm line 651.
WARNING: Setting ABSTRACT via file 'lib/Collectd/Plugins/Top.pm' failed
at /usr/share/perl/5.22/ExtUtils/MakeMaker.pm line 663.
Generating a Unix-style Makefile
Writing Makefile for Collectd::Plugins::Top
Writing MYMETA.yml and MYMETA.json

NOTE:
perl --version

This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 69 registered patches, see perl -V for more detail)

Make test failed

make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/.t
t/Collectd-Plugins-Top.t .. 1/1

Failed test 'use Collectd::Plugins::Top;'

at t/Collectd-Plugins-Top.t line 12.

Tried to use 'Collectd::Plugins::Top'.

Error: Bareword "LOG_ERR" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 165.

Bareword "TYPE_CONFIG" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_INIT" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_READ" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_WRITE" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_SHUTDOWN" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_LOG" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_NOTIF" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "TYPE_FLUSH" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 119.

Bareword "FC_MATCH" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 130.

Bareword "FC_TARGET" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 130.

Bareword "FC_MATCH" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 135.

Bareword "FC_TARGET" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 135.

Bareword "FC_CB_EXEC" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 140.

Bareword "FC_CB_CREATE" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 140.

Bareword "FC_CB_DESTROY" not allowed while "strict subs" in use at /usr/share/perl5/Collectd.pm line 140.

Compilation failed in require at /../../../collectd/top-plugin/collectd-top/blib/lib/Collectd/Plugins/Top.pm line 6.

BEGIN failed--compilation aborted at /../../../collectd/top-plugin/collectd-top/blib/lib/Collectd/Plugins/Top.pm line 6.

Compilation failed in require at t/Collectd-Plugins-Top.t line 12.

BEGIN failed--compilation aborted at t/Collectd-Plugins-Top.t line 12.

Looks like you failed 1 test of 1.

t/Collectd-Plugins-Top.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/Collectd-top.t .......... Array found where operator expected at t/Collectd-top.t line 12, at end of line
(Do you need to predeclare top?)
t/Collectd-top.t .......... 1/1

Failed test 'use Collectd-top;'

at t/Collectd-top.t line 12.

Tried to use 'Collectd-top'.

Error: syntax error at t/Collectd-top.t line 12, near "top @"

Looks like you failed 1 test of 1.

t/Collectd-top.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

Test Summary Report

t/Collectd-Plugins-Top.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/Collectd-top.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=2, Tests=2, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.03 cusr 0.00 csys = 0.06 CPU)
Result: FAIL
Failed 2/2 test programs. 2/2 subtests failed.
Makefile:805: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 1

segfault after executing 'service collectd stop'

Hi,

I am running Collectd-5.1.0 on CentOS 5.8 , perl v5.8.2.

commented line 'use 5.018002;' since I wanted to use the default version. Compiled and Installed the module successfully. No errors

Receiving 'segfault' in syslog after executing 'service collectd stop'. Collectd starts fine and loads the plugin, but stopping produces the error

collectd[3070]: segfault at 0000000000000000 rip 0000003faf078900 rsp 00007fff53ef02d8 error 4

.........................

Jun 20 17:01:40 CentOS5.8_VM collectd[15329]: perl: Initializing Perl interpreter...
Jun 20 17:01:40 CentOS5.8_VM collectd[15329]: TOP CONF - Inside foreach topprocessescountbymemory / 4
Jun 20 17:01:40 CentOS5.8_VM collectd[15329]: TOP CONF - Inside foreach topprocessescountbycpu / 5
Jun 20 17:01:40 CentOS5.8_VM collectd[15330]: Initialization complete, entering read-loop.
Jun 20 17:02:39 CentOS5.8_VM collectd[15330]: Exiting normally.
Jun 20 17:02:39 CentOS5.8_VM collectd[15330]: collectd: Stopping 5 read threads.
Jun 20 17:02:39 CentOS5.8_VM kernel: collectd[15330]: segfault at 0000000000000000 rip 00000032a2a79ba0 rsp 00007fffb424d4b8 error 4

Thanks
AjaY

Adding process name?

Is there any way to add the active running process name to this?

Thanks,
Siddharth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.