Server Status Widget

Plasma 4 Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

29
Become a Fan
8.2

Description:
The Server Status Widget is a Plasma widget (a.k.a. applet or Plasmoid) for your KDE desktop.

This widget/applet/plasmoid lets you monitor one or more servers via pings, TCP connects or custom unix commands in a configurable interval. The icon changes if a server does not respond to a check, optionally triggering configurable KDE notifications.

Feedback is always welcome, best way is through KDE-Look, but you can also mail me (see the README). Let me know if you find any bugs.

Per server notifications
Finally, the widget has per server notifications. This means you should be able to use notifications as a means to do selective logging, execute certain scripts for special servers and many more.

Panel support
The widget can now sit in the panel as icon and shows the servers on click. The icon used in the panel signals the worst status of any of the servers (see screenshot 3).

Also, I am still looking for translators. Just sayin'
Please consult the wiki (linked below) if you can help me with that...


Gentoo users:
The ebuild is now in portage (unstable)!
http://packages.gentoo.org/package/kde-misc/serverstatuswidget
Until it is up to date, there is an ebuild below...

Archlinux users:
There is a PKGBUILD in the AUR now (1.5.1):
http://aur.archlinux.org/packages.php?ID=47270

Fedora users:
There are packages available in the PhobOS repository. Per Authors request I am not directly linking the packages so you can read the disclaimer first.
http://phobos.floriansievert.de/package.php?release=F14&package=kde-plasma-serverstatus

OpenSUSE users:
You can find up-to-date packages in the official package database, make sure to pick a package matching your distro version:
http://software.opensuse.org/search?q=serverstatus&exclude_debug=true

Compilation instructions are included in the tarball and in the INSTALL file linked below. If you know how to build packages for your favorite distro, let me know and I will put them up here.

Have fun, conrausch.
Feedback welcome


GITORIOUS PROJECT:
http://gitorious.org/serverstatuswidget

README:
http://gitorious.org/serverstatuswidget/pages/Readme

INSTALL:
http://gitorious.org/serverstatuswidget/pages/Installation

WIKI:
http://gitorious.org/serverstatuswidget/pages/Home
Last changelog:

1.5.1
- Update french translation (thanks bruno666)
- Add compatibility for for KDE 4.4 and below

1.5
- Per server notifications
- Panel support (collapse to icon)
- French translation (thanks bruno666)


Ratings & Comments

73 Comments

maxxsc

9 Hi! Any chance of a version that works in Plasma6? I used the widget on Plasma5 but now it doesn't work. Thank you!

kdeguru1000

This applet stopped working with KDE upgrade to Plasma 5. Are there any plans to add support? If not what are the workarounds/alternative solutions? Thank you!

ab4bd

Any chance of a version that works in Plasma5? Thanks

koko2k

Great plasmoid, i'm using it on a workstation at work to check other server status. What i think would be useful is to have the date/hour of the event up/down in the notifications. Could it be possible to add that feature? thanks!

GeBu

Hi, the program is amazing. Thanks. Can you add IPv6 support (PING)?

gnumdk

When a server fail and then go back ok, popup still show "one server down"

ab4bd

If you uncheck the active check box in the server configuration it does not remove it from the displayed list and appears to continue checking the server and indicating it's status.

gnumdk

Since KDE 4.7.2, it make plasma-desktop segfault... in fact, plasma keep running but i've got a segfault warning per server: KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Attempting to start /usr/bin/plasma-desktop from kdeinit KCrash: Application 'plasma-desktop' crashing..

conrausch

I have no problems in 4.7.4. Maybe you need to recompile and reinstall? What checks are you using?

ab4bd

Would be dandy to be able to click on the red X shield in the list and have it quickly recheck to see if it was just a brief outage.

PVince81

I agree with this. Clicking on the applet should refresh all servers and clicking on a single server's should refresh only that one.

kudlaty

Thanks for adding panel support, this makes this great plasmoid even more useful to me. And it was already pretty useful before. :)

mattdeb

Hi, I'm trying to install your widget on Debian Wheezy amd64, but im getting some errors when executing make. Cmake without any errors. Could you please have a look at this? Quote:

matt@deblap:~/Downloads/serverstatuswidget-1.5/build$ make Scanning dependencies of target plasma_applet_serverstatus_automoc Generating socketcheck.moc Generating serverstatusconfig.moc Generating check.moc Generating serverstatusapplet.moc Generating pingcheck.moc Generating commandcheck.moc Generating moc_server.cpp Generating moc_servericon.cpp [ 0%] Built target plasma_applet_serverstatus_automoc [ 5%] Generating ui_commandchecksettings.h [ 11%] Generating ui_generalsettings.h [ 17%] Generating ui_appearancesettings.h [ 23%] Generating ui_notificationsettings.h [ 29%] Generating ui_serversettings.h [ 35%] Generating ui_pingchecksettings.h [ 41%] Generating ui_socketchecksettings.h Scanning dependencies of target plasma_applet_serverstatus [ 47%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/plasma_applet_serverstatus_automoc.o [ 52%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/serverstatus.o [ 58%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/check.o [ 64%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/server.o [ 70%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/servericon.o [ 76%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/pingcheck.o [ 82%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/socketcheck.o [ 88%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/commandcheck.o [ 94%] Building CXX object src/CMakeFiles/plasma_applet_serverstatus.dir/serverstatusapplet.o /home/matt/Downloads/serverstatuswidget-1.5/src/serverstatusapplet.cpp: In member function ‘void ServerStatus::Applet::rebuildLayout()’: /home/matt/Downloads/serverstatuswidget-1.5/src/serverstatusapplet.cpp:175: error: ‘class ServerStatus::ServerIcon’ has no member named ‘setMinimumIconSize’ /home/matt/Downloads/serverstatuswidget-1.5/src/serverstatusapplet.cpp:203: error: ‘class ServerStatus::ServerIcon’ has no member named ‘setMinimumIconSize’ make[2]: *** [src/CMakeFiles/plasma_applet_serverstatus.dir/serverstatusapplet.o] Błąd 1 make[1]: *** [src/CMakeFiles/plasma_applet_serverstatus.dir/all] Błąd 2 make: *** [all] Błąd 2 matt@deblap:~/Downloads/serverstatuswidget-1.5/build$
"Błąd" means "Error" in Polish ;) Thanks in advance matt

conrausch

Mmh, strange. Can you tell me what version of Qt and KDE you are using?

gianogli

I think that he's using a version of KDE < 4.5 :-) http://api.kde.org/4.4-api/kdelibs-apidocs/plasma/html/classPlasma_1_1IconWidget.html http://api.kde.org/4.5-api/kdelibs-apidocs/plasma/html/classPlasma_1_1IconWidget.html

mattdeb

Hi, Yes, Gianogli is right. I'm using KDE 4.4.5-2 and Qt 4.6.3, both installed from Debian Wheezy repos. matt

conrausch

Hey, I uploaded a new version that should compile on KDE 4.4 and below. The layout engine might misbehave in some situations when resizing the widget, but since that should not happen very often, you will most likely be content the way it is :)

mattdeb

Hi, It's working great now. Whole compilation went without any errors. Many thanks for a quick response and this great addon ;) matt

terwarf

First, I really love this applet. It's really nice to have the status of differnt services right on the desk... Wish: Let the user define an action when he clicks the name or shield of an server: open the url in default browser or run a custom command (e.g. xterm -e ssh somedomain.com, maybe add something like %u in the custom command field to take the servers url). Problem: The command option don't work for me - even if i write a script with only "exit 1" in it, the sign will stay green :( - wondering now if it's just me (and my crude system ;)) or if that's a real bug... (Using 1.4 compiled by myself on openSuSE with kde-unstable)

terwarf

Sorry - I got it - don't use "~", use full path *head -> table*... Maybe it would be nice to do a check and give a warning, if the file can't be found. And maybe add a file select dialog, since imho most people will use scripts located somewhere in their home dir. Thanks for your great work!

terwarf

Sorry - I got it - don't use "~", use full path *head -> table*... Maybe it would be nice to do a check and give a warning, if the file can't be found. And maybe add a file select dialog, since imho most people will use scripts located somewhere in their home dir. Thanks for your great work!

conrausch

Done :) I think it mainly needs more documentation, which is my next task. Thanks for the suggestion!

terwarf

Thanks a lot, very nice work. Now i'm just waiting for user defined actions on click at a servers name ;) Keep up your great work and thank you again for this great plasmoid. (It even does a great job in monitoring svn repos for new commits, just to give an idea of additional use...)

gianogli

This plasmoid for me is very useful but I have some ideas for you to improve its usability. :-) 1) "Per server notifications": one of my biggest problems is that is not possible to execute a different shell script (or notification) for every monitored server (when it go up or down...). Could you implement this feature? 2) "Logging feature": the workstation in my office (where I have installed this plasmoid) is up 24/7. When I go to my office in the morning I can see the plasmoid (and all the shields always green!) but I can't understand for instance if in the night one of the monitored server is gone down for some minutes and then up again. Could you add the possibility of log all the event (when and what a server is gone down and/or up) in a txt file or into the plasmoid with a text widget? 3) "Endless ping": now I can test if a server is up only every N seconds for M pings. What do you think to implement a test with an endless ping (with -i ping option variable)? In this case a server would be down when it doesn't respond at almost M consecutive pings and it would be up when respond at almost N consecutive pings. 4) "Plasmoid in the KDE bar": when there are a lot of servers is not possible to use this plasmoide in the KDE bar but only on the desktop. If on my desktop I have open only a full screen window (and I've disabled the notification) I can't see if a server is gone down. I think that the better thing to do is to implement a small plasmoid with only a little shield. We could put it in the KDE bar and when we see a red shield we could click on it with the mouse to see the report of what appen or the status of all the servers or other info... What do you think about my 4 ideas? You could implement it? Thanks for your cooperation! :-) Bye bye...

conrausch

That are some good ideas, thank you. Especially logging should be easy to implement. Number four has been mentioned before, so I will look into that to, and per server notifications is on the stack anyways. I don't get number 3 though. What's the difference between the two? And also, ping -i never returns, so you can't check the return value, which is what I currently do. Maybe you can elaborate? Anyways, thanks for the feedback and stay tuned for future releases :)

Pling
0 Affiliates
Details
license
version 1.5.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 13 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0