How to Use Expect In Bash Script

expect bash

In this bash script we will use expect scripting. Expect is known primarily as an indispensable application for system administrators. We use expect generally in case where input from user is required , for eg. ssh, ftp, telnet, sudo etc. Given below is sample bash script which will first ssh the remote host and then … Read more

Nagios plugin check_mailfromd bash script

nagios plugin check_mailfromd

In this post we will create Nagios plugin check_mailfromd in bash script.This nagios plugin is written in a very simple way and easy to understand. Task To check service status of mailfromd service. Create nagios plugin check_mailfromd Create a new bash script file called check_mailfromd. Use your favorite file editor for this, we in general … Read more

Xen Server License Nagios Plugin (bash script)

xen nagios plugin

Introduction In this post we will share about the “Xen Server License Nagios Plugin” written in bash script. It was good experience to create the nagios plugin for Xen server license. Task To show how many days are left for Xen Server expiration. Requirement You must have following items to be installed in system. 1. … Read more

You don’t have permission to access /nagios on this server :Solved

nagios error

Did you ever get, Error: You don’t have permission to access /nagios on this server while installing Nagios. We got this error also and we solved it too. The chance when we got to deploy Nagios server in our network we struck with first error after installation of Nagios in Fedora 11 “Leonidas”. We followed … Read more