Posts

GCP- Interview questions

 What is Compute? Compute is the processing power used to run applications and perform tasks. Compute = CPU + Memory (RAM) used to run your workloads What is SAAS, IAAS, PAAS? SaaS (Software as a Service) is a cloud service model where ready-to-use software is delivered over the internet, and users can access it without managing or installing anything, such as Google Gmail. PaaS (Platform as a Service) is a cloud service model that provides a platform and environment for developers to build, run, and deploy applications without managing the underlying infrastructure, such as Google Cloud Platform App Engine. IaaS (Infrastructure as a Service) is a cloud service model that provides virtualized computing resources such as servers, storage, and networking over the internet, where users manage the operating system and applications, such as Amazon Web Services EC2.  What is GCP? Google Cloud Platform is a cloud computing platform provided by Google . It offers services li...

Zabbix-Interview Questions

 LLD stands for Low-Level Discovery. LLD is the feature in Zabbix that automatically discovers resources on a host, such as file systems, network interfaces, disks, CPUs, or SNMP sensors. Based on a discovery rule, Zabbix creates items, triggers, graphs, and hosts automatically using prototypes. This eliminates manual configuration and ensures that any newly added or removed resources are monitored automatically.

SolarWind- Orion Plateform (On-Premises SolarWinds/ Self-Hosted SolarWinds)

 Note:  On-Premises doesn't mean the servers must be physically in your own data center.  The classification depends on who manages the SolarWinds application , not where the VM is hosted. What is SolaWinds? SolarWinds Orion Platform is the SolarWinds framework that provides common functionality such as web access, alerting, reporting, discovery, user management, API services, and database connectivity. Monitoring modules such as NPM, NCM, and SAM use these functions to perform their specific monitoring tasks. Key Components of SolarWinds Architecture 1. Orion Platform The Orion Platform is the central software framework that provides: Web Console Alerting Engine Reporting Engine Discovery Services API Services User Authentication and Authorization Database Connectivity Job Scheduling The Orion Platform itself does not perform monitoring. It provides the infrastructure required by SolarWinds modules. 2. Main Polling Engine (MPE) Definition The Main Pollin...

Zabbix package : Linux commands

For APT-based systems (Ubuntu / Debian) 1. List all available Zabbix packages in the repo apt list | grep zabbix or to include all versions : apt list -a | grep zabbix 2. List all installed Zabbix packages dpkg -l | grep zabbix For YUM/DNF-based systems (RHEL / CentOS / Rocky / Alma) 1. List all available Zabbix packages in the repository yum list available | grep zabbix 2. List all installed Zabbix packages yum list installed | grep zabbix

Zabbix DB backup and restoration

 Step 1: Take Backup (Dump) # Go to backup directory mkdir -p /var/backups/zabbix cd /var/backups/zabbix # Take dump (enter MySQL root password when asked) mysqldump -u root -p --single-transaction --routines --triggers --events zabbix | gzip > zabbix_backup.sql.gz # Verify dump ls -lh zabbix_backup.sql.gz gzip -t zabbix_backup.sql.gz && echo "Backup OK" Step 2: Stop Zabbix services systemctl stop zabbix-server zabbix-agent systemctl stop apache2  # or nginx if used systemctl stop zabbix-server zabbix-agent systemctl stop apache2  # or nginx if used Step 3: Simulate DB crash (drop database) mysql -u root -p  DROP DATABASE IF EXISTS zabbix; SHOW DATABASES; Step 4: Recreate empty database mysql -u root -p -e "CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;" Step 5: Restore from backup gunzip < /var/backups/zabbix/zabbix_backup.sql.gz | mysql -u root -p zabbix Step 6: Start Zabbix services again systemctl start mysql systemctl start zabb...

SNMP OID: Full Insight

 SNMP uses OIDs to uniquely identify pieces of data (like CPU usage, interface status, etc.). Standard OIDs (defined by IETF) are common across all devices , e.g.: 1.3.6.1.2.1.1.1.0 → sysDescr (system description) 1.3.6.1.2.1.2.2.1.10 → ifInOctets (interface input bytes) Vendor-specific OIDs: For example: Vendor Enterprise OID Base Example Cisco 1.3.6.1.4.1.9 1.3.6.1.4.1.9.1.516 (Cisco 2960 model) Juniper 1.3.6.1.4.1.2636 Juniper-specific OIDs HP 1.3.6.1.4.1.11 HP printer/router OIDs Fortinet 1.3.6.1.4.1.12356 FortiGate device OIDs Part 1: Standard SNMP OID – .1.3.6.1.2.1.1.1.0 This is used for system description , and it works on all SNMP-supported devices (routers, switches, servers, etc.). Let’s break this path: 🔹 .1 → iso International Organization for Standardization This is the root of the SNMP OID tree. Every OID begins from here. 🔹 .3 → org Organization This level is used for organizations that are registered under ISO. 🔹 .6 → dod Depart...

Zabbix API calls

To check API version  Option 1: As per Zabbix doc curl --request POST \          --url 'http://34.42.61.202/zabbix/api_jsonrpc.php' \          --header 'Content-Type: application/json-rpc' \          --data '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}' Option 2:  curl -X POST \   -H "Content-Type: application/json" \   -d '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}' \   http://34.42.61.202/zabbix/api_jsonrpc.php ----------------------------------------------------------------------------------------------------------------------------- To authenticate the user Option 1: As per Zabbix doc curl --request POST \   --url 'http://34.42.61.202/zabbix/api_jsonrpc.php' \   --header 'Content-Type: application/json-rpc' \   --data '{"jsonrpc":"2.0","me...