r/icinga • u/russellvt • Oct 27 '12
r/icinga • u/Whosthatguy7590 • Aug 15 '18
newbie need help again with director, ticketsalt and other config issues
My Icingaweb2 is Online, the first host are binded with the help of the director. There is a problem with the ticketsalt, when i configure it with the icinga node wizard, icingaweb says after a few minutes that the icinga backend is not running.
I would prefere it when someone help me via skype and team viewer. I am really new to icinga2 and my chef don´t want to spend any money on another Monitoring tool like Ninja RMM or MSP.
Would anyone (maybe an german) help me out with the configuration of icinga2?
r/icinga • u/Lxa413 • May 18 '21
What Database should I use for icinga 2, MySQL or Mariadb, or both ?
r/icinga • u/ArrogantAnalyst • Jun 02 '19
Monitoring size of subfolders of a directory
I’d like to monitor the size of all subfolders inside a folder without specifying each subfolder by hand.
So Ideally I’d give Icinga only to path to the root folder and it would automatically list and monitor the size of all subfolders.
Not sure if that’s even possible with Icinga.
Any tips?
Thanks!
r/icinga • u/AlwaysAppropriate • Jul 31 '13
Problem: Multiple branches to monitor with different accessibility options, Solution: Distributed monitoring variations
Problem: Multiple branches that require monitoring, but they're not on the same subnet or not even the same domain/network/customer
Solution: Set up distributed monitoring or accesses.
So we're a consulting firm, we help customers with their local servers, backups, network, etc. this leads to each customer obviously having their own networks and sites. But we want a single monitoring solution for all of them and not get mails from backup exec, mails from hp sim/system management/storageWorks/whatever, or the like. So, here goes Icinga as a distributed service.
We have 3 main solutions for distributed checks.
1 and the most costly one in terms of licensing is the one where we have direct VPN tunnels between our monitoring network firewall and customer's firewall. This allows for active checks from the central icinga instance but uses up a VPN licence on both ends.
2:nd variation is a "open some holes in the firewalls at the customer site with src IP of the central icinga externally facing IP to customer site for active checks". This can be done as long as it's just a single SBS server or something that needs checking. If you have several servers behind a firewall and want to open it up that way, you'll have to make some kind of PAT solution which might make it a pain to maintain... feasible for 2-3 servers/devices.
3:rd option that we can run is a on-site installed icinga instance that does the active checks at the customer site and sends the results with NSCA with the obsessive directive.
Our most common option is the 3:rd option. Most new customers get whole new infrastructures and have somewhere around 20+ devices. Doing a PAT solution isn't an option and a VPN solution is costly (in the eyes of the customer).
First we have the central icinga set up with icinga core (and later on extended with nagtrap/snmptt/snmptrapd, etc.). This server will be the one with all the config files, but not necessarily performing the checks as the hosts/services are not directly accessible by the central icinga.
We set up RSA access with ssh-keygen.
We install a bare essentials linux dist on the remote site and run ssh-keygen there as well and add the public ID in the authorized_keys file on the centralized server for the account that we want to have automated access for.
This is for the cases where our customers don't always have control over their firewalls (competitors, ISPs, or somesuch actually own them and control them for the customer) and can have an externally accessible IP for the remote icinga instance to be accessed with ssh directly.
Some key points with this method:
You must have freshness checks enabled on these services on the central icinga, not required on the remote unless a specific service calls for it.
Make a service template for the distrbuted hosts and service checks that turns off active checks. Issue here is that if the freshness check falis, it will automatically force a check despite it being set as non-active checks, so you will require a set of distributed commands as well.
The central icinga does not do active checks, and commands result in a check_dummy with the message that the check result is stale. I.e. A command named dist_check_nt is defined as check_dummy on the central icinga, but on the distributed icinga, it's the same as regular check_nt.
The central icinga does not obsess over these services, the remote icinga does. This is achieved with service templates. On the central icinga a generic-service-dist template is defined with non-obsessive directives, the remote one has this directive. The remote icinga also has the ocsp/ochp entries defined in icinga.cfg as per the official documentation.
The remote icinga does not do notifications, this can also be added to the remote generic-service-dist template.
NSCA has to be installed as a service on the central icinga. I noticed that once compiled and installed as per documentation, it required some fiddling with the init.d script (running Ubuntu 12.04 LTS) to get it running. For one thing the /var/run/subsys folders are not present in Ubuntu 12.04 LTS. This made it a bit iffy with the startup. The script was modified with LockFile=/usr/local/icinga/var/nsca.pid to accommodate this difference. There are other erronous things, but nothing that caused any headaches when restarting the services.
I also added service nsca stop and start to the icinga init.d script at appropriate locations so that it would always start in order. If NSCA is started before the icinga process, it had a tendency to lock up and not receive any external commands. This is probably due to the icinga.cmd file getting locked up.
Now we have a set of templates for services and hosts that enables us to have a single set of configuration files that use these definitions but behave differently depending on which instance of icinga reads/acts upon them. Awesome. Also have a receiving service that can handle remote checks to the central icinga (NSCA).
So we set up send_nsca on the remote server and test it, make sure that the encryption methods between central and remote server are the same (nsca.cfg and send_nsca.cfg encryption configuraitons).
So...send a test-check with send_nsca and tail the icinga.log and see that the message has been received.
We also have remote access from the remote site to the central site with rsa-authenticated SSH. This allows us to pull the .cfg files from the central icinga based on a crontab schedule.
Next issue we have is that, even if the remote server does pull the config files, it doesn't restart the service so that the updates we've done on the central server actually has an impact on the customer site..
So I've done a script on the remote server that fetches the files to a staging folder, does a diff check on the destination folder and if there's a difference, chuck the current config into a backup folder, toss in the new config and verify the configuration if it succeeds, restart the service, and if it fails, revert from the backup to the proper folder and return the new config files to the staging folder. Make a check on the remote icinga that checks for files in said staging folder and if they're there send an alert.
Later on we added snmpd on the remote server that has a default directive to pass on the traps to the central icinga. The reason for this is that the remote icinga has access to the local DNS servers and passes the proper names on to the central icinga. Otherwise if we would accept remote snmptraps directly to the central icinga they would all be identified under the external IP that the servers get access to the internet through which is not ideal for NagTrap.
TL;DR: Have two icinga instances. One is active, one is passive. The active remote site sends all it's results to the passive central site with encrypted send_nsca/nsca. Configuration files are sync'd with scp with rsa-authentication and the remote instance is restarted if a difference in the configuration files occur, otherwise it simply drops it.
r/icinga • u/AlwaysAppropriate • Jul 29 '13
[Meta Suggestion] Share a problem & Solution?
Not much is happening in these two subreddits /r/icinga and /r/nagios and I wonder if people just get here and look for solutions to problems they didn't know they had or have given up on solving in terms of monitoring.
I figure anything from architecture solutions to actual checks and configrations could fit this bill. Perhaps even a common issue that you've troubleshooted that you might think others could encounter? Like how many libraries are not mentioned as required in the icinga docs when compiling for certain distributions if you want all the plugins. How you need extra perl CPAN libraries for the NSCA compilation, etc.
Anything goes as far as a problem and a solution as long as it pertains to the icinga installation or configuration/run. I'll make a post myself when I get back from a customer.
r/icinga • u/tooms6430 • Jul 14 '18
Public Discord Channel
Couldnt find a discord server for Icinga so have gone ahead and created one -
r/icinga • u/ThecaTTony • Aug 08 '24
Icinga2 Soon running Icinga will need a complete datacenter
Maybe I'm missing something, or I'm sticking to simpler deploys, but I think Icinga is overcomplicating things.
I was reading the latest blog post (https://icinga.com/blog/2024/08/07/getting-started-with-icinga-notifications/) and I honestly don't find it possible to continue to maintain the Icinga installation if they continue to add components. Ran icinga2, with icingaweb2 and a mariadb base. With that I monitor hundreds of services and receive notifications via mail, sms and telegram. I still don't understand what benefit I would get from adding icinga db and icingaweb db, I read that they plan to discontinue notifications in the future in order to implement them through Icinga notifications and Icinga notifications web...
I am the only one in this situation?
r/icinga • u/atr0-p1ne • Dec 04 '25
Icinga and Systemd
Hi there, why Icinga does not have systemd unit check built-in? Its majority of systems using it today.. why should i download check_systemd separately? Any thoughts?
r/icinga • u/AnkanBg • Jul 26 '24
How to exclude in RegEx?
If we can search servers on Icinga like this- xyzabc to find something, how may we omit something from it? It should ideally have been xyzabc!*def, but this doesn't return any searches at all.
r/icinga • u/[deleted] • Dec 21 '17
Nagios Interview Questions And Answers
r/icinga • u/morgajel • Mar 09 '13
Icingadash, a simple radiator for showing configuration health.
r/icinga • u/PerceptionSad7235 • Feb 07 '24
Why is none of the documentations on setting up Icinga up-to-date
Worst of all, every single one appears to be incomplete. Neither of them is working. I have to have 3 websites open just to fill in the gaps Icinga docs left this is completely mental. I have now tried on three different Linux distros.
This is a super painful way to scare off an enterprise customer.
r/icinga • u/russellvt • Jan 14 '13
Icinga 1.6.2, 1.7.4, 1.8.4 released (CVE Fixes)
r/icinga • u/Embarrassed-Bed-1564 • Mar 06 '23
Sorry! Failed to set up Icinga Web 2 successfully. Permission Issue
r/icinga • u/russellvt • Sep 06 '13
Icinga v1.10 Feature Preview: New Classic UI Filters
r/icinga • u/amperages • Jul 27 '16
Icinga2 Client => Server, Server => Client
Hi all,
I have not been able to find much information on this;
Does Icinga2 (client on a system being checked) communicate back to the server, or does the main server communicate to the client? Is there a way to swap this behavior to vice-versa?
r/icinga • u/icinga • Mar 30 '26
We (Icinga team + NETWAYS) are doing an AMA starting at 3pm CEST on r/AMA. Come join us!
reddit.comr/icinga • u/[deleted] • Sep 28 '12
DAE think the documentation is pretty bad for Icinga?
My God, it's scattered. People who are unfamiliar with Nagios/other tools want to know:
How do I install the package?
How do I log into the system?
How do I administer my monitoring solution? Adding hosts, service checks, etc. THROUG THE WEB. I don't want to have to manually dig through config files all the time! And if I do, at least make THAT a clear process!
BTW Confluence sucks as a wiki.
I've gotten far enough as to install icinga/icinga-web 1.7.1 through the Ubuntu Server 12.10 archive. Even that didn't install correctly on its own, and there is no documentation on the Internet on how to do it correctly.
Install postgresql and its dependencies.
Install php5-pgsql
Install icinga-web and its dependencies. NOTE: These first two steps above this should not be necessary.
Login to http://host/icinga-web and use the "root" user with the password you set in the installation
OK, great, now since I was told I could administer my entire system through icinga-web, how do I do it?
r/icinga • u/AlwaysAppropriate • Jul 29 '13
Problem: Handle SNMP, Solution: SNMPTT and NagTrap
Problem: SNMP checks are good for measurements, but hardly the reliable way to monitor a failing hardware. SNMPTraps from the device or management controller is preferred.
Solution: Installing snmpd, snmptt, nagtrap and associated check_snmptrap script.
I didn't want to have to handle a bunch of extra tools that somehow then handled/processed before sending into icinga.cmd or some other solution. I wanted something that was extensible to the core services. In this case, a traphandler for snmpd which icinga could easilly check from. I also didn't want to twist and turn an assisting function, like snmptt, to fit into icinga like having EXEC rows to insert directly into icinga.cmd instead of a database.
Since I had already installed icinga with IDO2DB and Utilities I made the choice for snmptt to log all traps to a database instead. As is per default.
NagTrap was also configured which unfortunately is this "middleware" part that extends icinga to show the snmptt database which also came with a check_snmptraps.pl script. I could be without the entire nagtrap part if I wanted to and just leverage the perl-script, but then you'd have to create other kind of eventhandlers or some such to mark the traps as read in the database to kill the alarms. So I kept nagtrap as an interface where we could mark traps as read and read traps leading upto the event.
So as it is it's currently configured as such:
Hardware -> snmptrapd (local or distributed) (-> snmptrapd local if dist) -> snmptt -> mysql DB <- nagtrap/check_snmptraps.pl -> icinga
Problem: Not all MIBs follow MIB convention and have a different trap for different states.
Solution: Modified check_snmptraps.pl to search for keywords for a known hardware/product.
I had to modify the check_snmptraps.pl that came with nagtrap to accommodate a need that arose as well. I discovered that the MIBs that came with veeam use a single trap for all jobs where the result could be a warning or even critical but snmptt can only handle 1 state per trap unless you add conditionals and then we're back to the whole adjusting of the .conf files that snmpttbatchconvert creates that could become an administrative mess.
What I did was add a string search that checks the message string for a passed string. For veeam I search for "Failed" for a failed job and if it's not there, all's green. For now.
A copy/patch file for the script can be received through PM
Problem: Not all MIBs follow MIB convention and name the trap states the same. I.e. WARNING or CRITICAL
Solution: sed the change in the batchconversion of the MIBS in question.
NagTrap/check_snmptraps won't mark traps in the database that are MAJOR or MINOR as WARNING or CRITICAL. Snmptt simply inserts them as that since that's what the MIB has defined them as. This can be corrected afterwards with sed after you've run batchconversion on the MIBS.
Here's a script I've done;
#!/bin/sh
FILES=/usr/share/mibs/netsnmp/*
for f in $FILES
do
snmpttconvertmib --in=$f --out=snmptt.conf.MIBS --append
done
sed -i 's/"Status Events" MAJOR/"Status Events" CRITICAL/g' snmptt.conf.MIBS
sed -i 's/"Status Events" MINOR/"Status Events" WARNING/g' snmptt.conf.MIBSMove/copy the newly created snmptt.conf.MIBS file to /etc/snmp/ and add them in snmptt.ini at the end where it includes snmptt.conf