OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – 0.0.0.1

Download:

Download “CoretechCoffeeMonitor-MP-0.0.0.1” coretechcoffeemonitor-mp-0001.rar – Downloaded 1441 times – 18 MB

The file has included test examples and vlc player. The Management Pack is 32Kb

Intro:

This management packs can be used to keep track of the level of coffee in left in the pot.

With this management pack, you will never run dry of, what we all know, is the most important part of a productive environment!

This is mostly made as a proof of concept, as this technique can be transferred to other monitor types. It could be expanded with other types of sensors, like a weight to check the level of coffee instead of a camera, or a thermometer to check the temperature of the coffee.

This is the very first version. It has been tested in test environments.

By default, it will trigger a warning when under 50% is left, and a Critical Alert when under 20% is left.

Please do not hesitate to report any bugs and please send suggestions for the next version you might have.

This was developed by Jakob Gottlieb Svendsen with the help of Kåre Rude Andersen

Requirements

Microsoft System Center Operations Manager 2007 R2

Microsoft .Net Framework 3.5 SP1

A network connected camera

Coffee machine with clear-glass pot and free view to all of the pot, see an example in the video.

The management pack is based upon Microsoft .Net Framework 3.5 SP1. This is required to be installed before the executables can run.

The Monitor requires a Camera to take snapshots of the Coffee pot, and the Monitor application uses the snapshot to count how much coffee is left.

The camera and coffee machine has to be placed correctly and a number of requirements have to be fulfilled. These requirements could become obese if one would spend time at modifying a Coffee Machine to include a web camera.

  1. Coffee pot have to be in clear glass.
  2. The whole of the coffee pot has to be visible from one side from the camera.
  3. The background behind the machine/pot has to be white, or similar very light color. This have only been tested with white background.
  4. Camera have to be level with the coffee pot, and point towards the pot in a 0 degrees horizontal angle. Otherwise the level of coffee could be inconsistent.
  5. The light in the room have to be turned on a all times, while the monitor is scheduled to run, and must not point directly at the pot, since the glass, with black coffee behind, can act as a mirror, making it impossible for the camera to see the coffee level. A Camera with Polaroid lense, or polaroid filter i front of, should in teory overcome this problem, making the measurement much more stable.
  6. The camera have to place a snapshot JPG,PNG or BMP at a specified location once every minute or so, depending on how you setup the monitor. Alternatively, if the camera has a .asf stream, we have included our test setup, that utilizes VLC player to grab a snapshot of the ASF stream every time the monitor script is run (Extra\Debug-version-with-VLC-Snapshot Folder).

Install:

1. Extract all files to a folder on the server drive (C:\CCM etc.)
2. Import the Management Pack “CoretechCoffeeMonitor.xml” into OpsMgr.
3. Setup Coffee Machine and Camera
4. Use CCM-Config.exe to configure maximum and minimum amount of coffee as well as the black thersholm. See the video for more details.
5. Schedule your camera to put a new image in a specific location every minute (default is c:\CCM\snap.png).Pictures can be JPG, BMP or PNG
5. Setup the image file location in the script parameters in the unit monitor called “Coretech Coffee Monitor”
6. System is now ready!

Configuration:

You should use CCM-Config.exe to create a config.xml file. See Video for more details.

This file have to be placed in the same directory as the executables (etc. C:\CCM)

The path for the image file have to be setup in the Script parameters in the Unit Monitor called “Coretech Coffee Monitor”

Files:

CoretechCoffeeMonitor.exe Main executable, this is used by the management pack to count the number of black pixels in the snapshots
CCM-config.exe Configuration application, is used to create the nessesary config.xml file.
config.xml This have to be placed in the same folder as the executables for the system to work. Is generated by CCM-Config.exe
CoretechCoffeeMonitor.xml Main Management Pack XML file.

Management Pack Content:


That should be it for now!

Please bring your feedback 🙂

By | 2009-10-21T11:59:42+00:00 October 21st, 2009|Operations Manager (SCOM)|45 Comments

About the Author:

Jakob Gottlieb Svendsen

Twitter: @JakobGSvendsen

Jakob Gottlieb Svendsen is a Microsoft Cloud and Data Center Management MVP (http://mvp.microsoft.com/en-us/default.aspx), Working as Global Lead Developer, Senior Consultant and Trainer at CTGlobal, where he is one of the driving forces in keeping CTGlobal a System Center Gold Partner and member of the System Center Alliance.

Since he started at Coretech in 2007, he has focused on Scripting and Development, primarily developing tools, extensions and scripts for the System Center Suite. His main area is Automation (including OMS/Azure Automation, Service Management Automation, PowerShell and Orchestrator). Another area is Windows Azure Pack / Azure Stack, where he does implementation, development, workshops and presentations. He is a world-wide renowned voice in the Automation field.

He is passionately devoted to the community, to which he contributes by being a moderator at TechNet and sharing his knowledge at http://blog.ctglobalservices.com/jgs

  • Co-founder: PowerShell User Group Denmark
  • Speaker at MMS 2016, Minneapolis (www.mmsmoa.com)
  • SCU Europe 2014, 2015, 2016 (www.systemcenteruniverse.ch)
  • Microsoft TechEd North America 2014, Houston
  • NIC 2012,2013,2014,2015, Oslo (www.nic.com)
  • Microsoft CampusDays 2011, 2013, Copenhagen
  • Microsoft TechDays 2015, Sweden (www.techdays.se)
  • Microsoft Partner Event: New in SC2012 SP1
  • User group meetings (PSUG.DK , SCUG.DK/BE/NO, AZMUG + more)
  • Microsoft Certified Trainer.
  • Microsoft Scripting Guys Forum Moderator

Main working areas:

  • Automation (Azure Automation, SMA, SCO)
  • Windows Azure Pack / Azure Stack
  • System CenterVisual Studio Team Services / Team Foundation Server
  • Development:C#.Net, VB.NET, VBScript, PowerShell, Service Manager, OpsMgr, ConfigMgr
  • Orchestrator
  • Windows Azure Pack / Azure Stack

Training:

  • Azure Automation
  • Service Management Automation
  • System Center Orchestrator
  • PowerShell, VBScript, C#.Net, VB.Net
  • Windows Azure Pack / Azure Stack Development Workshops

45 Comments

  1. Henrik Nesager October 22, 2009 at 10:34 - Reply

    Brilliant !
    And you could maybe improve the accuracy by using a pot with white handles and cap (paint them…).
    Could you expand/use same technology for monitoring the amount of people in the cantina ???

    Nice work – keep it up !

  2. Jakob Gottlieb Svendsen
    Jakob Gottlieb Svendsen October 22, 2009 at 10:57 - Reply

    Hello Henrik

    Thanks for the feedback!

    Actually the handle and cap is included in the calibration, therefore there should not be any difference. Only the black plastic inside the coffee pot, in our setup, will make a difference 🙂

    And i guess you could expand it to work in the cantina, alltough you might have to tell all people to put dark, or a specific color clothes on 😉

    – Jakob

  3. […] This post was mentioned on Twitter by Florin Matincă, Kenneth van Surksum. Kenneth van Surksum said: OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – 0.0.0.1: http://bit.ly/4ni07E Brilliant 🙂 […]

  4. […] OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – 0.0.0.1 | Coretech Blog Filed under: System Center, OpsMgr 2007, Management Packs […]

  5. […] http://blog.coretech.dk/opsmgr07/opsmgr-2007-r2-scom-coretech-coffee-monitor-management-pack-0001/ Published Oct 22 2009, 07:29 AM by Garth Filed under: MOM, OpsMgr […]

  6. […] you have left. All you need a network-connected camera, and you’re good to go. See a full demo here. Only published comments… Oct 22 2009, 12:16 PM by Aubrey Filed under: Migration, SCOM 2007 […]

  7. […] Svendsen over at CoreTech released a management pack today. That management pack will alert you when the coffee in your coffee pot gets low. I’ll go […]

  8. […] Go here to read the rest: OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack … […]

  9. Polprav October 23, 2009 at 7:23 - Reply

    Hello from Russia!
    Can I quote a post in your blog with the link to you?

  10. Jakob Gottlieb Svendsen
    Jakob Gottlieb Svendsen October 23, 2009 at 9:34 - Reply

    Polprav:

    Yes, sure you can 😀

  11. Rikard Ronnkvist October 23, 2009 at 11:55 - Reply

    Finally someone doing something cool with OpsMgr that I can use at home… 🙂

  12. Flemming Riis October 25, 2009 at 0:24 - Reply

    i er for seje

    manuel trackback http://it-experts.dk/blogs/flemmingriis/archive/2009/10/25/coretech-er-for-seje-check-denne-mp.aspx

    usecase kig efter røde lamper i er server rum for defekt diske 🙂

  13. Doctib October 27, 2009 at 10:57 - Reply

    Hello From France 🙂

    Great Job ;).

    Nice proof of concept, that’s a new way to use SCOM, congrat. !

  14. […] Coffee […]

  15. BR November 4, 2009 at 12:55 - Reply

    Hi from NL 😀
    This is f#$^cking brilliant haha 😉

  16. Tim November 4, 2009 at 21:50 - Reply

    Greetings from the US! I found this both entertaining and thought provoking. This is a GREAT example of how you can use SCOM to monitor the world (not just computers) just by being creative. Excellent Work!

  17. Dennis November 7, 2009 at 13:49 - Reply

    Great management pack, gives me a lot of inspiration. Gonna try to convert this one to be used in Service Manager, so that I can give somebody a task to fill the coffee pot 😉

  18. Adam January 25, 2010 at 17:56 - Reply

    Hi,
    This is great… for those of us without a see through coffee pot could it be configured to work with network attached scales to weigh the coffee?

  19. keurig coffee makers February 15, 2010 at 7:11 - Reply

    really?? this is the very first version?? good to know that it has been tested by the test environments…i already using this to track of the level of coffee that was left in my pot..

  20. Mikkel Tramm August 5, 2010 at 9:45 - Reply

    Haha – Finally something we all can relate to! Great job mate, love to see serious programs being used serious 😉

  21. […] Список того, что можно мониторить, может показаться не большим. Но на самом деле ответ на вопрос «Что можно мониторить с помощью OpsMgr» прост – всё. Абсолютно всё, что доступно по сети, можно так или иначе мониторить с помощью OpsMgr. Всё зависит только от вашей фантазии и желания. Например, можно проверять наличие кофе в кофеварке. […]

  22. Hector Marcia September 20, 2010 at 17:31 - Reply

    Jakob,

    This idea is simply brilliant! Since you ask for ideas for the next version:
    What are the changes needed in the MP to use a thermometer or a CO/Heat Detector?

  23. Juegos November 4, 2010 at 22:08 - Reply

    I like your idea Jakob, great concept. Best wishes to you

  24. Juegos November 10, 2010 at 6:14 - Reply

    Jakob great concept. Greetings

  25. […] Coretech Coffee Monitor Management Pack […]

  26. Ron Hagerman March 25, 2011 at 17:21 - Reply

    This could maybe be modified a little to alert me when the temprature in my lab gets too warm or maybe for intrusion detection when someone messes with one of my servers. (my lab racks don’t have doors on them)

    Just my thoughts on it. Of course, watching the coffee pot is good too 😉

  27. […] http://blog.coretech.dk/jgs/opsmgr-2007-r2-scom-coretech-coffee-monitor-management-pack-0001/ Share this:TwitterFacebookLike this:LikeBe the first to like this post. CategoriasSystem Center Tags:Management Pack Comentários (0) Trackbacks (0) Deixar um comentário Trackback […]

  28. Daniel September 6, 2012 at 15:59 - Reply

    Hi guys, does this work in a SCOM 2012 environment as well?

    Awesome work!

  29. Daniel September 6, 2012 at 16:40 - Reply

    Don’t bother, it works absolutely fine. I have only tried the test images so far but i will continue trying when i lay my hands on a camera 🙂

  30. Shawn May 28, 2013 at 15:21 - Reply

    Good day! I could have sworn I’ve been to this site before but after browsing through some of the post I realized it’s new to me.

    Anyways, I’m definitely glad I found it and I’ll be bookmarking and checking back often!

    Here is my web page :: Shawn

  31. Graphics June 10, 2013 at 0:14 - Reply

    …[Trackback]…

    […] What host are you the use of? Can I am getting your associate link for your host? I desire my website loaded up as fast as yours lol[…]…

  32. […] Coffee pot monitoring management pack […]

  33. mahesh October 9, 2013 at 8:38 - Reply

    Hai this is very great to use opsmgr in day to day life. This is a great achievement. Could you use the same process to monitor the level of water in water tank
    and also to monitor the level of water while filling the tank. So that there wont be any wastage.What are the changes need to be done to this management pack.

    • Jakob Gottlieb Svendsen
      Jakob Gottlieb Svendsen October 9, 2013 at 9:07 - Reply

      hello mahesh

      i think the webcam method would not be good for clear water, since you cannot see the water using the camera.

      but u would get a water tank or water measure device that is connected via USB.

      or you could use the weight of the water and have the water tank on a weight (depends on size)

      but if the water is colored, and the water tank is clear, you should be able to use this pack directly.

      but please notice that this is a proof of concept, by using a webcam, lighting issue come into play.

      i think what could be possible, is to go a camera that includes a polaroid filter, to make sure the reflections og light does not distroy the measurement.

      good luck 🙂

      – Jakob

  34. […] Coretech Blog » Blog Archive » OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – … […]

  35. england Information On Wikipedia September 3, 2014 at 4:29 - Reply

    england Information On Wikipedia

    Coretech Blog » Blog Archive » OpsMgr 2007 R2 (SCOM): Coretech Coffee Monitor Management Pack – 0.0.0.1

  36. new call of duty September 10, 2014 at 14:13 - Reply

    Also, if you could make your own map pack consisting of
    4 maps from any of the titles, what would they be.
    Where in case you are play say demolition, the grenade launcher is wonderful choice for shooting enemies around
    the bomb site. Your cake will surely be stylish and trendy with these patriotic loop ribbons topped on it.

  37. […] szinte bármilyen rendszerhez illeszthető. (Emlékezetes a SCOM2007R2-höz készült Coffee Monitor Management Pack (!), ami mint rendkívül fontos IT üzemeltetési paramétert, az „elérhető” kávé […]

Leave A Comment