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>
Here:
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:
16/07
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.
12/07
Spent some time learning about ATP, POEM, NCG and SAM architecture.
10/07
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.
9/07
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
nothing