Page 1 of 1

Can’t get my custom check to work in Nagios XI

Posted: Mon Sep 15, 2025 5:14 am
by Mikasa23
Hi,
I’m on Nagios XI and trying to run a small custom script as a service check. The script runs fine when I test it manually in the terminal, but inside XI it just refuses to work. Either I see “plugin not found” or nothing useful comes back.
I already dropped the script into the plugins folder and set the permissions, and I added a command for it in CCM. Still no luck. Is there some trick to make XI actually pick it up? Do I need to restart something or point it somewhere else?
Would appreciate if someone could share how they got their own script checks working. I feel like I’m missing a really obvious step.
Thanks,
Mikasa Slither io

Re: Can’t get my custom check to work in Nagios XI

Posted: Mon Sep 15, 2025 10:03 am
by jsimon
Hi @Mikasa23,

I've included a link to our documentation on custom plugins here:

https://library.nagios.com/training/gui ... m-plugins/

Based on the steps you've described, I think this will get you what you're looking for. Most likely the next step is adding a Service check that uses the command you've created, or possibly creating a Host with that Service check associated with it. Let us know if this doesn't help you figure out the issue you're having!

Re: Can’t get my custom check to work in Nagios XI

Posted: Mon Sep 15, 2025 5:11 pm
by kg2857
Post the output of running the script, and the command. Use the absolute path in the command.

Re: Can’t get my custom check to work in Nagios XI

Posted: Wed Sep 17, 2025 12:57 am
by james598patton
Mikasa23 wrote: Mon Sep 15, 2025 5:14 am Hi,
I’m on Nagios XI and trying to run a small custom script as a service check. The script runs fine when I test it manually in the terminal, but inside XI it just refuses to work. Either I see “plugin not found” or nothing useful comes back.
I already dropped the script into the plugins folder and set the permissions, and I added a command for it in CCM. Still no luck. Is there some trick to make XI actually pick it up? Do I need to restart something or point it somewhere else?
Would appreciate if someone could share how they got their own script checks working. I feel like I’m missing a really obvious step.
Thanks,
Mikasa Slither io
Make sure your script is in `/usr/local/nagios/libexec`, has executable permissions (`chmod +x`), and returns proper exit codes (0–3). After adding it in CCM, apply configuration and restart Nagios. Also check SELinux/AppArmor logs if it's still blocked.