Giter Site home page Giter Site logo

zabbix-tooling / zabbix-agent-extensions Goto Github PK

View Code? Open in Web Editor NEW
112.0 112.0 45.0 735 KB

zabbix-agent-extensions

License: GNU General Public License v2.0

Shell 20.61% Python 34.47% Ruby 11.81% HTML 0.37% XSLT 24.86% Roff 7.54% Dockerfile 0.33%

zabbix-agent-extensions's People

Contributors

abb007 avatar anton-mesnyankin avatar atsonkov avatar blodone avatar burnfaker avatar chrw avatar cotsog avatar cruwe avatar hkirov avatar scoopex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zabbix-agent-extensions's Issues

Query on elasticsearch userparameter

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

Automatic CI Builds and automatic APT Source

To ease the development, testing and distribution of the zabbix-agent-extensions the entire package should be procressed automatically.

Testing:

  • Test the package on recent CentOS, Ubuntu and OpenSuse Systems

Release Creation:

  • Upload as GITHub release
  • Upload to a package server

Availabilty status not displayed

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.

Zabbix 3.0 (LTS) compatibility issue

FEATURE: Monitor pagecache hitrate

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

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

UserParameter don't work, and don't know why?!

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 $1 | awk '{print $$2}')

`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

] varnishd working directory
[-N ] VSM filename
[-t <seconds|off>] VSM connection timeout
[-V] Version
[-x] Print statistics to stdout as XML
`

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?

Add support for systemd/chrony timedatectl monitoring

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

YAML "parser" is not working

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?

Improve packaging

The way to package this product should be improved.

my whishlist:

  • automatic build of all types of packages
  • only one changelog
  • only one release number specification
  • automatic testing
  • automatic upload of packages to github
  • specify all dependencies

Help is very welcome :-)

zabbix_discovery_filesystems help contains erroneous JSON example

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

Please clarify installation from rpm/deb package

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.

  1. Must I also create localhost as an "agent" machine on zabbix server?
  2. I executed:
    yum localinstall zabbix-agent-extensions-2.4.36-1.noarch.rpm
    which packages should I then install/enable/start?
  3. When importing a template what would be standard option for a agent/server on the same single machine i.e. do not create new host etc.?

Package source

Try to find a offical package source service, where the packages can be published.

Implement a smtp/imap roundtrip

To check the proper function of a mail setup, provide a possibility to do a two way check:

  • send a mail using smtp over a remote service (i.e. gmail) and check if the mail can be received on your personal setup
  • send a mail using smtp over your personal setup and receive it on remote service (i.e. gmail)

Problem to add custom-service-varnish.xml on Zabbix-3.0

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".

fail import varnish template

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

problem to add custom-os-linux.xml

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

zabbix 4.0 agent failing to start

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!

NFS : Unsupported Item

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"

redis lld print only `database_detect`

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.