Im First time using icinga2. And this project is for my final year project. Can anyone help me with my topic. Im trying to adding host to my icinga2. I using icinga2 to create delay detection for my 2 hosting client. these client are using windows as their OS. So im just want to know how to use icinga director to add host because until now im adding host it only can use ping command and not any http or any SNMP.
Icinga2 Version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.2-1)
Copyright (c) 2012-2024 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: Ubuntu
Platform version: 22.04.4 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 6.5.0-14-generic
Architecture: x86_64
Build information:
Compiler: GNU 11.4.0
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
If I understood you correctly, you have already configured your two hosts through the Icinga Director and now want to create services on those hosts to be monitored?
For starters, I would recommend you the following documentation pages:
The first link should give you an idea how to create and apply services to your hosts, e.g., for HTTP monitoring. The second one refers SNMP, as you mentioned it, and the last one comments on an installed Icinga Agent on the hosts.
Please take your time reading those pages and follow the links there. If you are having further questions later on, please feel free to post them here.
So far im not done with my hosting this two host. Because the firewall from windows still blocking the connection to my icinga2. By the way, Im using VirtualBox as my medium to use this two OS at the same time.
This is after im apply my service set to the my Windows host. I can connect with Ping4 but not with any other services
If you have a Satellite, shouldnât the panil-VirtualBox connect to the Satellite?
It looks like a mess to me, formating it as code would help.
Also which enpoints belong to which zones isnât clear to me - maybe drawing a diagram would help?
I dont have any satelite. Im just copying the default code from zones.conf to you and not do any editing in this zones.conf. And the zones.conf from windows is it right im just download the icinga2 agent from the package.icinga2.com
So Right now what im going to do to connect this problem??
To me, this looks like in the node setup, you told it, that the client is also the master or I miss understand your setup - why I asked about the diagram.
As you use the director, you should see the agents in zones.d/master/agent_endpoints.conf and zones.d/master/agent_zones.conf and in zones.conf on the agent you should have something like:
object Endpoint "panli-VirtualBox" {
host = "192.168.10.5"
port = "5665"
}
object Endpoint "Windows-Local" {
}
object Zone "master" {
endpoints = [ "panli-VirtualBox" ]
}
object Zone "Windows-Local" {
endpoints = [ "Windows-Local" ]
parent = "master"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
on the agent you can experiment by changing the zones.conf on the master I would trust the config build by the director.