Cloud, DevOps

How to Create Plugin in Nagios Using Bash Script?

Nagios is an open source computer software application that monitors systems, networks, and infrastructure. With Nagios, we can monitor host and configure alerts on the services for servers, switches, applications. It sends alert messages to relevant people through emails when things go wrong and then sends another alert message when...

by Shivam Agrawal
Tag: bash script
29-Mar-2017

DevOps

“Foolproof Your Bash Script” – Some Best Practices

I am a DevOps practitioner and a lazy one too, so whenever we come across any task that needs to be repeated, we create a bash script. I have been doing this for a long time and after doing a lot of mistakes, I figured that if we follow some basic rules we can make our script more portable and less prone to failure when semantics...

by Nitin Bhadauria
Tag: bash script
09-May-2016

Technology

Monitoring Nginx Connections

The Nginx web server comes with a bundled module "HttpStubStatusModule". By enabling this module we will get some insight of our nginx connections. This module provides the following information. Active Connections Connection Status (Accepted / Handled) Connection Request / Second Enable Module To get connection stats, we need to...

by Vikash Jha
Tag: bash script
24-Apr-2015

Grails

Auto Completion for Grails Scripts with Dynamic Version Determination

We are constantly striving to be more productive by minimizing key-strokes for a lot of commonly used shell commands. Alias is one way of achieving it, but it isn't always the answer. Bash auto completion is one feature that I use a lot. To avoid the hassles of working with multiple grails projects, I use this script and for auto...

by Vivek Krishna
Tag: bash script
16-Aug-2012

Grails

Using Groovy execute bash scripts

Hi Friends, Recently I had to execute bash script using groovy on a windows server. Though I could easily make the similar script run on linux, but on windows it just didn't work as it was unable to recognize the internal DOS commands like cp, rm etc. On linux the following code worked but not on windows: [bash] File script =...

by Amit Jain
Tag: bash script
15-Feb-2011