Search found 8 matches

by ykara84
Thu Nov 27, 2025 4:43 am
Forum: Nagios XI
Topic: $CHECKSOURCE$ Standard Macro Not Populated
Replies: 8
Views: 6700

Re: $CHECKSOURCE$ Standard Macro Not Populated

Hi @ykara84, @kg2857 is correct (thanks kg2857!) that the macro is undefined in the code, although interestingly we seem to keep track of the information, and also interestingly we somehow decided to put it in the documentation. It is interesting that $HOSTOUTPUT$ is showing the worker, but as I re...
by ykara84
Wed Nov 26, 2025 6:42 am
Forum: Nagios XI
Topic: $CHECKSOURCE$ Standard Macro Not Populated
Replies: 8
Views: 6700

Re: $CHECKSOURCE$ Standard Macro Not Populated

It's definitely a macro in Core 4. The worker it references can be one of the local Core worker processes, or it could be a Gearman worker. Ideally all macros should just work, though I am not how this one works under the hood. The docs don't give us much there, and the source code, from at least a...
by ykara84
Tue Nov 25, 2025 4:10 am
Forum: Nagios XI
Topic: $CHECKSOURCE$ Standard Macro Not Populated
Replies: 8
Views: 6700

Re: $CHECKSOURCE$ Standard Macro Not Populated

kg2857 wrote: Mon Nov 24, 2025 8:02 pm I don't see it in the macro list.
https://assets.nagios.com/downloads/nag ... olist.html
Hi, it's listed on the Core v4 page:

https://assets.nagios.com/downloads/nag ... olist.html
by ykara84
Mon Nov 24, 2025 7:18 am
Forum: Nagios XI
Topic: $CHECKSOURCE$ Standard Macro Not Populated
Replies: 8
Views: 6700

$CHECKSOURCE$ Standard Macro Not Populated

We are using XI 2024 R2.1 with a python script to send notifications to ServiceNow as incidents by passing the service/host alert related Standard Macros to the py script. The macros work perfectly except the $CHECKSOURCE$ one which is supposed to contain the Source worker for a host or service chec...
by ykara84
Mon Jul 28, 2025 9:26 am
Forum: Nagios XI
Topic: Query the Host or Service Problem ID using the API?
Replies: 3
Views: 2400

Re: Query the Host or Service Problem ID using the API?

That is essentially what we've ended up doing or something very similar, but I thought there must be a cleaner solution using the Event ID or Problem ID provided by the macros to do a lookup, alas there does not seem to be.
by ykara84
Fri Jul 25, 2025 5:59 am
Forum: Nagios XI
Topic: Query the Host or Service Problem ID using the API?
Replies: 3
Views: 2400

Re: Query the Host or Service Problem ID using the API?

Somewhat related to this. For existing alerts, how do I determine the HOSTEVENTID or SERVICEEVENTID (which are available as macros) for each using the API?
by ykara84
Mon Jul 21, 2025 9:23 am
Forum: Nagios XI
Topic: Query the Host or Service Problem ID using the API?
Replies: 3
Views: 2400

Query the Host or Service Problem ID using the API?

We are using the Nagios XI Event Handlers to create ServiceNow incidents whenever a host goes down or a service (CPU, memory, disk space) become unhealthy. We are using the macros to include the host/service problem ID in the description of the incident. We want to use this host/service problem ID t...
by ykara84
Wed Feb 21, 2024 6:00 am
Forum: Nagios XI
Topic: Record Snow ticket number alongside service or host alert?
Replies: 1
Views: 632

Record Snow ticket number alongside service or host alert?

Hello, we are using a python script as an event handler to send alerts to our ticketing system ServiceNow (Snow) as incidents. For example, when a host is down or unreachable it will create an incident via the Snow RestAPI containing the information (from macros) regarding the host down alert. We ar...