-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (17) .- Knowledge Base  . 

Service Monitor

   2.0  

Plasmoid Script

Score 90%
Service Monitor
zoom


Service Monitor
zoom


Service Monitor
zoom


Blog:  Link
Minimum required   KDE 4.x
Downloads:  1760
Submitted:  May 24 2010
Updated:  Nov 2 2011

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)




LicenseGPL
(v2.0 - latest release)
(v1.2 - old stable release)
(v1.1 - very old stable release)
Donate
Send to a friend
Subscribe
Other  Apps  from mbleichner
Report inappropriate content



goto page:  1  2  3 

-

 __init__.py

 
 by Freol on: May 24 2010
 
Score 50%

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


Reply to this

-
.

 HOWTO

 
 by Freol on: May 24 2010
 
Score 50%

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.


Reply to this

-

 Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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


Reply to this

-

 Re: Re: HOWTO

 
 by Freol on: May 24 2010
 
Score 50%

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


Reply to this

-

 Re: Re: Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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.


Reply to this

-

 Re: Re: Re: Re: HOWTO

 
 by Freol on: May 24 2010
 
Score 50%

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


Reply to this

-

 Re: Re: Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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.


Reply to this

-

 Re: Re: Re: Re: HOWTO

 
 by Freol on: May 24 2010
 
Score 50%

kdesudo works right


Reply to this

-

 Re: Re: Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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.


Reply to this

-

 Re: Re: Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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.


Reply to this

-
.

 Re: Re: Re: Re: HOWTO

 
 by Freol on: May 24 2010
 
Score 50%

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...)


Reply to this

-

 Re: Re: Re: Re: Re: HOWTO

 
 by mbleichner on: May 24 2010
 
Score 50%

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 :)


Reply to this

-
.

 Re: Re: Re: Re: Re: HOWTO

 
 by rdonato on: Oct 18 2011
 
Score 50%

look at my recent post I fixed mysqld issue under kde


Reply to this

-
.

 Re: HOWTO

 
 by janet on: Sep 25 2010
 
Score 50%

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


Reply to this

-

 Re: Re: HOWTO

 
 by Freol on: Sep 25 2010
 
Score 50%

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


Reply to this

-
.

 Re: Re: Re: HOWTO

 
 by janet on: Sep 26 2010
 
Score 50%

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?


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: Re: Re: Re: HOWTO

 
 by mbleichner on: Sep 27 2010
 
Score 50%

try running it with plasmoidviewer and look for error messages.


Reply to this

-

 Re: Re: Re: Re: Re: HOWTO

 
 by janet on: Sep 27 2010
 
Score 50%

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?


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: Re: Re: Re: Re: Re: HOWTO

 
 by mbleichner on: Sep 27 2010
 
Score 50%

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?



-

 Re: Re: Re: Re: Re: Re: HOWTO

 
 by janet on: Sep 27 2010
 
Score 50%

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.


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)

-

 Re: Re: Re: Re: Re: Re: HOWTO

 
 by mbleichner on: Sep 28 2010
 
Score 50%

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.



-

 Re: Re: Re: Re: Re: Re: HOWTO

 
 by janet on: Sep 29 2010
 
Score 50%

Thanks. that works.


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)

-

 Very nice

 
 by Ireyon on: Jun 12 2010
 
Score 50%

yes, it is.


Reply to this

-
.

 question

 
 by mononoke on: Jul 24 2010
 
Score 50%

hi,
i like that plasmoid!

When i look at the configuration window,
i see some services are shown "not available". Maybe because the services are named diffrent on my opensuse (11.2)
Actually the service "ssh" is called "sshd" in "/etc/init.d/".

Something strange is with "samba". The Service is actually named "smb", but the deamon is named smbd.

Anyway, the plasmoid is showing the correct state, when i add the services to active monitoring box in the configuration dialog.

How is this possible, i mean, the plasmoid is showing the correct state ?


Reply to this

-

 Re: question

 
 by mbleichner on: Jul 25 2010
 
Score 50%

Look at the running-check command: "pidof smbd"
It looks if there is a process running with the name "smbd" - and this seems to be distro-independent.
The start/stop commands will probably not work for you since the init-script has a different name.
To fix this, you can create a custom service with the correct start/stop commands for opensuse or edit the xml source file before you include it.

I'll try to find a nice solution for such problems in the next version. If you have any ideas how this can be done, please tell me :)


Reply to this

-

 Re: Re: question

 
 by mononoke on: Jul 25 2010
 
Score 50%

thanks,
i manually edit the xml file ~/.kde4/share/apps/plasma/plasmoids/service-monitor/contents/sources/daemons.xml

if i get it right, people can share single service definitions. Wouldn't it be better, if people share a set of services belonging to there distribution and version (opensuse 11.3,SuSE 10.3,Ubuntu 9.04).
it would be nice to easily edit the services/daemons inside the configuration dialog, if a service name is not matching the real one.


Reply to this

-

 Re: Re: Re: question

 
 by mbleichner on: Jul 25 2010
 
Score 50%

Yeah, you are right. I'll think about including this in the next version.


Reply to this

-
.

 without kdesudo?

 
 by janet on: Sep 25 2010
 
Score 50%

Does it work without kdesudo? I don't want to use sudo in any way and don't mind to enter the root password for changing the state of a service.


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: without kdesudo?

 
 by mbleichner on: Sep 27 2010
 
Score 50%

I don't quite get what you want... Do you want to be prompted for the root password by the widget directly instead of kdesudo?
Or do you simply want to change kdesudo to gksudo or something? (see environment vars in config)


Reply to this

-

 Re: Re: without kdesudo?

 
 by janet on: Sep 27 2010
 
Score 50%

I don't want to use any sudo (kde or g), I want to be prompted for the root password.


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 27 2010
 
Score 50%

If you know some tool which takes a bash command, prompts for the root password and then executes the command with root privileges, you can enter its name into the SUDO environment variable.

Unfortunately I don't know of any such tool, but it should not be too hard to write one yourself.


Reply to this

-

 Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 27 2010
 
Score 50%

EDIT: gksu (not gksudo) provides this functionality. It asks for the root password, not the user pw.


Reply to this

-

 Re: Re: Re: Re: without kdesudo?

 
 by janet on: Sep 27 2010
 
Score 50%

Thanks. I now use it with kdesu on aptosid (sudo only on Kubuntu). It didn't work before because I hadn't entered the whole path. With "/usr/lib/kde4/libexec/kdesu" as SUDO variable it prompts for the root password. But I get error messages.


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: Re: Re: Re: without kdesudo?

 
 by janet on: Sep 27 2010
 
Score 50%

This is the output when I try to disable bluetooth:

The command produced the following error:
kdesu(11885)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ ../../kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(11885)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ ../../kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(11885)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ ../../kdesu/process.cpp : 381 ] Child pid 12780
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line ""
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line "kdesu_stub"
kdesu(11885)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ ../../kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(11885)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ ../../kdesu/process.cpp : 381 ] Child pid 12869
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line ""
kdesu(11885)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ ../../kdesu/su.cpp : 259 ] Read line "kdesu_stub"

But after confirming that box the button for the bluetooth service turns red.


Want Debian Sid with spices? Get AptoSid at aptosid.com - it simply works :)
Reply to this

-

 Re: Re: Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 27 2010
 
Score 50%

Same errors here. It seems to be a bug in kdesu, since it fails even when called from the console.


Reply to this

-

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by janet on: Sep 27 2010
 
Score 50%

So - is the service now turned off, or does it just pretend to be off?


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)

-

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 28 2010
 
Score 50%

When the light is red, the service is definitely off (running check fails).



-

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 28 2010
 
Score 50%

The error messages pops up because kdesu prints its debug output to stderr, which makes service monitor think something has gone wrong. Here is a little workaround: create the following script:

#!/usr/bin/python
import sys, os
os.system('/usr/lib/kde4/libexec/kdesu %s 2> /dev/null' % ' '.join(sys.argv[1:]))

Make it executable and use it instead of /usr/lib/kde4/libexec/kdesu.



-

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by janet on: Sep 29 2010
 
Score 50%

The command produced the following error:
/home/me/bin/ksu: row 3: Syntaxerror for unexpected word `'/usr/lib/kde4/libexec/kdesu %s 2> /dev/null''
/home/me/bin/ksu: row 3: ` os.system('/usr/lib/kde4/libexec/kdesu %s 2> /dev/null' % ' '.join(sys.argv[1:]))'

I did a copy & paste...


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)

-

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by mbleichner on: Sep 29 2010
 
Score 50%

Maybe you forgot to copy the shebang line?



-
.

 Re: Re: Re: Re: Re: Re: without kdesudo?

 
 by janet on: Sep 29 2010
 
Score 50%

Thanks, yes, something like that. I had a comment before the shebang line and have not seen it.

Works. Me happy :)


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)

-

 cannot add custom service

 
 by janet on: Sep 29 2010
 
Score 50%

I cannot add any custom service, the Add button doesn't seem to do anything. I only can edit the Demo Service, so having more than one custom service isn't possible.

I wanted to add 2: mt-daapd and virtualbox(-ose). The virtualbox entry from Less common services does not work for me (there is no /etc/vbox - is the installation check needed?).


Want Debian Sid with spices? Get aptosid at aptosid.com - it simply works :)
Reply to this

-
.

 Re: cannot add custom service

 
 by mbleichner on: Sep 29 2010
 
Score 50%

That was indeed a serious bug you discovered. I corrected it. Reinstall the plasmoid, then it should work.

Thanks.


Reply to this

goto page:  1  2  3 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.