Service Monitor
KDE Plasma 4 Extensions
Score 88%
Description:

Distribution-independent utility for monitoring/toggling background services (daemons).

Features: show current status of services; start/stop with a single click; placeable on desktop or in dock;
maximum flexibility through shell commands

Installation: plasmapkg -i service-monitor.zip

Submit bugs and feature requests on GitHub: https://github.com/mbleichner/service-monitor/issues

You are welcome to contribute to development, feel free to create a fork on GitHub!

New Features in v2.0:
- Password input dialog now included (no more dependency on external tools like kdesudo)
- Easier management of service definition files (incl. one-click update)
- Hide unavailable services
- Environment variables aren't needed any more ($INITDIR will be guessed, $SUDO has become superfluous)
- Ability to copy existing services as custom services
- Sudo configuration helper (creates snippets for inclusion in /etc/sudoers)
- Three different indicator icon themes
- Option to suppress stdout of start/stop commands
- Report external state changes through KNotify
- Service icons can be placed directly in the panel (without popup)

Freol

7 years ago

To install package:
plasmapkg -i service-monitor.zip

To remove:
To install package:
plasmapkg -r service-monitor

PS Any build in services didn't work.

Report

C

mbleichner

7 years ago

what do you mean by "any build in services didnt work"?

Report

Freol

7 years ago

Daemons mysql, apache2, cups started, but they statuses are "red minuses" in plasmoid. Any react while click on this "red minus".

Report

C

mbleichner

7 years ago

Which distro do you use? Maybe the commands have to be adjusted for your system.

You can try to make these daemons work as custom services and submit them to me via the "share" button.

Report

Freol

7 years ago

Kubuntu 10.04
I'll try to make these daemons work as custom services.

Report

C

mbleichner

7 years ago

there seems to be no edit function... O_o

I just noticed: kdesudo is not installed by standard anymore, so that's what may be missing. It is called to temporarily give the user root rights.

Make sure it is installed and configure the /etc/suduers file, i.e. add a line
<user> ALL=(ALL) ALL
to allow <user> to run every root command with his own user password.

Report

Freol

7 years ago

kdesudo works right

Report

C

mbleichner

7 years ago

Maybe this will help you debugging: have a look at
~/.kde/share/apps/plasma/plasmoids/service-monitor/contents/sources
There you find the service definiton files. They contain the shell commands to be executed. Try them on the console to find out which doesn't work correctly.

Report

C

mbleichner

7 years ago

Sorry, this seems to be an error caused by me - in the case of cron and mysql, I mistyped a word in the definition file (I accidentally mixed up the ending "d" in cron and mysqld). And cron outputs another status message since the last upgrade, so the running check didn't work anymore. I have corrected it in the current version. You can also download the new XML file from my website using the "search for new sources" button in Service Monitor and then import it using the "add XML source file" button.

Report

Freol

7 years ago

now it works. Thanks

PS in kubuntu there is no /etc/init.d/mysqld. There is /usr/sbin/mysqld. (in Debian there is first one...)

Report

C

mbleichner

7 years ago

Thanks. I have the suspicion that i have to assemble different xml files for every distribution >.<

If you have set up mysql as working custom service, would you please upload it so I can include it? (use the "share with others" button) That would be very helpful :)

Report

rdonato

6 years ago

look at my recent post I fixed mysqld issue under kde

Report

janet

7 years ago

plasmapkg -i service-monitor.zip does not install the widget:

$ plasmapkg -i service-monitor-latest.zip
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\â"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 3: " "Invalid escape sequence "\ç"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\â"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 3: " "Invalid escape sequence "\ç"."
plasmapkg(5272)/libplasma Plasma::Package::installPackage: Package plugin name not specified
Installation fehlgeschlagen: /home/me/Desktop/service-monitor-latest.zip

Report

Freol

7 years ago

There is KDE bug. Solution is:
unzip service-monitor-latest.zip
plasmapkg -i service-monitor-latest

More info here: https://bbs.archlinux.org/viewtopic.php?id=104060

Report

janet

7 years ago

Thanks :)

It does work fine on aptosid, but on my Kubuntu Lucid desktop the services widget is only displayed with the widget's icon. What might be wrong there?

Report

C

mbleichner

7 years ago

try running it with plasmoidviewer and look for error messages.

Report

janet

7 years ago

It is displayed fine in the plasmoidviewer. The console output is:

$ plasmoidviewer service-monitor
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/me/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
plasmoidviewer(2935)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "" not found
looking for XML source files and trying to load them...
successfully parsed daemons-common.xml (16 services).
successfully parsed tools-settings.xml (5 services).
successfully parsed less-common.xml (4 services).
successfully parsed custom.xml (1 services).

What's ibus?

Report

C

mbleichner

7 years ago

http://wiki.debian.org/I18n/ibus

Probably unrelated to your problem.

I was hoping to see any error messages from my plasmoid, but everything seems to be fine.

About your problem: do you place the plasmoid in the dock or on desktop? And can you describe your problem a little more detailed?

Report

janet

7 years ago

More detailed? Hmm. I drag the plasmoid from the plasmoid manager onto the destkop and all I get on the desktop is the gear icon of the plasmoid (with that green dot in the center). I can open the configuration dialog but whatever I do, I don't get any other view of the plasmoid. No list window, not even empty. Just that icon, no services. In plasmoidviewer I get the list with the services.

When I do the same in aptosid = drag the widget to the desktop, I instantly get the list window. Empty until I configure it, filled after configuration. I never have seen the icon on the desktop in aptosid. Both systems use the plasma desktop, not the folderview.

Report

C

mbleichner

7 years ago

Hm okay, seems to me like plasma cannot decide the formfactor correctly for the plasmoid. Try the following:

Go to ~/.kde/share/apps/plasma/plasmoids/service-monitor/contents/code and open ServiceMonitor.py

Line 40 should read like this:

self.setupAppletUi() if self.formFactor() == Plasma.Planar else self.setupPopupUi()

Change it to:

self.setupAppletUi()

You cannot place the plasmoid into dock anymore, but at least it should display correctly on desktop.

Report

janet

7 years ago

Thanks. that works.

Report

Freol

7 years ago

Please add __init__.py files to root and UI paths.

Report

product-maker Smokematic Nov 07 2012

product-maker Phrosztbyte Sep 30 2012

product-maker fernandosavio May 09 2012

product-maker jrjohnstone Apr 05 2012

product-maker nowsy Mar 12 2012

product-maker uomonero Feb 03 2012

product-maker s1300045 Jan 15 2012

product-maker AndreyL Jan 15 2012

product-maker Mossad Dec 02 2011

product-maker hgmtnd Nov 10 2011

product-maker losty Nov 02 2011

product-maker vitoubien Nov 02 2011

product-maker jackhunter2 Oct 09 2011

product-maker redneck666 Oct 03 2011

product-maker tamra Aug 22 2011

product-maker DarthMedicus Aug 11 2011

product-maker bill1950 Jul 29 2011

product-maker vitex Jun 23 2011

product-maker ivan2k May 17 2011

product-maker caidoberco May 07 2011

product-maker Brutus180 May 04 2011

product-maker Rickfer May 03 2011

product-maker RyanMcCoskrie Apr 18 2011

product-maker JanGerritJose Mar 29 2011

product-maker Thero Mar 28 2011

product-maker asteorid Mar 03 2011

product-maker Viras Jan 14 2011

product-maker gravy Oct 21 2010

product-maker Freol Sep 25 2010

product-maker janet Sep 25 2010

product-maker Desdenova88 Sep 24 2010

product-maker deabru Sep 23 2010

product-maker 10 83

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
2.0
updated Nov 01 2011
added May 23 2010
downloads today
0
page views today 4