• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

check_openerp nagios plugin for openerp service check

July 3, 2013 by Sharad Chhetri Leave a Comment

check_openerp nagios plugin for openerp service check

This is a small nagios plugin for monitoring the OpenERP service .
You can use this plugin with check_nrpe or check_by_ssh.

In my server, I start the openerp service by using command nohup ./openerp-server &
In your server the case might be different, do the changes as per your requirement. If need help contact me through contact page.

Operating Syetem : Ubuntu,Debian,Red Hat and CentOS
OpenERP Version : 7.x

Step 1 : Create a file check_openerp in nagios-plugin directory of your system. And paste the given below contents of nagios plugin script.

In my system the location is /usr/lib/nagios/plugins


#!/bin/bash

#Author Sharad Kumar Chhetri
#script is used for checking OpenERP Server status
# Date : 02-July-2013
#

oes=`ps -ef|grep openerp-server|grep -v grep|wc -l`
if [ "$oes" == 1 ]
then
echo "OK: OpenERP Server is running"
exit 0
else
if [ "$oes" == 0 ]
then
echo "CRIT: OpenERP Server is not running"
exit 2
fi
fi

Step 2: After saving the check_openerp file , give permission 755

chmod 755 check_openerp

To know how to configure NRPE in Ubuntu read this link ,click Here

To know how to configure NRPE in CentOS or Red Hat read this link, click here

To learn about Nagios Server, Go to Navigation Menu >> HOW TO >> MONITORING SERVER

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. check_ELBinstance : Nagios Plugin to check instances attached with ELB
  2. Nagios Plugin : check ssl certificate expiry date
  3. Xen Server License Nagios Plugin (bash script)
  4. Nagios plugin check_mailfromd bash script
  5. Installation of OpenERP 7.0 in Ubuntu
  6. master admin password openerp 7.x
  7. Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
  8. SELINUX : squid service failed to start/restart
  9. Upgrading MySQL 5.1 to 5.6 service failed to start
  10. Prevent starting service after package installation on Ubuntu / Debian

Filed Under: Linux, Monitoring Server Tagged With: Nagios

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

error could not configure a c compiler Linux

Error installing rails

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

Virtual Machine inaccessible status on VirtualBox 4.3

Yum Error database disk image is malformed

How to encode and decode the strings with base64

4 Different commands to find system uptime in linux

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy