zabbix-tooling / zabbix-agent-extensions Goto Github PK
View Code? Open in Web Editor NEWzabbix-agent-extensions
License: GNU General Public License v2.0
zabbix-agent-extensions
License: GNU General Public License v2.0
Hi,
I'm new to zabbix. I was trying to understand the userparameter for elasticsearch defined here at
https://github.com/scoopex/zabbix-agent-extensions/blob/master/extension-files/agent-config/zabbix_elasticsearch.conf
From where are we passing these args to script
UserParameter=elasticsearch[],/usr/bin/zabbix_check_elasticsearch $1 $2
These args are being passed through this elasticsearch[] key but where are we providing the values.
Please help me to understand these $1 and $2.
@scoopex
To ease the development, testing and distribution of the zabbix-agent-extensions the entire package should be procressed automatically.
Testing:
Release Creation:
Hi,
I have this template and the extensions working, but there is an issue with the availability display icon at hosts view.
When the agent is active and working, the icon should be green. When activating the template Custom - OS - Linux, all seems to be working, but the icon shows greyed out.
Could it be a problem with color configuration of the template?
Thanks.
Jota.
Trying to import Linux templates (both 3.2 and 3.4 house 3.4 template actually:
https://github.com/scoopex/zabbix-agent-extensions/blob/master/zabbix_templates/3.2/custom-os-linux.xml
https://github.com/scoopex/zabbix-agent-extensions/blob/master/zabbix_templates/3.2/custom-os-linux-hardware.xml
https://github.com/scoopex/zabbix-agent-extensions/blob/master/zabbix_templates/3.4/custom-os-linux.xml
https://github.com/scoopex/zabbix-agent-extensions/blob/master/zabbix_templates/3.4/custom-os-linux-hardware.xml
) raises a number of errors, including unexpected and missing tags.
For proper memory sizing of virtual machines it will be very useful to get a impression of the amount of successful pagecache lookups.
Smartmon attributes a shown in a different ways for SAS drives:
# smartctl -A /dev/sdd
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.13.0-39-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
Current Drive Temperature: 47 C
Drive Trip Temperature: 60 C
Manufactured in week 19 of year 2017
Specified cycle count over device lifetime: 10000
Accumulated start-stop cycles: 73
Specified load-unload count over device lifetime: 300000
Accumulated load-unload cycles: 248
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 2352886376
Blocks received from initiator = 2798401440
Blocks read from cache and sent to initiator = 2753243204
Number of read and write commands whose size <= segment size = 354522558
Number of read and write commands whose size > segment size = 826287
Vendor (Seagate/Hitachi) factory information
number of hours powered up = 4301.02
number of minutes until next internal SMART test = 37
# smartctl -A /dev/sdd
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.13.0-39-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000e 130 130 039 Old_age Always - 4294967295
5 Reallocated_Sector_Ct 0x0033 100 100 001 Pre-fail Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 4225
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 25
13 Read_Soft_Error_Rate 0x001e 130 130 000 Old_age Always - 30064771071
170 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 0
174 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 23
179 Used_Rsvd_Blk_Cnt_Tot 0x0033 100 100 010 Pre-fail Always - 0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0032 100 100 000 Old_age Always - 18415
181 Program_Fail_Cnt_Total 0x003a 100 100 000 Old_age Always - 0
182 Erase_Fail_Count_Total 0x003a 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 000 Old_age Always - 0
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 26
195 Hardware_ECC_Recovered 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
201 Unknown_SSD_Attribute 0x0033 100 100 010 Pre-fail Always - 236778632690
202 Unknown_SSD_Attribute 0x0027 100 100 000 Pre-fail Always - 0
225 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 675098
226 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 102400
227 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 0
228 Power-off_Retract_Count 0x0032 100 100 000 Old_age Always - 361041458
232 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0
233 Media_Wearout_Indicator 0x0032 100 100 000 Old_age Always - 675098
234 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 675098
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 425912
245 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 100
Hi I have some problem:
UserParameter=varnish.stat[*],(test -f /usr/bin/varnishstat && varnishstat -1 -f $1 | awk '{print $$2}')
is not working, on zabbix serwer show "cannot convert value to numeric type"
when I want to execute (test -f /usr/bin/varnishstat && varnishstat -1 -f
`varnishstat: option requires an argument -- 'f'
Usage: varnishstat
Options:
[-1] Print the statistics to stdout
[-f ] Field inclusion glob
[-h] Usage help
[-j] Print statistics to stdout as JSON
[-l] Lists the available fields to use with the -f option
[-n
echo "(test -f /usr/bin/varnishstat && varnishstat -1 -f$1 | awk '{print $$2}')" (test -f /usr/bin/varnishstat && varnishstat -1 -f | awk '{print 33062}')
how it should work?
The Python script for Elasticsearch doesn't output values any more.
This bug seems to be introduced with 88909dc and the switch to Python 3.
NTP monitoring currently depends on the installation of ntpd.
Enhance the current implementation to automatically discover the type of the ntp-synchonization and provide suitable measures.
Systemd-timesyncd implements SNTP, not NTP, hence multi-server support is out of focus. If you want a full NTP implementation, please use ntpd or chrony.
(systemd/systemd#2893)
$ timedatectl show-timesync
FallbackNTPServers=ntp.ubuntu.com
ServerName=ntp.ubuntu.com
ServerAddress=2620:2d:4000:1::3f
RootDistanceMaxUSec=5s
PollIntervalMinUSec=32s
PollIntervalMaxUSec=34min 8s
PollIntervalUSec=17min 4s
NTPMessage={ Leap=0, Version=4, Mode=4, Stratum=2, Precision=-25, RootDelay=8.926ms, RootDispersion=1.770ms, Reference=91EECB0E, OriginateTimestamp=Fri 2023-09-15 10:05:40 CEST, ReceiveTimestamp=Fri 2023-09-15 10:05:40 CEST, TransmitTimestamp=Fri 2023-09-15 10:05:40 CEST, DestinationTimestamp=Fri 2023-09-15 10:05:40 CEST, Ignored=no PacketCount=25, Jitter=279.841ms }
Frequency=446926
chronyc tracking
Reference ID : 1.2.3.4 (a.b.c)
Stratum : 3
Ref time (UTC) : Fri Feb 3 15:00:29 2012
System time : 0.000001501 seconds slow of NTP time
Last offset : -0.000001632 seconds
RMS offset : 0.000002360 seconds
Frequency : 331.898 ppm fast
Residual freq : 0.004 ppm
Skew : 0.154 ppm
Root delay : 0.373169 seconds
Root dispersion : 0.024780 seconds
Update interval : 64.2 seconds
Leap status : Normal
Modify "zabbix_discovery_devices" to report disks by hardware type.
# cat /sys/block/sdn/queue/rotational
0
Use smartctl and find a generic method to monitor TBW.
(https://askubuntu.com/questions/865792/how-can-i-monitor-the-tbw-on-my-samsung-ssd)
# smartctl -a /dev/sdn|egrep "Total_LBAs_Written"
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 407132
Implment haxproxy support based on http://blog.random.io/haproxy/
Your "YAML parcel" from zabbix_check_puppetstate is NOT working for such puppet summay file (space replaced by _ because of github autoformat):
__version:
____config:
____puppet: "3.8.7"
__time:
____last_run: 1548848434
any ideas how to fix it?
Hi,
Fisrt of all thks for the extension. I m having troubles making the nginx monitoring work.
I added {$NGINX_HTTP_PORT} =80 to my host macro but i'm getting this error.
Thks in advance for your help
The way to package this product should be improved.
my whishlist:
Help is very welcome :-)
Hi,
First of all I would like to thank you for this outstanding and absolutely amazing work you shared.
I like the approach taken, how well it's all designed and structured. Thank you!
Regarding the issue:
/usr/bin/zabbix_discovery_filesystems --help
Output contains:
Example json configuration file:
i.e. /etc/zabbix/item_zabbix_discovery_filesystems.json
---
{
"regex_includes_name": [
".*"
],
"regex_includes_type": [
".*"
],
"regex_excludes_type": ["nfs", "nfs4", "nfsd", "cifs", "autofs", "binfmt_misc", "cgroup", "cgroup2", "configfs",
"debugfs",
"devpts", "devtmpfs", "efivarfs", "fusectl", "fuse.gvfsd-fuse", "hugetlbfs", "mqueue",
"fuse.lxcfs", "xenfs", "rpc_pipefs", "efivarfs", "tracefs",
"proc", "pstore", "securityfs", "sysfs", "tmpfs", "vfat", "iso9660" ],
}
---
The problem is that this example is missing at least empty JSON structure "regex_excludes_name": [],
Which results in JSON parse complains:
Traceback (most recent call last):
File "/usr/bin/zabbix_discovery_filesystems", line 171, in <module>
if check_match("exclude", filesystem_name, config["regex_excludes_name"]):
KeyError: 'regex_excludes_name'
It also has JSON syntax error - comma after last element "regex_excludes_type", which produces JSON parsing error:
# zabbix_agentd -t "vfs.fs.discovery"
vfs.fs.discovery [t|Could not parse JSON config file
Hi. I am new to zabbix and this module (about 1 hour) but quite good general linux maintenance.
I successfully installed zabbix server on my webserver.
Try to find a offical package source service, where the packages can be published.
To check the proper function of a mail setup, provide a possibility to do a two way check:
When i try to import template a get an error :
Details
Created: Application "Custom - Service - Varnish" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Backend" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Cache" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Connections" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish ESI" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Fetch" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Sessions" on "Custom - Service - Varnish".
Created: Application "Custom - Service - Varnish Workers" on "Custom - Service - Varnish".
Cannot find value map "Host status" used for item "Varnish Loadbalancer Health Check" on "Custom - Service - Varnish".
I am trying to import the template in zabbix 3.4 but i get the next message:
Invalid tag "/zabbix_export/templates/template(1)/items/item(1)": the tag "valuemap" is missing.
I try to correct the problem but i cant found it
When i try to import template a get an error :
Import failed
Details
Invalid XML tag "/zabbix_export/graphs/graph(3)/ymax_item_1": unexpected tag "host".
I try under zabbix 3.0
Hi --
When I place in /etc/zabbix//zabbix_agentd.d/userparameter_apache.conf:
UserParameter=apache.writer[],/usr/bin/zabbix_check_apache-mod-status writer $1 2>/dev/null
UserParameter=apache.reader[],/usr/bin/zabbix_check_apache-mod-status reader $1 2>/dev/null
UserParameter=apache.keepalive[],/usr/bin/zabbix_check_apache-mod-status keepalive $1 2>/dev/null
UserParameter=apache.total[],/usr/bin/zabbix_check_apache-mod-status total $1 2>/dev/null
UserParameter=apache.all[],/usr/bin/zabbix_check_apache-mod-status all $1 2>/dev/null
UserParameter=apache.accesses[],/usr/bin/zabbix_check_apache-mod-status accesses $1 2>/dev/null
UserParameter=apache.kbytes[*],/usr/bin/zabbix_check_apache-mod-status kbytes $1 2>/dev/null
Zabbix agent fails to start....
Can't see the reason why.
As soon as this file is removed from directory zabbix agent start without any issue.
Please kindly advise.
Thank you!
The nfs measures should return "0" if not nfs is active on the current system instead of making the item unsupported.
# zabbix_get -s 127.0.0.1 -k "nfs.rpc.calls"
# zabbix_get -s 127.0.0.1 -k "nfs.rpc.retransmits"
Currently is heavily maintained on Ubuntu 16.04.
Tests, fixes and support requests are very welcome.
OS: Debian 10 (Buster)
Redis: Redis server v=5.0.5 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=c79128ad1747b60
# /usr/bin/zabbix_check_redis localhost list_key_space_db
database_detect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.