Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This gem provides a library and executable to send passive check results via API to Icinga2.
Require it in your Gemfile
gem 'icinga_result'
or install it directly via
gem install icinga_result
To use the gem you need a configuration file with an Icinga API host and user.
---
username: your icinga username
password: your super secred icinga password
host: icinga.example.com
port: 5665
always_send_host_alive: false
"always_send_host_alive" sends the host alive signal every time a service result is delivered.
You can deliver status results simple by calling icinga-result
. While it is sufficient to supply "name", "status" and "message" when the service exists, you should probably always give as much information as you can. The first time a check result is sent, it will probably fail (since the service does not exist yet). But it will automatically be created and when the check is run a second time, the result will be sent.
$ icinga-result --help
Usage: --help [options]
--service [NAME] Service name
--interval [INTERVAL] Server check interval
--description [DESCRIPTION] Service description
--status [STATUS] Status code for the check
--message [MESSAGE] Status message for the check
--performance-data [DATA] Performance data for the check
--host-alive Send host alive signal
When you implement your check in Ruby, you can call the library directly. A simple script might look like this:
require 'icinga_result/client'
client = IcingaResult::Client.new
service = IcingaResult::Service.new('demo', interval: 3600, description: 'This is a demo check')
if my_special_check
result = IcingaResult::CheckResult.new(0, 'Ok')
else
result = IcingaResult::CheckResult.new(2, 'Special is borken!')
end
client.send(service, result)
FAQs
Unknown package
We found that icinga_result demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.