EzDevInfo.com

zabbix interview questions

Top zabbix frequently asked interview questions

Zabbix web scenarios - how to include the content of the web response in notifications?

I have notifications coming back from web scenarios that say "PROBLEM' and "OK". I would like to include the content of the web response when a problem happens. I'm not worrying about header values, just the content of the web page. Is this a variable I can reference in the Notification setup?


Source: (StackOverflow)

Fluentd+Mongo vs. Logstash

Our team now uses zabbix for monitoring and alert. In addition, we use fluent to gather log to an central mongoDB and it is put to work for a week. Recently we were discussing another solution - Logstash. I wanna ask which difference between them? In my opinion, I'd like use zabbix as a data-gathering and alert-sending platform and fluent plays the 'data-gathering' role in the whole infrastructure. While I've looked into Logstash website and found out that Logstash is not only a log-gathering system, but also a whole solutions for gathering, presentation and search.

Would anybody can give some advice or share some experience?


Source: (StackOverflow)

Advertisements

How to run command on agents?

To configure on the server and fronted. But to run on agents:

  • Some simple unix commands, to obtain our reporting data.
  • When there is some processing required on the agent side.

There seem to be a variety approaches being talked about. So how to execute such commands on a zabbix agent?


Source: (StackOverflow)

Zabbix item - amount of data transfered per day and week

Good day. Using net.if.in and net.if.out keys I'm getting total amount of bytes transferred through a network interface. If I store value as delta I'll get speed per second. Is there a way to get amount of data transfered each day and week? Thank you in advance. Vojta


Source: (StackOverflow)

What does "CPU jumps" mean?

enter image description here

I have the following default chart in zabbix, but I have no idea how to interprete these values. Can anyone explain?


Source: (StackOverflow)

How to expose data to zabbix

Here is my goal: I would like to be able to report various metrics to zabbix so that we can display the graphs on a web page.

These metrics include:

  • latency per soap service submission
  • various querie results from one or more databases.

What things do I need to write and/or expose? Or is the zabbix server going to go and get it from an exposed service somewhere?

I've been advised that a script that returns a single value will work, but I'm wondering if that's the right way.


Source: (StackOverflow)

How to integrate .NET and Zabbix?

I have a .NET app that must send data to a Zabbix server. How to do that?


Source: (StackOverflow)

Zabbix to export graph (.PNG) files

My Goal:

I would like to extract graphs associated with hosts in .png format. My GOOGLE research say's we don't have Zabbix API designed to do this task. So few blogs advised to user Chart2.php & CURL. Can someone explain me how to go about it ( detailed steps )?

Note: Sorry never worked on php nor on curl

When i tried

curl https://example.com/zabbix/chart2.php?graphid=1552&width=300&height=300

Got this, but link doesn't work

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a rel='nofollow' href="/zabbix/openid?graphid=1552&amp;modauthopenid.referrer=https%3A%2F%2Fexample.com%2Fzabbix%2Fchart2.php%3Fgraphid%3D1552">here</a>.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at example.com Port 80</address>
</body></html>

Also how can i incorporate this with my zabbix api (JAVA ) call ?


Source: (StackOverflow)

zabbix frontend webinterface gives error 404 (ubunutu server 14.04)

I can't open the zabbix frontend URL via http://zabbixservername/zabbix

Error 404 is given:

Not Found

The requested URL /zabbix was not found on this server.

Apache/2.4.7 (Ubuntu) Server at ipaddress Port 80

I'm running Ubuntu 14.04 LTS (GNU/Linux 3.13.0-27-generic x86_64)

I installed Zabbix server following Zabbix instructions for Ubuntu 14.04 at: https://www.zabbix.com/documentation/2.2/manual/installation/install_from_packages (bottom section of the page)

Though the follwowing file was not created: /etc/apache2/conf.d/zabbix.conf

But I did edit regional settings in: /etc/zabbix/apache.conf

After that I also copied the apache.conf to /etc/apache2/conf.d/zabbix.conf restarted apache, but gave no result

Apache is running; when I go to http://zabbixservername/, I get the Apache default welcome page.

Also zabbix-server process is running on the server.

This is what the Apache acces.log says when I try to enter the frontend http://zabbixservername/zabbix

[04/Jun/2014:14:42:54 +0200] "GET /zabbix HTTP/1.1" 404 494 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"

I would guess the problem lies somewhere within the communication between Apache and Zabbix? If so... I don't know how to check and/or fix that...

Looking for some guidance here. Additional information can be provided.


Source: (StackOverflow)

Installing Chef Architecture [ Knife, Chef Client, Chef Server ] [duplicate]

Possible Duplicate:
Are there any GOOD Chef, Chef-Server and Chef-Client tutorials out there?

Could someone help / guide me how to configure Knife on my local workstation ( windows ), configure Chef Server on linux VM ( or Ubuntu ) and configuring Node through Chef Server.

I did go through opscode [ link ] to understand the concepts so that i can automate my zabbix [ link ] installation but i don't see any document which points for beginners like me to get started.

Also

[ 1 ] Do we have any work-around on Windows ? i.e can i install knife client on windows and configure chef server on linux ?


Source: (StackOverflow)

Iterative summations in SQL

I have values in a Zabbix DB that are loaded onto it every minute. I need a query that computes hourly totals for different days e.g under 20 Mar 2013, I'd have a row for 0:00 containing a sum of values where time >= 0:00 and < 1:00 and so on. Then I'd have another row for between 1 and 2 AM etc. I am using the query below, but I have to keep changing the times. What I am looking for is a query that will generate for me 24 rows for each hour period in a day. Please help.

SELECT 
    SUM(CASE WHEN itemid = 23661
        THEN value ELSE 0 END) Hits 
    FROM history_uint WHERE 
        clock >= EXTRACT(EPOCH FROM TIMESTAMP '2013-03-24 00:00:00')
         AND clock < EXTRACT(EPOCH FROM TIMESTAMP '2013-03-24 01:00:00')

Source: (StackOverflow)

Zabbix - calculated item function over multiple items

From the Zabbix Manual the calculated items expression follows the form,

func(<key>|<hostname:key>,<parameter1>,<parameter2>,...)

This is fine for computations using functions over a single item like,

max("temp1",120)

How should a function like min() be applied over 3 different items so it returns the lowest of those?


Source: (StackOverflow)

JMX Monitoring using Zabbix

I need to see what memory size, CPU usage and so on for my application, found zabbix as monitoring tool and want to create bridge between zabbix and my app. I do not want to add additional module with JMX MBeans. Are there some implementations/solution for creating bridges ? I wanna copy some jar/jars o my class path and see general monitoring information. Thank a lot.


Source: (StackOverflow)

Zabbix can't get value from Agent (Interrupted system call)

I have problem with the setup of zabbix agent on my Ubuntu 10.04 (lucid) server. I have zabbix server on other server and I configured hosts in server and agent how it should be (used zabbix manual), but Zabbix server cannot connect to agent and gives error:

Get value from agent failed: cannot connect to [[{server IP where is agent}]:10050]: [4] Interrupted system call

Server doesn't have a firewall that can create this problem and port is opened.

I very apreciate any help!


Source: (StackOverflow)

Tool for parsing smtp logs that finds bounces

Our web application sends e-mails. We have lots of users, and we get lots of bounces. For example, user changes company and his company e-mail is no longer valid.

To find bounces, I parse smtp log file with log parser.

Some bounces are great, like 550+#5.1.0+Address+rejected+user@domain.com. There is user@domain.com in bounce.

But some do not have e-mail in error message, like 550+No+such+recipient.

I have created simple ruby script that parses logs (uses log parser) to find which mail caused something like 550+No+such+recipient.

I am just surprised that I could not find a tool that does it. I have found tools like zabbix and splunk for log analysis, but they look like overkill for such simple task.

Anybody knows a tool that would parse smtp logs, find bounces and e-mails that cause them?

Edit: smtp server is microsoft smtp server.


Source: (StackOverflow)