5 articles Linux

Atlantix linux agent auto installer – selfextract .run file creation

Download the latest atlantix-linux-nrpe-agent.tar.gz from download.atlantixlab.com repo. Untar the compressed archive somewhere (/tmp) cd in to the extracted folder (atlantix-linux-nrpe-agent) Install the makeself command line utility (if not available already) and then run as root: makeself –target /tmp/atlantix-linux-nrpe-agent /tmp/atlantix-linux-nrpe-agent atlantix-linux-agent-setup.run ‘atlantix-linux-agent-setup.run script will setup the atlantix linux agent on your linux distro’ ./fullinstall atlatntix-linux-agent-setup.run executable…

Self-extracting shell script from a TAR archive for Linux PushAgent

Create under a convenient directory (such as /tmp) a C6.X-bundle direcrory then copy there all the needed RPMs and the atlantix-nrpe-installer shell script mkdir /tmp/bundle cp -pr /root/SKELETON/atlantix-clients-installer.sh /root/SKELETON/C6.7 /tmp/bundle/   Create a tar.gz archive with all the content: cd /tmp/ tar -zcvf C6.7-bundle.tar.gz bundle Under /tmp create the following create-self-bin script: #!/bin/bash BASEDIR=`dirname “${0}”`…

How to create local repo for push agent feature using repotrack

Use the following commands to get all the packages and their dependencies: yum install epel-release.noarch -y In Centos 6.X epel.repo files has an https url which is currently not working. Workaround the problem with this command: sed -i ‘s|mirrorlist=https://mirrors|mirrorlist=http://mirrors|g’ /etc/yum.repos.d/epel.repo If repotrack is not installed run: yum install yum-utils -y Note:  this is true if…

Create a read only user (viewuser) for Nagios Web GUI

As root add viewuser password: # htpasswd /etc/nagios/passwd viewuser New password: Re-type new password: Then check passwd file: # cat /etc/nagios/passwd nagiosadmin:oFx/UdOcsrPCM viewuser:bL1BGqHzoALVE Add/Edit a read only user (viewuser in this example) in the proper /etc/nagios/cgi.cfg file sections: # grep viewuser /etc/nagios/cgi.cfg authorized_for_all_services=nagiosadmin,viewuser authorized_for_all_hosts=nagiosadmin,viewuser authorized_for_read_only=viewuser Restart Apache web and Nagios servers: # service nagios restart…

SNMP monitoring

=== INIZIO CONFIGURAZIONE === Prerequisito: net-snmp installato sull’host che si desidera monitorare (nell’esempio seguente CentOS release 5.6). Nota: il pacchetto net-snmp potrebbe avere nomi differenti a seconda della distribuzione (es. Debian e derivate: sudo apt-get install snmpd) Installazione snmp sull’host che si desidera monitorare yum install net-snmp mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig crea un nuovo file /etc/snmp/snmpd.conf…