Advertisements

Email alert using blat with computer management alerts and logs when a process is above a certain memory threshold

Do you like interesting things? Maybe you would like my creation, a Handmade connectible candle called a WickBrick!

Get some here http://wickbrick.bigcartel.com/product/20-white-wickbrick-s-with-2-12-wick-s

I wanted an email alert when a process reached a certain memory threshold. I knew I had the handy dandy command line emailer Blat. And I could set an alert using computer management alerts and logs. So it was just a matter of tying the two together.

So created an alert for the process, and set to trigger after private bytes was greater than some number. This alert is named ALERT1. I set it to check every minute for the threshold value.

 

Next created a bat file called send.bat

 

c:\blat\blat262\full\blat.exe c:\blat\blat262\full\message.txt -to me@place.com -s “service needs a reset” -f computer@place.com

logman stop “ALERT1”

 

 

(The logman stop command, stops the alert after it fires once)

 

I also edited the alert to fire off send.bat when it was triggered.

 

Special note, this was a win2k server so I needed to copy logman.exe and pdh.dll from a windows XP machine in order to make this work.

 

Yay for alerts.

Advertisements

IBM tivoli interface, created by drunken monkeys, or if possible something stupider.

Do you like interesting things? Maybe you would like my creation, a Handmade connectible candle called a WickBrick!

Get some here http://wickbrick.bigcartel.com/product/20-white-wickbrick-s-with-2-12-wick-s

IBM is known for a few things and I find their servers to be very reliable. But their UI pretty much sucks. Have you ever tried to find anything on IBM.com? yeah, I think you know you have to use google to find anything useful.

Then there is the Tivoli Storage Manager which I think is pretty much an abomination. One of the main things that users like is UI consistency, which is why I am very disconcerted with where new windows popup when using the TSM web client thingy. They most often pop at the very bottom of the browser. Which is very annoying having to scroll down after every selection. But it gets worse, since it doesn’t always choose the bottom of the browser, sometimes it chooses where it wants. If I had created this I would be ashamed.

Solved: Referenced assembly ‘..\..\..\..\Program Files\SQLite.NET\bin\System.Data.SQLite.DLL’ targets a different processor than the application.

This stumped me for quite awhile, everyone kept on saying just change the platform to target x86 instead of Any CPU. Only problem was couldn’t find info how to do this for the express edtion of vs 2008. The hidden step is

Please go to

Tool -> Options -> Projects and Solutions -> General

And check this option there:

Show advanced build configurations.

Then the configuration manager will be enabled.

Now when you go to your solution properties wa la you can change the targeted platform. Grrr… why was that so hard to locate.

On second glance you have to do a few more steps. Open up build, configuration manager, then use the plaftorm selection box, choose new, and now select your CPU.

Visual Studio 2008 Express, Can’t get it to register solution


So awhile ago I downloaded VS2008 to play with and never got around to registering it. So I fired it up after about a months time and it told me that I must register in order to continue. Clicking on the registration link took me to a blank page and I was unable to proceed.

The fix, download the newest version of Vs2008 express. It appears I was using a Beta and that Microsoft disabled the registration for those versions. Too bad the web page wasn’t nice and informed me of the fact. Would have saved me an hour of messing around.

Section 5: Shipto, depositor, Shipfrom loops, exception, string-join, substring-after, auto-number, replace

And here is section 5 finishing it out.

Section 5: Shipto, depositor, Shipfrom loops, exception, string-join, substring-after, auto-number, replace