Search found 25 matches
- Wed Mar 31, 2021 2:12 am
- Forum: Nagios XI
- Topic: Custom API - Apply Config needed
- Replies: 1
- Views: 1014
Custom API - Apply Config needed
Another feature request for the API. But if not, or in the meantime, here's a custom API call for Nagios XI which allows you to determine if 'Apply Config' is required. This uses the same method the UI performs when you see that big red banner in CCM. This is ideal if you want to know if the Nagios ...
- Tue Mar 09, 2021 5:57 am
- Forum: Open Source Nagios Projects
- Topic: Eventhandler in Distrubuted Nagios (Mod_Gearman)
- Replies: 3
- Views: 2992
Re: Eventhandler in Distrubuted Nagios (Mod_Gearman)
Hi Huaming, here's a couple of other things to check: Firstly the module.conf , you want eventhandler enabled so that it gets placed into the mod_gearman queue for workers to pick up. The other thing is check your nagios.cfg and see if eventhandler is enabled for the value broker_module .
- Tue Mar 02, 2021 7:04 am
- Forum: Open Source Nagios Projects
- Topic: Eventhandler in Distrubuted Nagios (Mod_Gearman)
- Replies: 3
- Views: 2992
Re: Eventhandler in Distrubuted Nagios (Mod_Gearman)
Does the plugin/script exist in the libexec folder of the slave server?
- Tue Mar 02, 2021 6:07 am
- Forum: Open Source Nagios Projects
- Topic: Script help pliz
- Replies: 1
- Views: 3023
Re: Script help pliz
This sounds like an event handler issue based on the change of HARD state. How is the script actually called? This documentation shows how you can perform conditional actions based on the state e.g. only if it's HARD and CRITICAL do something. https://assets.nagios.com/downloads/nagioscore/docs/nagi...
- Tue Mar 02, 2021 1:43 am
- Forum: Nagios XI
- Topic: Bulk modify Notification Interval on hosts and service
- Replies: 4
- Views: 737
Re: Bulk modify Notification Interval on hosts and service
The API is your answer (http(s)://<YOUR_NAGIOS_SERVER>/nagiosxi/help/api-config-reference.php): config/host and config/service are what you need. You simply submit the parameter notification_interval for each object that requires changing. Use the GET method first to retrieve all the host objects. D...
- Fri Feb 26, 2021 3:27 am
- Forum: Nagios XI
- Topic: Custom API - Run Check Command
- Replies: 1
- Views: 7054
Custom API - Run Check Command
Running command tests from the UI is great, it allows you to confirm the command not works on the target host but it also allows you to get the result and make sure things are ok on the host too. But of course you know that already. However it would be nice to run this as code. Sure you could remote...
- Thu Feb 25, 2021 2:11 am
- Forum: Nagios XI
- Topic: Add users from AD - sub OUs and Search
- Replies: 3
- Views: 561
Re: Add users from AD - sub OUs and Search
I've just found the issue to both problems. It's down to the base DN and how the Nagios XI index.php is submitting the request to search. I had a look under the hood to see what was happening when I submit a request to view a sub OU: AD connection is configured as: OU=MyUsers,DC=thingy,DC=com When I...
- Wed Feb 24, 2021 5:44 am
- Forum: Nagios XI
- Topic: Add users from AD - sub OUs and Search
- Replies: 3
- Views: 561
Add users from AD - sub OUs and Search
A couple of issues with the adding of users from AD: Base DN Unable to select any users that exist in a sub OU of the base DN that's assigned. In fact the result comes back stating no users or computers found. The base DN itself is fine. This results in multiple AD connections being created for diff...
- Thu Feb 18, 2021 5:44 am
- Forum: Nagios XI
- Topic: API and Hostgroups
- Replies: 12
- Views: 4805
Re: API and Hostgroups
Hi all, I would say that managing group membership for any of the hosts, hosts groups, services etc. is quite manageable with the API as it stands. Granted, being able to append to a group or host array is an obvious bonus, rather than having to submit the API request with the complete membership ea...
- Thu Jan 28, 2021 10:20 am
- Forum: Nagios XI
- Topic: ApplyConfig feedback from API
- Replies: 5
- Views: 759
Re: ApplyConfig feedback from API
one thing though. The output from the command doesn't indicate if there are any warnings reported in the config.
Correct me if I'm wrong, but these can only be found when viewing the output from the snapshot. It would be nice to get this in result_code or a new column name.
Correct me if I'm wrong, but these can only be found when viewing the output from the snapshot. It would be nice to get this in result_code or a new column name.