Search found 137 matches
- Fri Nov 08, 2024 12:40 pm
- Forum: Nagios XI
- Topic: Consolidate nagios.log and other nagios subsystem logs to syslog or journalctl
- Replies: 4
- Views: 96
Re: Consolidate nagios.log and other nagios subsystem logs to syslog or journalctl
found that for RHEL I can use module imfile - https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/deployment_guide/s1-using_rsyslog_modules#s1-using_rsyslog_modules :idea: :geek: IBM has a really good write-up on how to use imfile in Ubuntu with Apache logs. https://www.ibm.com...
- Thu Nov 07, 2024 2:26 pm
- Forum: Nagios XI
- Topic: List Hosts Memberships
- Replies: 7
- Views: 2021
Re: List Hosts Memberships
Upon testing of the origin option I noticed that any hostgroup assigned at the host object level was being omitted from the output of "config/hostgroups" which is no bueno. I refactored the script to collect both hostgroups output and host object membership and a cumulative total. localhos...
- Tue Nov 05, 2024 2:42 pm
- Forum: Nagios XI
- Topic: List Hosts Memberships
- Replies: 7
- Views: 2021
Re: List Hosts Memberships
I fixed a bug that would compound the list membership and skew the counts. I added -o/--origin var to determine if the host has any membership set via the object config. python.exe hostgroup_click.py -n drs -H "u2204ncpa,localhost" -o u2204ncpa was found in 2 of 6 total hostgroups. [linux-...
- Sat Nov 02, 2024 10:52 am
- Forum: Nagios XI
- Topic: List Hosts Memberships
- Replies: 7
- Views: 2021
Re: List Hosts Memberships
Doesn't give you the relationship origin i.e. Membership set via Host config or Added to Hostgroup direct but, it does give you the membership. https://github.com/SNapier/hostgroup_click/ python3 hostgroup_click.py -n drs -H "localhost,u2204ncpa" localhost was found in 1 of 6 total hostgro...
- Fri Oct 25, 2024 2:02 pm
- Forum: Nagios XI
- Topic: NagiosXI Service Alert Aggregation by Host
- Replies: 2
- Views: 1433
Re: NagiosXI Service Alert Aggregation by Host
The Nagios restarts were bugging me...
I retooled the plugin a little and it now used the event processing start time as a floor for log time range. If the requested start time is larger than the available time, it will automatically use the max available time.
I retooled the plugin a little and it now used the event processing start time as a floor for log time range. If the requested start time is larger than the available time, it will automatically use the max available time.
- Thu Oct 24, 2024 1:14 pm
- Forum: Nagios XI
- Topic: NagiosXI Service Alert Aggregation by Host
- Replies: 2
- Views: 1433
Re: NagiosXI Service Alert Aggregation by Host
There is one small caveat...
When you apply changes in Nagios the logs have to stack before you can search in the past and will throw an error.
When you apply changes in Nagios the logs have to stack before you can search in the past and will throw an error.
- Thu Oct 24, 2024 11:50 am
- Forum: Nagios XI
- Topic: NagiosXI Service Alert Aggregation by Host
- Replies: 2
- Views: 1433
NagiosXI Service Alert Aggregation by Host
I saw a new thread mentioning this old topic and... Logs... The oldest of metrics, and you too can use the power. The litmus test If you find yourself wanting to know how many times A had B or C happen in the last X seconds and you want to alert on that threshold, you want log aggregation. Why? Is i...
- Wed Oct 16, 2024 10:41 am
- Forum: Nagios XI
- Topic: where is a contact assigned to?
- Replies: 3
- Views: 768
Re: where is a contact assigned to?
This can be done with the API. A GET to config/host or config/service will give you the contacts filed. curl -XGET "https://<you nagiosxi ip/fqdn>/nagiosxi/api/v1/config/host?apikey=<your-api-key>&filter=active&pretty=1" or curl -XGET "https://<you nagiosxi ip/fqdn>/nagiosxi/a...
- Fri Oct 11, 2024 2:55 pm
- Forum: Nagios XI
- Topic: Nagios Exchange | Problem displaying uploaded images from the gallery
- Replies: 5
- Views: 950
- Fri Oct 11, 2024 2:01 pm
- Forum: Nagios XI
- Topic: Nagios Exchange | Problem displaying uploaded images from the gallery
- Replies: 5
- Views: 950
Re: Nagios Exchange | Problem displaying uploaded images from the gallery
For Sure!
Here you go... Much appreciated,
--SN
Here you go... Much appreciated,
--SN