Personal tools
You are here: Home Scripts and Automation ldms_status (obsolete)

ldms_status (obsolete)

by jack — last modified 2008-11-10 09:29

Monitor and restart core services

UPDATE: This code is left here for posterity's sake; I don't recommend it for production any more, as its functionality has moved into the much more useful ldms_core.



While it is relatively rare to have most core services die, it can happen, and it doesn't always happen when you're around to notice there's a problem and fix it. This application checks all core LANDesk services (except Service Desk) and restarts them if they're dead. All activity is logged to the Event Viewer, and you can chose between running once or running perpetually.

Download the latest version here: ldms_status.zip and read the manual here. There might be useful stuff in the blog posts.

If you want to prevent a service that you don't use being monitored, change its startup type to Manual. In particular, I'm thinking of LDGSB, the LANDesk Management Gateway service, which is only necessary when you're using a gateway. UPDATE: to make things a bit easier on shops that haven't implemented a gateway yet, I've made that service check optional; it's activated via a checkbox on the menu or a command-line switch and it's off by default.

ldms_status_screenshot

 

CHANGELOG
----------
2.3 -- Minor bugfixes in preparation for merging it into ldms_core.
2.2 -- PDK 7.3, detect presence of ldms_core and offer it in menu.
2.1 -- Fixed a bug in the attempt to kick a hung inventory service.
2.0 -- Another bug in service stopping, check website for latest version.
1.9.7- Improved responsiveness
1.9.6- Fixed some service stopping bugs, 8.8 compatibility.
1.9.5- Added debug mode for extra logging.
1.9.4- Use balloon tips instead of messageboxes, more predictable.
1.9.3- Restart inventory service if more than 200 scans are in queue.
1.9.2- Fixed "not a core" detection, typo.
1.9.1- Changed grey "ok" icon to green.
1.9 -- Handle services that won't stop properly.
1.8 -- Stop a scan count if 200 is reached and display a warning message.
1.7 -- Added pending xdd discoveries, pending scheduled task transfers
1.6 -- Finished removing sleep() calls, added a pending scan count tooltip.
1.5 -- Added the ability to stop all services -- handy for upgrades!
1.4 -- Fixed the UI hangs
1.3 -- Size and speed improvements
1.2 -- LDGSB check is optional, minor code rearranging
1.1 -- Systray-based UI
1.0 -- just service monitoring and restarting, event logging, not much UI

Server Says:
"In this replacement Earth we're building they've given me Africa
to do and of course I'm doing it with all fjords again because I happen to
like them, and I'm old-fashioned enough to think that they give a lovely
baroque feel to a continent. And they tell me it's not equatorial enough.
Equatorial!" He gave a hollow laugh. "What does it matter? Science has
achieved some wonderful things, of course, but I'd far rather be happy than
right any day."
"And are you?"
"No. That's where it all falls down, of course."
"Pity," said Arthur with sympathy. "It sounded like quite a good
life-style otherwise."
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Safety First!
238 Days without a Dumpster fire.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: