icinga2 | monitoring platform with a powerful configuration language | Monitoring library
kandi X-RAY | icinga2 Summary
kandi X-RAY | icinga2 Summary
Icinga is a monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting. Scalable and extensible, Icinga can monitor large, complex environments across multiple locations. Icinga 2 is the monitoring server and requires Icinga Web 2 on top in your Icinga Stack. The configuration can be easily managed with either the Icinga Director, config management tools or plain text within the Icinga DSL.
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 icinga2
icinga2 Key Features
icinga2 Examples and Code Snippets
Community Discussions
Trending Discussions on icinga2
QUESTION
I am trying to add port 5665 into istio-ingressgatway
and its been added but the traffic is not (I think) routed correctly since i am keep getting SSL error
ANSWER
Answered 2021-Dec-13 at 10:24Just to add the answer for others how i fixed the issue.
Gateway Change:
QUESTION
I am at wits end.
My scenario is that I am using python requests to interact with Icinga2 API and I am trying to schedule a downtime. So I know how that is supposed to works and it works most of time. But unfortunately I am totally out of luck when the Icinga2 service I try to set a downtime to has name with a backslash in it.
My test environment:
- Icinga2 2.9.0
- Python 3.6.8 / Python 3.8.11
- requests 2.27.0
Prerequisite: Create a host in Icinga. Create a service in Icinga with a "\"-character.
Python Code for Reproduction:
...ANSWER
Answered 2021-Jul-26 at 16:34You can try adding an r to the front of the string after the filter key. Also, I think this closed parenthesis is unnecessary.
Python treats backslashes in strings as special characters, adding an 'r' before the string make it not treat them as special characters, and instead as backslashes 'filter': r'host.name=="HOSTNAME" && service.name=="SERVICE\NAME"'),
QUESTION
I have Icinga2 installed with icingaweb2 on Ubuntu 19.10 and I have Icinga director Installed for the configuration which is really awesome.
I created some command and attached them to linux-agent host template.
that was a mistake cause I added more servers that don't need these new commands.
so I created a new host template called my-linux-agent as a duplicate of linux-agent and now I want to move all my custom commands to the new host template and I can't find any way to do that.
versions: Icinga2: 2.10.5 IcingaWeb2: 2.7.1
thanks
...ANSWER
Answered 2020-Aug-09 at 13:47so i couldn't find a way to move the command to a different host directly
but you can easily duplicate the command to a different host and remove the previous one using the following simple steps:
- open the relevant command
- click on
duplicate
to duplicate the command - choose the relevant host and click save
- open the previous command and delete it
QUESTION
I want to make a small PS script that checks the status of a service logon account against a server list. What i need to do is, if a server is down, it shows a custom error message that tells me which server from the list is offline, instead of the default bulky red error message.
Here is what i came up with so far.
This is the RPC error powershell shows if something wrong with a server.
...ANSWER
Answered 2020-Jul-08 at 16:13The error is on Get-WmiObject
not Where-Object
. And you have to set error action to stop to catch terminating error.
QUESTION
An Icinga2 plugin (written by myself) returns performance data with metrics named /var(avail_MB)
, /var(total_MB)
and similar. Data is forwarded to an InfluxDB with Grafana as Frontend.
I'm using "GROUP BY" "tag(metric)" and "ALIAS BY" "$tag_metric
" in a dashboard's panel query.
The metric names are displayed correctly below the graph then.
However when I try to override series by specifying "alias or regex" /var(avail_MB)
it does not seem to work, and when going back from panel configuration to dashboard, I get an error message saying "Panel rendering error '/var(avail_MB)' is not a valid regular expression.".
I tried to put a backslash in front of (
and )
, but that didn't help.
To make matters worse, the whole graph disappeared, and when trying to open the "Query Inspector", the frontend seems to take forever (Query never appears).
What is the problem, and how could I fix it? I'm new to Icinga2, Grafana and InfluxDB (I'm just a "user" not administrator of those).
The color change is not applied to the graph.
Here is an example of plugin output:
...ANSWER
Answered 2020-Jun-10 at 07:30The problems seems to be the beginning of the string ("/var").
Grafana seems to treat every string starting with /
as regular expression, and it expects any regular expression with /
, too (it seems).
So the fix was to add a trailing /
, and escape the literal /
as \/
.
Unfortunately this only removes the error message, but doesn't make the override work (match). It is also required to backslash-escape the parentheses and the slash(es):
Instead of /var(total_MB)
you need to write /\/var\(total_MB\)
.
The original problem has to origins:
The monitoring plugin specification at https://www.monitoring-plugins.org/doc/guidelines.html#AEN201 states: "2. label can contain any characters except the equals sign or single quote (')") states that any character except is allowed as metric name.
Grafana v6.7.3 proposes the incorrect (i.e.: unescaped) values for "alias or regex".
That is how I had created the problem.
QUESTION
I am trying to add a 1 extra security group to a running instance. Reading the documentation you should be able to when you use this:
...ANSWER
Answered 2020-May-13 at 16:04result: host has only got sg-4 and missing sg-[1:3]
Well, yeah, because you looped over them, and say "the list of groups is only {{ item }}", when what you wanted is the union
filter
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install icinga2
Installation
Monitoring Basics
Configuration
Distributed Monitoring
Addons, Integrations and Features
Troubleshooting
Upgrading
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