Posts

Nagios 4 and Nagiosgraph (latest) installation on Ubuntu

This is a guide on installing the latest Nagios Core (4.2.1) on Ubuntu 12.04 and 14.04. Nagios is an open source computer system monitoring, network monitoring and infrastructure monitoring software application. Nagios offers monitoring and alerting services for servers, switches, applications, and services. It alerts the users when things go wrong and alerts them a second time when the problem has been resolved. The version in the Ubuntu 12.04 repositories is quite old, it is still the in the 3 branch. This guide helps to fix that by using the latest Nagios version. We also install Nagiosgraph, a plugin for Nagios which gives you graps of the metrics. You can find more information about Nagios on the official website: http://www.nagios.org/projects/nagioscore . The description of Nagios Core from their website: Nagios Core is the monitoring and alerting engine that serves as the primary application around which hundreds of Nagios projects are built. It serves as the ba...

snapshotId can only be modified on EBS devices

Issue:- I am trying to launch an instance, and I'm adding an EBS volume on top of the root volume. In the extra EBS volume, I'm specifying a snapshot I created. When I click "Launch", I immediately get the following error: snapshotId can only be modified on EBS devices ​Solution:- The solution which worked for me was to use an available AWS recommended device name e.g. /dev/sdf . AWS recommended device name for attaching EBS volume is /dev/sd[f-p] ​ -- Thank You. Regards, Guru

cesi is a web interface provides manage many supervisors instance from same interface.

Image
cesi is a web interface provides manage many supervisors instance from same interface. #cesi ( Centralized Supervisor Interface ) cesi is a web interface provides manage supervizors from same interface. Dependencies Python Flask sqlite3 Enable inet_http_server in supervisord.conf in each server.         [inet_http_server]           port=*:9001                username=admin                    password=admin             Installation $sudo apt-get install sqlite3 python python-flask $git clone https://github.com/Gamegos/cesi $cd cesi $sqlite3 /opt/cesi//userinfo.db < userinfo.sql Configuration Fill cesi.conf #cp cesi.conf /etc/cesi.conf Run Project $python web.py First Login Please change password after first login! Username : admin Password : admin Screenshots ​ Make the cesi as service ​ ​ vi /etc/supervisor/conf.d/cesi.conf [program:cesi] command=/usr/bin/python /opt/cesi/cesi/web.py process_name=%(program_name)s user=root autostart=true autorestart=true redirect_stderr...

How to check yaml syntax

sudo yum install gem sudo gem install yaml-lint yaml-lint /etc/puppetlabs/code/environments/production/hieradata/ common.yaml Checking the content of ["/etc/puppetlabs/code/environments/production/hieradata/ common.yaml "] File : /etc/puppetlabs/code/environments/production/hieradata/ common.yaml , Syntax OK Done.

How do I find out what is using up all the space on my / partition?

In a linux instance. I run the df command and get: root@db:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 9.1G 284M 98% / tmpfs 3.8G 0 3.8G 0% /lib/init/rw varrun 3.8G 116K 3.8G 1% /var/run varlock 3.8G 0 3.8G 0% /var/lock udev 3.8G 80K 3.8G 1% /dev tmpfs 3.8G 0 3.8G 0% /dev/shm /dev/sdb 414G 957M 392G 1% /mnt /dev/sdf 50G 12G 35G 26% /byp /dev/sdk 99G 31G 63G 33% /backups I then run the du command and get: root@db:/# du -s -h /* 31G /backups 5.5M /bin 136K /boot 12G /byp 80K /dev 5.8M /etc 12K /home 70M /lib 11M /lib32 0 /lib64 16K /lost+found 759M /mnt 4.0K /opt du: cannot access `/proc/6917/task/6917/fd/4': No such file or directory du: cannot access `/proc/6917/fd/4': No such file or directory ...

DataStage Oracle Connector showing The OCI function OraOCIEnvNlsCreate:OCI_UTF161D returned status = -1 in job log.

Technote (troubleshooting) Problem(Abstract) When running a DataStage job with an Oracle Connector stage - the following is seen in the job log. The OCI function OraOCIEnvNlsCreate:OCI_UTF161D returned status = -1 Resolving the problem Add the following environment variable in DataStage Administrator for the project to resolve this:  CC_ORA_NLS_LANG_ENV is set to TRUE

How to list all installed packages Ubuntu 14.04 and above

apt list --installed | grep packagename