Commit Graph

1142 Commits

Author SHA1 Message Date
Michal Konecny
d5f83a7272 [nagios] Use server checks on noc01
Just move datanommer check to server plugins, so it's the same as before.
2025-07-31 10:26:01 +02:00
Michal Konecny
e4afc6cf7a [nagios_server] Remove datanommer check
This check is already installed as part of nagios_client playbook. The
nagios_server role contained old version which doesn't work anymore. Let's get rid
off it.
2025-07-31 10:02:02 +02:00
Kevin Fenzi
e36386c30d nagios: no nomail check at all externally
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-24 10:44:24 -07:00
Kevin Fenzi
9c1bb508b5 nagios: try a different way to not run mail_queue check externally
Revert the previous thing that tried to move a template to a file, and
instead move it back to a template and just conditionalize it only to
apply on rdu3_internal nagios.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-18 10:25:26 -07:00
Kevin Fenzi
fafc5b1baa Revert "nagios / external: make mail_queue internal only"
This reverts commit 84f03db63c.
2025-07-18 10:22:29 -07:00
Kevin Fenzi
168d030d9c nagios: turns out this newline is important syntax wise
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-18 09:34:01 -07:00
Kevin Fenzi
84f03db63c nagios / external: make mail_queue internal only
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-15 18:23:40 -07:00
Kevin Fenzi
f73944f190 nagios: try and adjust things so noc02 / nagios-external works again
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-15 17:23:22 -07:00
Greg Sutcliffe
0d71c0bce0 Nagios: remove http check on p10 mgmt interface
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
2025-07-11 20:06:33 +00:00
Kevin Fenzi
70c633121e Add bodhi-backend01.stg and adjust value01
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-09 16:00:08 -07:00
Aurélien Bompard
cf00289c06 Add a Nagios check to monitor IPA ID ranges
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-07-09 17:27:19 +02:00
Kevin Fenzi
6d796a6fff basset: remove monitoring, we havent deployed this in years
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-08 10:45:24 -07:00
Nils Philippsen
6c85fda0c9 Mass remove/replace iad2 -> rdu3, 10.3. -> 10.16.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2025-07-03 20:05:02 +02:00
James Antill
b5338d9050 nagios: gateway-hosts: Add conditionals for nagios_location as rdu3.
Signed-off-by: James Antill <james@and.org>
2025-06-30 22:00:55 -04:00
James Antill
a960bf8e7c nrpe: Add 10.16.163.10 to allowed_hosts.
Signed-off-by: James Antill <james@and.org>
2025-06-30 20:59:28 -04:00
Kevin Fenzi
d5d7e4f606 nagios_server: try and simplify logic
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-26 19:00:00 -07:00
Kevin Fenzi
2d741d3a63 nagios_server: another cred fix
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-26 18:36:13 -07:00
Aurélien Bompard
f185573c41 Do stuff on iad2_internal also on rdu3_internal
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 19:02:44 +02:00
Aurélien Bompard
d22bde741d Nagios: template the mail_queue.cfg file
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 18:11:28 +02:00
Aurélien Bompard
0b7bab72e6 Nagios: filter the hostgroups again
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 17:37:32 +02:00
Aurélien Bompard
aefb2eb4bc Filter staging-hosts
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 14:14:29 +02:00
Aurélien Bompard
2c2c06bde0 Filter the mirrorlist-proxies services
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 14:05:33 +02:00
Aurélien Bompard
1531c45283 Try to filter the group contents instead of the group names
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 12:10:52 +02:00
Aurélien Bompard
d3246f3c64 Filter the other nagios templates
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 11:20:06 +02:00
Aurélien Bompard
72881d29d2 Filter the mincheckgrp hostgroup
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 10:43:38 +02:00
Aurélien Bompard
3ab4e21dbc Filter the no_ping group
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 10:40:34 +02:00
Aurélien Bompard
933060bc15 Don't change the template name, or it will be the name of the remote file
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 10:27:35 +02:00
Aurélien Bompard
9007df7619 Don't change the template name, or it will be the name of the remote file
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 10:27:03 +02:00
Aurélien Bompard
b8fea68959 Try to exclude rdu3 hosts from the iad2 nagios template
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-06-23 09:12:25 +02:00
Kevin Fenzi
3883da6d3d nagios / server: template oneproxy for iad2/rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-21 12:15:04 -07:00
Kevin Fenzi
aeaa0811c4 nagios: fix task to match the real template name
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-21 11:45:49 -07:00
Kevin Fenzi
ad3533e506 nagios: try and split out all hostgroups into _iad2 and _rdu3
We want to monitor iad2 from noc01.iad2 and rdu3 from noc01.rdu3, so
try and split this out into seperate all groups for each datacenter.
This will likely miss some things that aren't split out into seperate
_iad2 and _rdu3 groups, but we can hopefully fix those.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-21 11:26:38 -07:00
Kevin Fenzi
7113cce4ec nagios_server: fix missing = in when
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-21 11:06:35 -07:00
Kevin Fenzi
3be2d89e66 nagios: also add these templates in rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 22:34:45 -07:00
Kevin Fenzi
4ca8fa862c nagios: adjust when clause for rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 22:11:57 -07:00
Kevin Fenzi
a42481a782 nagios/rdu3: need templates and other config in rdu3 also
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 21:49:17 -07:00
Kevin Fenzi
437479c896 nagios-rdu3: drop limited mgmt group in rdu3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 21:28:57 -07:00
Kevin Fenzi
449385c8b0 nagios: move rdu3 hosts over to noc01.rdu3
Also open firewalls to allow noc03.rdu3 to access them.
Also enable nagios_server on noc01.rdu3.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 20:29:24 -07:00
Kevin Fenzi
3edae8484b nagios: iad2 noc01 can treat the rdu3 internal gw as rdu3-gw
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 19:51:07 -07:00
Kevin Fenzi
2b3441492a nagios: add rdu3-hosts template to be deployed
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-06-20 18:05:31 -07:00
Kevin Fenzi
8ffd2aef29 nagios: update gateways for iad2/rdu3, they need to be one hop up from the actual external ip
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-30 16:45:19 -07:00
Mark Rosenbaum
7a10ef14d3 Added Nagios rdu3 configs 2025-05-30 17:24:36 +00:00
Kevin Fenzi
91e9a5627d httpd / botblocking: fix syntax on bot rewrite
These have to be in "s in order to do a string comparison, since
they were not, they were never matching anything. ;(

Fix them all up, and also block a few more repos on pagure that are
getting heavily crawled.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-13 11:39:25 -07:00
Greg Sutcliffe
9f431805ec nagios: Update authorized user lists 2025-03-26 21:16:13 +00:00
Kevin Fenzi
0a986e4f7e nagios / registry: check registry via the actual registry instead of the web page
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-02-17 12:19:30 -08:00
Michal Konecny
f63e839698 [nagios-server] Move the datanommer checks to noc01
There were few fedora-messaging datanommer checks that were running on
busgateway01. As this machine is part of fedmsg it will be
decommissioned. Let's move the checks to noc01.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-14 09:45:39 +00:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
Nick Bebout
cdb7471dfe Remove codeblock (relrod) from nagios 2025-02-11 18:39:05 -06:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Kevin Fenzi
22f3d8832f handlers: more renaming fixes
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-01-24 14:06:11 -08:00