Then use a generic script to evaluate the status of the service. (based in rdcwayx' code):
Code:
#!/bin/bash
if [ -n "$(awk 'BEGIN{RS=""}/'$1'/{a[$3 FS $6]++}END{for (i in a) print i , a[i]}' your_file)" ]; then
echo "App is OK" && exit $0;
else
echo 'App down!' && exit 2;
else
echo "Unknown Status" && exit 3;
fi
You might need to adjust paths according to your nagios.cfg file.
Last edited by verdepollo; 08-20-2010 at 03:08 PM..
it there any docs out there anyhwre that have the specs for cabing to a sun console.
I have an e420 here, i cant seem to get a console connection, i have triewd the silver serial connectors that come with the new dsun servers, but no luck with those. (1 Reply)
Hi Folks,
Nagios is acting a little weird for me, I have this external script which I hooked into Nagios, it merely does a curl/wget on a URL and returns the status based on string in the content/output. Initially for 2-3 hrs the script returns the right status and Nagios reports correctly i.e.... (4 Replies)
Greetings!! I am attempting to solve a rather thorny issue and I was hoping that someone might have some insight into what is going on here..
At this point I have an openLDAP server that is working quite splendidly! :)
I have a working directory with users able to authenticate it and TLS... (2 Replies)
Hello,
I installed Nagios on the Centreon Platform <----"Centralized monitoring platform" anyways now every time i click on any of the tabs inside centreon interface, it gives me a Blank page, i have no idea what to do. i thought of resetting nagios to an earlier time when it was running... (2 Replies)
Hello Experts,
I have my windows servers located at different data-centers across US and I am monitoring all of them using Nagios server configured on a CentOS. All communications are done via public IP address and I doubt it can invite some security threats too. Can anyone let me know if it is... (3 Replies)
We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side.
I was wondering if there is any way to setup cross dependencies... (1 Reply)
I'm having a problem scripting Expect to work as a Nagios check. The script runs fine from the cli, but not when run as a Nagios check. I turn on the debug output, and it looks like it's not seeing the whole buffer's worth of info, like it's paged interactively somehow. I'm new to Expect, but this... (1 Reply)
Hi Experts, need some help.
I`m trying to write a shell script to get free, used and total memory on our linux servers.
It's working great, but i need follow some standards to make it a real nagios plugin.
It's pretty simple, you just type two parameters to the script, check_ram -w 80 -c 90... (4 Replies)
Hello,
I want to setup Nagios with service Memcache...We have Amazon Cloud..Please help me to setup this service on my Nagios Client.
How to check Memcache is working or not on my server??
1. Please provide us the command defination to set on Nagios Server for .cfg file.
2.Please provide... (1 Reply)
Discussion started by: chetan
1 Replies
LEARN ABOUT DEBIAN
icinga
icinga(8) nagios icinga(8)NAME
icinga - network/systems status monitoring daemon
SYNOPSIS
icinga [-h] [-v] [-s] [-d] <main_config_file>
DESCRIPTION
icinga is a daemon program that monitors the status of various network accessible systems, devices, and more. For more information, please
consult the online documentation available at http://www.icinga.org, or on your Icinga server's web page.
OPTIONS
main_config_file
The main configuration file. On debian systems this defaults to /etc/icinga/icinga.cfg
-h A helpful usage message
-v Reads all data in the configuration files and performs a basic verification/sanity check. Always make sure you verify your config
data before (re)starting Icinga.
-s Shows projected/recommended check scheduling information based on the current data in the configuration files.
-d Starts Icinga in daemon mode (instead of as a foreground process).
FILES
/etc/icinga
Default configuration directory for Icinga
AUTHOR
Icinga was started as Nagios by Ethan Galstad <nagios@nagios.org>. Icinga is maintained by the Icinga Project <info@icinga.org>. This
manual page was written by sean finney <seanius@debian.org> for the Debian GNU/Linux operating system (but it may be freely used, modified,
and redistributed by others).
sean finney March 2010 icinga(8)