Search found 13 matches

by -SN
Tue Apr 07, 2026 9:46 am
Forum: Nagios XI
Topic: Contact Host and Service Event Handler/Notification Commands
Replies: 8
Views: 510

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: 8
Views: 510

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: 8
Views: 510

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: 1071

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: 1071

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: 881

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: 23839

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: 7229

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: 7229

Re: Nagios XI Macros not populating

Make sure you have enabled this User Macro before trying to use it ;)
UserMacro.PNG
by -SN
Sat Feb 28, 2026 11:01 am
Forum: Nagios XI
Topic: Custom component registers, no menu
Replies: 2
Views: 24503

Re: Custom component registers, no menu

Kudos! Getting the component to install is most of the battle. This snippet would place the component link in the Home Menu under Maps /* * Adds the index page to the menu */ function saturationreport_component_addmenu() { global $saturationreport_component_name; $component_url = get_component_url_b...