Documentation how to setup Nagios instace.

1) Request VM

Request a VM with Euca2ools. Assuming that a local machine has Euca2ools ready, you can:

generate a key pair to ssh the machine

~$ euca-create-keypair my_key -f my_key

This will generate a public and private key pair called "my_key", private key is written to a file "my_key", which will be used with ssh option -i.

Next, run an instance

~$ euca-run-instances ami-00000181 -k my_key --f <filename>

ami-00000181 - image of VM. This particular one is Scientific Linux 6 (SLC6 Server - i386)
-k my_key - use private public key pair "my_key"
--f <filename> - upload script which setups Nagios on a VM. In general it is called "contextualization"

2) Connect to VM

If one needs to ssh a virtual machine, type:

~$ ssh -i my_key user@<address>

3) Install Nagios according to Quickstart installation guide

This installation guide is comprehensive. The script installing Nagios on a VM is based on it. Documentation for managing Nagios can be found here: Nagios Documentation

4) Configure Nagios

This is what I am doing in my office:


Probe reads sites from a file. It can take options as which sites to probe. Three probes are running now on Nagios with different options.


Spent some time learning about ATP, POEM, NCG and SAM architecture.


Added wget to the script, but still don't know how to replace or rename output files.

Have three probes doing the same thing, all running nicely with nagios.


Nagios runs python script on local machine. In the beginning I forgot to put quotation marks on the path of the script, so Nagios could not execute it: don't forget quotation marks!!!

Python script writes to a file: open time, performance, close time. Downloads web page with 'requests' or 'os' modules.

2 July


Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2020-08-19 - TWikiAdminUser
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox/SandboxArchive All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback