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
Can’t get my custom check to work in Nagios XI
Re: Can’t get my custom check to work in Nagios XI
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!
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
Post the output of running the script, and the command. Use the absolute path in the command.
-
james598patton
- Posts: 1
- Joined: Wed Sep 17, 2025 12:47 am
Re: Can’t get my custom check to work in Nagios XI
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.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