FInd Large Files Specified By Size Linux – BASH

You can execute this and get your results to stdout.

Confirm String exists in log file and is not stale longer than 600 seconds – PYTHON

Examine Log File To Be Sure O values Are Not Recieved – BASH

Parse Nagios Status.dat For Any Stale Checks – PYTHON

Thanks MAX

Instagram Hashtags Not Working

EDIT: Facebook will unlink your Instagram account if you do not access Facebook often,to get your hashtags to work again, you need to re link Facebook with Instagram via Share Settings, see instructions below.

I thought I would write up a quick post in regards to Instagram and *new* users, before facebook took over. I recently became a Instagram addict and I love everything about it. I was fed up with social media about a year ago and deleted my facebook account. So when I started using Instagram I was instantly addicted. Anyway the problem that I was noticing was none, I mean no #hastags were working for me. My other friends could do it right before my eyes. So I started to think, what’s different between their account and mine. Did I like something raunchy that got me banned? It turns out they had an active facebook account linked to their instagram account. Or they were customers before facebook took over so it did not matter. I decided to setup a test facebook account for testing, I linked it with Instagram and bam!! hashtags started working.

So in short, you need a facebook account to hashtag ever since facebook took over. At least it worked for me.

EDIT: this post has become quite popular.. For those who do not know how to link with Facebook. You need to do this from the Instagram application Settings.
1. Go to your profile
2. Tap (Android) or (iPhone) in the upper-right corner Gear looking icon.
3. Tap Sharing Settings
4. Tap Facebook and connect using your Facebook login info

If this solution fixes your #hashtag problem, please reply and let me know. This will encourage me to continue posting helpful blogs. You do not need to register and I will approve all comments.

Nagios Plugin Check That A File Exists Python Script

Automatically Restart Linux Application With All Arguments KSH script

Here is a script that you can use to start your application on Linux. What this script will do is read in all the arguments from the command line and store them in a special shell variable. If the application segmentation faults, the script will automatically start the application using all the command line arguments. Also this will write that the application has died to any syslog on the system.

Here is how it should be called.

And here is the actual code written in KSH.

Linux Restart Process / Application When Memory Threshold Is Reached

Here I needed to kill a c++ process that was leaking memory in order to save the server from meltdown. Very simple while loop that calls the external command “free” and parses it’s output with awk to store a variable. Pretty neat and it works.


Bash Execute Command On Multiple Remote Linux Servers

One would call this script using $1 as the argument. ./ “service crond restart”