Search found 39 matches

by AngeloMileto
Fri Dec 13, 2024 1:28 pm
Forum: Nagios XI
Topic: Bulk add service to multiple hosts
Replies: 2
Views: 373

Re: Bulk add service to multiple hosts

What are the values that will be different for ARG1/2? If it's something you could do a quick bash script for you can create the files in the /usr/local/nagios/etc/import directory and then use the import function of the config to pull them in. Is there a way to create a single service and then just...
by AngeloMileto
Thu Dec 05, 2024 10:44 am
Forum: Nagios XI
Topic: Push Custom Plugins
Replies: 9
Views: 1227

Re: Push Custom Plugins

Or even if you want you could run it on the timestamp of the directory, since rsync is pretty smart and will only update individual files if there is a diff, and that way you don't have to loop through every plugin in the directory. That's where my mind was originally going but that doesn't work fo...
by AngeloMileto
Wed Dec 04, 2024 8:13 am
Forum: Nagios XI
Topic: Push Custom Plugins
Replies: 9
Views: 1227

Re: Push Custom Plugins

I didn't want to make a blanket rsync/scp that basically ran every time the host was checked though. That's a waste of time and network bandwidth. I had found https://support.nagios.com/kb/article/file-and-folder-checks-783.html#file_folder_exists and was trying to find a way to leverage that using ...
by AngeloMileto
Wed Dec 04, 2024 8:04 am
Forum: Nagios XI
Topic: Restart Service
Replies: 3
Views: 471

Re: Restart Service

I appreciate the replies and to simplify things, I took one of the services and made a separate check and hooked the event script to that. So I have a simple service check: check_xi_ncpa!--timeout=45 --token=a really good token --port=5693 --metric='services' --qqueryargs='service=svcname,status=run...
by AngeloMileto
Tue Dec 03, 2024 12:47 pm
Forum: Nagios XI
Topic: Push Custom Plugins
Replies: 9
Views: 1227

Re: Push Custom Plugins

Hey AngeloMileto Unfortunately I don't believe XI has a way to do this without any modification. I'll dive into it a bit more but what comes to mind initially is that you would probably need to make a script to distribute the plugins to the hosts NCPA is reaching out to. This is a little out of my ...
by AngeloMileto
Mon Dec 02, 2024 9:44 am
Forum: Nagios XI
Topic: Restart Service
Replies: 3
Views: 471

Restart Service

I found a guide on how to restart a service via an event handler (https://answerhub.nagios.com/support/s/article/Restarting-Windows-Services-with-NCPA-f4a44019) but the problem is that we already have a service check that is monitoring 5 critical services at once. So rather than having 5 different s...
by AngeloMileto
Fri Nov 29, 2024 3:41 pm
Forum: Nagios XI
Topic: Push Custom Plugins
Replies: 9
Views: 1227

Push Custom Plugins

I know how to create custom plugins for bash and powershell and have copied them to the hosts that we have in the environment. The question is, does XI have a way to maintain these? So if I put a new one somewhere on the XI server, will it copy it to all of the hosts being managed/monitored via ncpa...
by AngeloMileto
Fri Nov 01, 2024 9:52 am
Forum: Nagios XI
Topic: List Hosts Memberships
Replies: 7
Views: 2673

Re: List Hosts Memberships

So noone knows the sql query to run to get the memberships of a given host?
by AngeloMileto
Wed Oct 30, 2024 10:40 am
Forum: Nagios XI
Topic: List Hosts Memberships
Replies: 7
Views: 2673

Re: List Hosts Memberships

Not exactly as I did already know that I could look in the hostsgroups file. That's the issue, that doesn't tell you if say host x should be a part of that group but if you could list every host along with the groups they were associated with, it would be easy to see that host x is NOT a member of t...
by AngeloMileto
Wed Oct 30, 2024 8:33 am
Forum: Nagios XI
Topic: List Hosts Memberships
Replies: 7
Views: 2673

List Hosts Memberships

Is there a way to list the groups that a given host is a member of? Kinda rhetorical as if you look at a host in the XI web UI, it shows the groups but looking at the host file itself they aren't there. We're trying to run a report basically showing every host's membership so we can audit every so o...