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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
Mikasa23
Posts: 25
Joined: Thu Jul 06, 2023 3:12 am

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

Post 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
jsimon
Posts: 339
Joined: Wed Aug 23, 2023 11:27 am

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

Post 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!
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

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

Post by kg2857 »

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

Post 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.
Post Reply