Bug 425804 - Command sources for sensors no longer working.
Summary: Command sources for sensors no longer working.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksysguard
Classification: Unmaintained
Component: ksysguard (show other bugs)
Version: 5.18.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-25 20:30 UTC by Judd Taylor
Modified: 2024-09-23 20:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Judd Taylor 2020-08-25 20:30:13 UTC
SUMMARY

I'm trying to implement some custom sensors for USB attached devices, but the examples floating around the internet no longer work. For instance, the simplified example perl sensor below will not run:

#!/usr/bin/perl -w

$! = 1;

print "ksysguardd 1.2.0\n";
print "ksysguardd> ";

while ( <> )
{
    if( /monitors/ )
    {
        print "random/speed\tinteger\n";
    }
    
    if( /speed/ )
    {
        if( /\?/ )
        {
            print "Random Speed\t0\t0\trpm\n";
        }
        else
        {
            my $val = int( rand()*100 );
            print  "$val\n";
        }   
    }
    
    print "ksysguardd> ";
}

1;


STEPS TO REPRODUCE
1. Save the above as a .pl file
2. On a new ksysguard tab, click file -> Monitor remote machine
3. Add in some name in host field (not necessarily a valid host name)
4. Select Custom command type
5. Enter the file from #1 as the command

OBSERVED RESULT

The host is shown in the sensor browser, but with a warning icon next to it and no sensor data. There is NO ERROR message indicating any failure. The process (random.pl) is running in the task manager, but doesn't seem to be executing anything.

EXPECTED RESULT

Custom sensor field available in sensor browser.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kubuntu 20.04 fully updated
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-09-23 20:59:51 UTC
ksysguard is no longer maintained, in Plasma 6 there is the Plasma system monitor for this task.

If your issue still happens with the Plasma 6 replacement, please re-open and we can move this bug to the new product, thanks!