Skip to main content

Posts

Showing posts with the label opensource

Migrating Nagios XI to a New Server on Centos6.6

Migrating an old Nagios backup to a new nagiosxi server. Migration is simple in Nagios XI, you a backup and restore it. Once that is done we need to update/add the clients with IP of the new server, so that both Nagios get alerts. After a while once we are comfortable with the new server we can decommission the old one. For example we will use two servers. old_nagios (nagiosximon) new_nagios (nagioserver) Backup from Old Server. Lets first take a backup from the old_nagios server. [root@nagiosximon ~]# /usr/local/nagiosxi/scripts/backup_xi.sh Running configuration check... Stopping nagios: done. Starting nagios: done. Backing up Core Config Manager (NagiosQL)... tar: Removing leading `/' from member names tar: Removing leading `/' from member names Backing up Nagios Core... tar: Removing leading `/' from member names tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored tar: /usr/local/nagios/var/ndo.sock: socket ignored Backing up Nagios XI... tar: Removi...

Zabbix Installation Script on Centos/Redhat 6.x

Installation on zabbix is quit simple and straight forward, but when you are install multiple servers and want to automate installation it is better to use a script. I would have preferred an ansible setup, but we have non of that on the server, so had to make do with good old shell script. Scripts does 2 Major installations. Setting up basic zabbix installation. Setup zabbix trapper using perl script. Script Location here. Here is what the script does at a lower level. Installing zabbix Repo. Install mysql . Install net_snmp , this is used for the snmp_trapper which we install later on. Install zabbix Server and Web interface. Install zabbix Agent. Starting mysql and create zabbix default schema. Configuration of zabbix server. Update web settings with timezone and upload file limit. Setting up perl snmp trapper script. Update snmptrapd configuration. Setting up logrotation for zabbix snmp trapper , Creating directory to store archived logs. diab...