summaryrefslogtreecommitdiffstats
path: root/plugins.d
AgeCommit message (Collapse)Author
2018-09-30fix spdx (#4327)Paweł Krupa
2018-09-29[cleanup crusade] Shellcheck (#4261)Paweł Krupa
* lint libreswan module * disable linting obsolete shell modules * shellcheck more shell modules * fix review; lint helper scripts * more shellcheck * fix SC2235 in apache.chart.sh * shellcheck last portion of charts.d scripts * final shellcheck; make travis blocking * fix cppcheck * fix indents; fix expansion * fix local var assignments
2018-09-27stock configs in /usr/lib/netdata (#4283)Costa Tsaousis
* makefiles install configs in /usr/lib/netdata/conf.d; #4182 * stock health config in /usr/lib/netdata/conf.d/health.d * unit test path concatenation * simplified health file management * use stream.conf from stock config if it does not exist in /etc/netdata * indicate loading of user config in function call * load netdata.conf from stock dir if not found in /etc/netdata * added NETDATA_USER_CONFIG_DIR * provide defaults before loading config * charts.d uses stock files * fping now uses the stock config files * tc-qos-helper.sh now uses stock configs * cgroup-name.sh now uses stock configs too * simplified cgroup-name.sh for user and stock config * alarm-notify.sh uses stock configs too * simplified fping plugin configs loading * simplified tc-qos-helper.sh configs loading * added error handling to charts.d.plugin * apps.plugin used stock configs * generalized recursive double-directory configs loading * statsd uses stock configs * node.d.plugin uses stock configs * compile-time decision of netdata default paths for all files * makeself cleans up old stock config files from user configuration directories * fixed makeself typo * netdata-installer.sh removes stock files from user configuration directories * python.d.plugin user/stock configs update * cleanup stock config files from /etc/netdata, only once * python.d.plugin log loaded files * fix permissions of stock config files and provide an "orig" link for quick access * create help link on stock configs migration for static installations * create user config directories * example statsd synthetic charts now state they are examples * updated configs.signatures * spec file * fixes in spec file * fix typo * install netdata after cleaning up stock configs from /etc/netdata * python.d: add cpuidle stock conf
2018-09-24Allow DOCKER_HOST env variable to override default docker socket path (#4277)xginn8
2018-09-23Fix several typos in documentation (#4270)Hugo Locurcio
2018-09-22replaced referenced to firehol github org with netdata github org (#4249)Costa Tsaousis
* replaced referenced to firehol github org with netdata github org * increased versions of js files * added new docker hub badge netdata/netdata and restored firehol/netdata
2018-09-20command js is not node.js (#4239)Costa Tsaousis
2018-09-18pythond_small_fixes (#4185)Ilya Mashchenko
* pyhton.d.plugin: respect update_every in jobs * pyhton.d.plugin: run gc.collect every 300 secs in main thread * pyhton.d.plugin: gc collect work around comment * python.d.plugin: do not run all modules debug * python.d.plugin: make gc.collect runs optional, add options to python.d.conf
2018-07-23Fixed trivial mistake in AWS SNS command.Austin S. Hemmelgarn
2018-07-16Minor change to get codacy to be quiet.Austin S. Hemmelgarn
2018-07-16Fixed typo in variable name.Austin S. Hemmelgarn
2018-07-13Add Amazon SNS notification support.Austin S. Hemmelgarn
The Simple Notification Service (SNS) is a reasonably simple message broker service provided by Amazon as part of it's AWS offerings. SNS utilizes the concept of 'topics' (similar to Netdata's concept of 'roles' for notifications) to control message routing. Any given topic may have any number of subscribers of any of the following types: * Email addresses. * Phone numbers for SMS. * HTTP or HTTPS web hooks. * AWS Lambda endpoints. * AWS SQS endpoints. * Mobile applications (via various native push notification services). Topics are rpersented by Amazon Resource Names (ARN), which are a special type of URI. Unfortunately, properly signing requests to AWS endpoints is a serious pain in the arse, so we pretty much have to use the CLI interface. Because of the inflexibility of this tool, setup is somewhat painful. THis uses topic ARN's directly as recipients. SNS does not support delivery to multiple topics in bulk, so a separate call is required for each topic ARN. Users are provided with the ability to customize the message format used for the notifications.
2018-07-12fixed alarm-notify.shCosta Tsaousis (ktsaou)
2018-07-10updating code based on cadacy reportGuillaume Hospital
2018-07-10Merge branch 'ms_team_notification_support' of ↵Guillaume Hospital
https://github.com/tioumen/netdata into ms_team_notification_support Merging with @ktsaou one
2018-07-10adding better channel integration based on @ktsaou advicesGuillaume Hospital
2018-07-08Merge branch 'master' into ms_team_notification_supportCosta Tsaousis
2018-07-03uncomment curl_option as originalGuillaume Hospital
2018-07-03comment curl_optionGuillaume Hospital
2018-07-03removing comment traceGuillaume Hospital
2018-07-03removing Splunk stuff in the MS Team payload, to much specific to my env.Guillaume Hospital
2018-07-03Adding suggested modifications from PR #3903Guillaume Hospital
2018-07-02log failed commands return code; #3920Costa Tsaousis (ktsaou)
2018-06-28adding Microsoft Team support for alert notificationGuillaume Hospital
2018-06-22python.d.plugin: disabled_by_default feature addedlgz
2018-06-21alarm-notify.sh: allow sender names with spaces; fixes #3843Costa Tsaousis (ktsaou)
2018-06-10Merge pull request #3794 from Ferroin/fleep-notificationsCosta Tsaousis
Add fleep.io notification support.
2018-06-10Merge pull request #3777 from Hermsi1337/rocketchat_supportCosta Tsaousis
Add rocket.chat notifications
2018-06-10Merge pull request #3772 from Ferroin/licensing-cleanupCosta Tsaousis
Licensing cleanup.
2018-06-08Add fleep.io notification support.Austin S. Hemmelgarn
This adds support for sending alarm notifications to fleep.io conversations via webhooks. It uses the JSON interface to POST a simple message containing information about the alarm, and by default uses the host that raised the alarm as the sender name. Recipients are specified via the last component of the webhook URL (the only part that's different for each webhook).
2018-06-01indent fixingDennis Hermsmeier
2018-06-01Add rocketchat integrationDennis Hermsmeier
2018-06-01python.d.plugin: remove unused import (time.time)lgz
2018-05-31Add SPDX-License-Identifier headers to most files.Austin S. Hemmelgarn
This tags all the files that I can clearly identify as being part of Netdata and not a local copy of a third party package that we're redistributing.
2018-05-29Add the option to thread email notifications.Austin S. Hemmelgarn
This adds a new configuration option in health_alarm_nofity.conf to insert In-Reply-To and References haders in email notifications. The contents of these headers are composed in a deterministic way from the chart name, alarm name, and host name. This allows email clients to sort netdata alert emails into groups based on the combination of chart, alarm, and host, which can help significantly when dealing with a large number of alerts. It also provides something for scripts that might process and filter thes emails to match on that's a bit easier to parse than the subject line. We default to not enabling this so that people who have their e-mail clients configured for threaded reading don't see an unexpected change in behavior. Strictly speaking, this is technically a misuse of the headers, as they are supposed to only reference the Message-ID header of an existing e-mail. However, I know of no e-mail clients that enforce standards compliant behavior (as it would break threading picked up partway through a thread), so we should be safe. Minimally tested (using the test-alert.sh script and running for a short while on a server where I synthetically induced lots of alerts).
2018-05-26do not attempt to use bash loadable modules on static builds; update bash to ↵Costa Tsaousis (ktsaou)
4.4.18 and curl to 7.60.0
2018-05-26rename to mysleep_builtin to conform with the rest of the functionsCosta Tsaousis (ktsaou)
2018-05-26properly stop when builtin sleep is detectedCosta Tsaousis (ktsaou)
2018-05-26remove file if it is not a pipe; prefer read over builtin sleep; fallback to ↵Costa Tsaousis (ktsaou)
sleep if builtin sleep fails
2018-05-26use official loadable modules dirCosta Tsaousis (ktsaou)
2018-05-26enable bash loadable module for sleep when available; fixes #3754Costa Tsaousis (ktsaou)
2018-05-26Merge pull request #3753 from ktsaou/masterCosta Tsaousis
invalid use of shell -eq with strings in alarm_notify.sh syslog support
2018-05-26invalid use of shell -eq with strings; fixes #3733Costa Tsaousis (ktsaou)
2018-05-14Fix the new date handling in alarm-notify.shAustin S. Hemmelgarn
The original commit unintentionally capitalized the name of the `date_format` variable in plugins.d/alarm-notify.sh, which caused the new date handling support to not work at all (but thankfully did not break any existing functionality). This corrects that issue, so that the new date handling support works correctly.
2018-05-10Merge pull request #3599 from Ferroin/alarm-loggerCosta Tsaousis
Add syslog support to alarm-notify.sh.
2018-05-09Add support for arbitrary date formats for netdata alerts.Austin S. Hemmelgarn
This adds support to alarm-notify.sh to report dates in alert notifications using an arbitrary format string. The current default behavior (just using the default format fromm `date`, which is simply the ANSI C asctime() default) is preserved. In the event that the user specified format string doesn't work, the script will fall back to using the default output of the date command. THe config file includes comments listing a handful of widely used internet date formats as examples. This also removes the explicit quoting around the shell expansion used to get the date, as it's unneeded (shell expansion results done with $() is implicitly treated as a single string), and makes it very hard to get this working properly.
2018-05-03Add the chart name to syslog messages.Austin S. Hemmelgarn
THis adds the chart name to the syslog messages produced by alarm-notify.sh. After this, log messages will now look like: prefix WARNING on wild-karde at Tue Apr 3 09:00:00 EDT 2018: disk_space._ out of disk space time = 5h
2018-04-29FIXED: "alarm-notify.sh test" produces error exit code on successAndrey Galkin
- Changed to produce "0" exit code on success - Exit code "1" is produced only if there is any error spotted
2018-04-05Fix yet another stupid typo pointed out by Codacy...Austin S. Hemmelgarn
2018-04-05Update syslog support to allow per-role configuration.Austin S. Hemmelgarn
This adds support to syslog notifications to have per-role configuration. This includes specifying facilty and log-level per-role, target servers per-role, and a message prefix per-role, possibly multiple times. This is done by specifying each combination of configuration as a 'recipient' in the role recipients variables using the following format: [[facility.level][@host[:port]]/]prefix As part of this, the default log level has been changed to depend solely on the type of alert, crit for CRITICAL, warning for WARNING, and info for everything else (most notably CLEAR), and the end-user configuration and the user configuration of these default levels has been removed. In addition, the message format has been changed to look like the following: Apr 3 09:00:30 localhost netdata: prefix WARNING on wild-karde at Tue Apr 3 09:00:00 EDT 2018: out of disk space time = 5h