Comments (10)
Hi @gvenka008c
This question might get better traction on the Monitoring Portal forums: https://monitoring-portal.org/index.php?board/117-icinga-2/
I think you need to add a new CheckCommand for check_cluster, then a new Service (apply), but I have not implemented the check myself
from icinga2.
@jjethwa Thanks.
from icinga2.
@gvenka008c np 😄
from icinga2.
@jjethwa Tried this but couldn't have it work.
commands.conf
object CheckCommand "check_cluster" {
import "plugin-check-command"
command = [ "/usr/lib64/nagios/plugins/check_cluster" ]
arguments = {
"-l" = "$check_cluster_label$"
"-w" = "$check_cluster_warning$"
"-c" = "$check_cluster_critical$"
"-d" = "$check_cluster_data$"
}
}
#services.conf
object Service "my-cluster-check" {
host_name = NodeName
check_command = "check_cluster"
vars.check_cluster_label = "PING"
vars.check_cluster_warning = 1
vars.check_cluster_critical = 2
vars.check_cluster_data = {{ get_service("host1.net", "PING").state_id + ", " + get_service("host2.net", "PING").state_id }}
}
When I bring down one of the node, it is still showing OK status. Didn't see Warning. Will keep you posted with the findings :)
from icinga2.
Hmm, seems like that's the correct config and parameters needed according to the check documentation: https://www.monitoring-plugins.org/doc/man/check_cluster.html
I wonder if there is a cluster health check setting that needs to be tweaked?
from icinga2.
@jjethwa Yes, still trying to figure it out on how to run it from command line. Not sure how to get his argument.
-d, --data=LIST
The status codes of the hosts or services in the cluster, separated by
commas
from icinga2.
I was trying to get the state of the host as shown below
vars.check_cluster_data = get_host("host1").state + ", " + get_host("host2").state
Both are returning value as 1
Check Cluster Data 1, 1
Any thoughts? Both the nodes are up and running. Is that the right way of getting the host state? Please suggest.
from icinga2.
Hi @gvenka008c
Unfortunately I don't know enough about the clustering and cluster monitoring part of Icinga2. This might be helpful as it shows how to alert when a satellite server is down: https://monitoring-portal.org/index.php?thread/34549-solved-satellite-down-no-state-change/
from icinga2.
thx @jjethwa
from icinga2.
np @gvenka008c Wish I could have helped more 😄
from icinga2.
Related Issues (20)
- Adding Vsphere Module HOT 5
- Cant restart an exited container HOT 11
- Your MySQL Database Server is running currently inside the icinga2 container. In future, the MySQL will be located in a separate container by default. HOT 22
- Corrupt File? HOT 5
- No Graphs from graphite for 12 hours or more (Days, Weeks, Months and Years) HOT 6
- Permissions building the image HOT 2
- Additional App HOT 1
- DockerFile issue: Access denied for user root (using password NO) HOT 16
- have issue with check_http HOT 9
- Director supervisor script should not run when director is disabled HOT 7
- mail notification problem HOT 7
- Environment variable to specify icinga2 `log-level` HOT 7
- Class 'Icinga\Util\Translator' not found HOT 4
- permission error on /var/cache/icinga2 folder under Windows HOT 1
- Weird behaviour when mounting /etc/icinga2/* HOT 8
- Errors after upgrade HOT 2
- Documentation mismatch HOT 1
- Dockerfile: deb http://packages.icinga.org/debian does not exist anymore (?) HOT 2
- MySQL user 'root' has no password HOT 2
- Disable Icinga default host and service HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icinga2.