Search found 14 matches

by -SN
Mon Apr 13, 2026 2:34 pm
Forum: Nagios XI
Topic: Contact Host and Service Event Handler/Notification Commands
Replies: 10
Views: 2126

Re: Contact Host and Service Event Handler/Notification Commands

What I've noticed is that an alert may create multiple tickets and not update the ticket, and then it may close only one of the tickets. Also, I was looking into an issue when in the Service Notifications for a service it said it sent an notification to the contact using the custom dispatcher (the ...
by -SN
Tue Apr 07, 2026 9:46 am
Forum: Nagios XI
Topic: Contact Host and Service Event Handler/Notification Commands
Replies: 10
Views: 2126

Re: Contact Host and Service Event Handler/Notification Commands

Ah, Halo.. I did an integration with halo service desk. If I remember the project correct, I had to play with oauth and map the ticket type, state and the severity. I'll see if I can dig up that code. haloitsm: URL no trailing slash! base_url: "https://instance.haloservicedesk.com" Oauth2 ...
by -SN
Tue Apr 07, 2026 9:07 am
Forum: Nagios XI
Topic: Contact Host and Service Event Handler/Notification Commands
Replies: 10
Views: 2126

Re: Contact Host and Service Event Handler/Notification Commands

Below is the host notification command provided by our ITSM software: curl -X POST -H "Authorization: {Use Password token here without these brackets}" -H "Content-Type: application/json" --data "{"metric_name": "Availability", "hostname": &quo...
by -SN
Mon Apr 06, 2026 10:26 am
Forum: Nagios XI
Topic: Contact Host and Service Event Handler/Notification Commands
Replies: 10
Views: 2126

Re: Contact Host and Service Event Handler/Notification Commands

Also make sure that you're not crossing the streams. "Event Handlers" Named for what they are supposed to do, logically handle "on-state-change" events for a host or service objects, event handlers are a great part of Nagios. Handling an event could be anything from forwarding th...
by -SN
Tue Mar 31, 2026 10:46 am
Forum: Nagios XI
Topic: Not getting email alert
Replies: 6
Views: 2446

Re: Not getting email alert

I recently updated Nagios from Nagios XI 2026R1.1 to R1.3. It was sending alerts, at least up till then. I'll go through the backup and see if I can find the missing script. In instances where I use a lot of custom scripts, I create a subdirectory in the working path for XI specifically for those s...
by -SN
Tue Mar 31, 2026 8:34 am
Forum: Nagios XI
Topic: Not getting email alert
Replies: 6
Views: 2446

Re: Not getting email alert

1. Make sure the Nagios Server has a valid DNS entry 2. In your NagiosXI Settings make sure your "sender" email address for notifications is a valid email address. nagios-email.PNG 3. Watch the logs and see if your error message explains the issue. NOTE: Use the "test email" sett...
by -SN
Tue Mar 24, 2026 7:23 am
Forum: Nagios XI
Topic: GPIO voltage sensors
Replies: 3
Views: 1667

Re: GPIO voltage sensors

When sending GPIO data to Nagios I normally opt for the "passive" vs the active. Adding a webhook that can send data to NRDP is always an option. #!/usr/bin/env python3 import RPi.GPIO as GPIO import requests import time import sys # ----------------------------- # CONFIGURATION # --------...
by -SN
Tue Mar 10, 2026 8:16 am
Forum: Nagios XI
Topic: Event Handlers in Scheduled Downtime
Replies: 10
Views: 40864

Re: Event Handlers in Scheduled Downtime

The onus should lie with the event handler not the admins. To do this, in your handler, put a guard in place to make sure that the handler should fire. #SUDO CODE #DETERMINE DOWNTIME STATUS def isInDowntime(data): if int(data.downtime) > 0: return True else: return False #CHECK DOWNTIME STATUS if is...
by -SN
Sat Mar 07, 2026 4:20 pm
Forum: Nagios XI
Topic: Nagios XI Macros not populating
Replies: 4
Views: 8029

Re: Nagios XI Macros not populating

Sorry read that again and you're running into the constraints of what macros work where. Yes, system macros are available in commands but, what macro in what context is really important https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/macrolist.html User macros are available in as...
by -SN
Sat Mar 07, 2026 1:06 pm
Forum: Nagios XI
Topic: Nagios XI Macros not populating
Replies: 4
Views: 8029

Re: Nagios XI Macros not populating

Make sure you have enabled this User Macro before trying to use it ;)
UserMacro.PNG