zabbix | Script and templates for Zabbix | Monitoring library
kandi X-RAY | zabbix Summary
kandi X-RAY | zabbix Summary
In bin you will find Bash/Perl/PHP scripts used by some User Parameters (need to be installed on agent). In sudoers.d you can find settings for sudo. In Templates there are XML files ready to import using Zabbix GUI. In zabbix_agentd.conf.d there are custom UserParameter (need to be installed on agent). Templates was tested on Red Hat 5.x, 6.x and CentOS 5.x, 6.x. Common UserParameter were added to ``zabbix_agentd.conf.d/linux.conf`` file. Please add it to your own Zabbix Agent installation. Sometimes you need to use ``sudo`` for ``UserParameter``. All rules are in file ``sudoers.d/zabbix``. Please let us know if you have any questions or concerns.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zabbix
zabbix Key Features
zabbix Examples and Code Snippets
Community Discussions
Trending Discussions on zabbix
QUESTION
Hi & thank you in advance :)
I have a json file with data that needs to added to Zabbix as hosts.
...ANSWER
Answered 2022-Apr-08 at 08:47You were almost there. Don't point to host.name
in locals
var. Use directly host as shown below.
QUESTION
I would like to modify the IIS logs for further transfer to the destination. Now I am parsing the IIS log with the xm_csv module, as in the template. UndefValue is disabled to not get empty.
How can I interact with parsed data from w3c_parser?
For example, I want to combine into a variable $request = '"' + $cs-method + ' ' + $cs-uri-stem + ' ' + $cs-version + '"'; such a value, but I get an error. When I try to write a field from w3c_parser to $raw_event, I also get an error. Any other data is added without error.
For example $raw_event = $c-ip
-- error
$raw_event = $EventTime + ' ' + $http_host
-- no error
Example error, logs and config file below
2022-03-23 16:49:56 ERROR Couldn't parse Exec block at C:\Program Files\nxlog\conf\nxlog.conf:59; couldn't parse statement at line 71, character 32 in C:\Program Files\nxlog\conf\nxlog.conf; syntax error, unexpected +, expecting (
2022-03-23 16:49:56 ERROR module 'iis_w3c' has configuration errors, not adding to route 'uds_to_file' at C:\Program Files\nxlog\conf\nxlog.conf:84
2022-03-23 16:49:56 ERROR route uds_to_file is not functional without input modules, ignored at C:\Program Files\nxlog\conf\nxlog.conf:84
2022-03-23 16:49:56 WARNING no routes defined!
2022-03-23 16:49:56 WARNING not starting unused module iis_w3c
2022-03-23 16:49:56 WARNING not starting unused module file
2022-03-23 16:49:56 INFO nxlog-ce-3.0.2272 started
Current log format
date time s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-bytes cs-bytes time-taken
2022-03-23 08:00:01 HOST.DOMAIN 99.XX.XX.4 GET /AnalyticsService - 443
- XX.XX.XX.XXX HTTP/1.1 Zabbix - - site.host.domain 200 3918 144 4
Required log format
...$http_host $remote_addr $remote_user [$time_local] UNIX-TIME-$msec "$request" $status "$sent_http_content_type" $body_bytes_sent "$http_referer" "$http_user_agent" "$http_cookie" $request_time "$upstream_addr" NGINX-CACHE-$upstream_cache_status "$request_id" "$request_body"
host.domain 99.99.99.249 - [11/Mar/2022:20:09:56+0300] UNIX-TIME-1647018596.031 "GET /api/company.php?id=853747 HTTP/1.1" 200 "text/xml; charset=UTF-8" 1455 "-" "-" "20b6b325ea192383cb1244412247c5ea=3002538ef353c9daab4f742176a840; etpsid=f488b343a23d1a4a2332e089a0" 0.059 0.059 "10.10.10.111:80" NGINX-CACHE-- "d0b5ac12cf82671067aa5e6c5c" "-"
ANSWER
Answered 2022-Mar-25 at 11:00let's start with NXLog language in the conf files. Dashes in explicit format are not allowed - you can check: https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#lang_fields
Hence, one needs to apply curly braces to reach the goal ({}
). If I understand your issue correctly, this may help with most of your issues.
QUESTION
I did the following ps1 script:
...ANSWER
Answered 2022-Mar-09 at 17:05You can use the Group-Object
cmdlet to group computers by their .OperatingSystem
property, which allows you to construct an ordered hashtable[1] that translates into the desired JSON structure when passed to ConvertTo-Json
:
QUESTION
Apologies if this is basic but the doc for jq is not so good i have this json:
...ANSWER
Answered 2022-Mar-02 at 14:15any
(see the manual) can return a boolean value if a condition matches with at least one item.
QUESTION
I'm having trouble creating the output from two Zabbix tables. I would like to output IP(interafce) and NAME(hosts) using HOSTID.
interface table
...ANSWER
Answered 2022-Feb-23 at 08:10Use a left join:
QUESTION
I have the below script:
bash Script:
...ANSWER
Answered 2022-Feb-20 at 17:01Could I have only one SSH call to execute multiple commands and set both variables?
Sure. You could do:
QUESTION
I need to install specific rpm file which I'm pulling from git and it looks like this "zabbix-agent2-5.2.4-1.el7.x86_64.rpm"
This is state file which I'm using:
...ANSWER
Answered 2022-Jan-14 at 11:03The sources
parameter takes an absolute filename, and doesn't consider wildcards. This is where pillar can be used to dynamically supply the version (at runtime).
For example:
QUESTION
Could you please tell me how can I create an alarm from a Python script in a Zabbix system?
I have a Python script
in which a certain function is processed, and at a certain point I would like to create an alarm in the Zabbix system
when a certain condition is created in the script. I also have a mail server
. I was thinking of creating a separate mailbox for Zabbix
, to this email address I will send
a letter from Python, and the Zabbix system will receive this letter, process and create a Problem
. Is such functionality possible?
ANSWER
Answered 2021-Dec-20 at 17:53Easiest is to use zabbix for this. To do that you feed values to an item in zabbix in one of the many ways and create a trigger that fires when you want it. If a script is needed to generate the values you can implement the script as a user parameter if it is short running. If it takes more than a few seconds using zabbix sender might be smarter.
QUESTION
I'v tried to install zabbix-agent 3.4 on Ubuntu 20.0 using this way:
...ANSWER
Answered 2021-Dec-06 at 19:33You are in Ubuntu focal
, apt
try to install the highest package version. You should specify the needed version to apt
.
apt policy zabbix-agent
Will print:
QUESTION
For zabbix5.0, the default alarm is generated when the disk usage exceeds 80%, but I want to change the alarm to exceed 90%. How should I change the alarm? I did not find the modification, and I used the Template 'Template OS Linux by Zabbix Agent Active'.
...ANSWER
Answered 2021-Nov-24 at 13:34go to that host under configuration -> hosts, choose you host, click on Macros -> inherited and host macros, look for {$VFS.FS.PUSED.MAX.WARN} (default 80) and change it, you should also change {$VFS.FS.PUSED.MAX.CRIT} (default 90)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zabbix
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page