Copy custom scripts from core to XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
kathleenchristie
Posts: 1
Joined: Mon Apr 22, 2024 2:54 pm

Copy custom scripts from core to XI

Post by kathleenchristie »

Hello,

I have some custom scripts that I need to move from our old core system to the new XI server.

I have placed them in /usr/local/nagios/libexec/ and I can run the check successfully on the command line with no issues.

# /usr/local/nagios/libexec/check_password_age.sh -w 10 -c 30
WARNING: The last password change for user was 22 days ago

But when I try to create a service in XI using the CCM I cannot find that in the list. And I did confirm that it is Admin --> manage plugins.

Am I putting the shell script in the wrong location? Is XI not pulling in for some reason?
sgardil
Posts: 147
Joined: Wed Aug 09, 2023 9:58 am

Re: Copy custom scripts from core to XI

Post by sgardil »

That is the correct location for plugins so that seems weird. Could you try restarting your nagios and nagiosxi and see if it is a caching issue? It could also possibly be a permissions issue, you could try chowning it to nagios:nagios and see if that fixes it.
kg2857
Posts: 242
Joined: Wed Apr 12, 2023 5:48 pm

Re: Copy custom scripts from core to XI

Post by kg2857 »

You need a nagios command. Services run commands, and commands run plugins.
Post Reply