Copy custom scripts from core to Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
robertmaddox
Posts: 1
Joined: Sun Sep 29, 2024 11:45 pm

Copy custom scripts from core to Nagios XI

Post by robertmaddox »

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 Nagios XI not pulling in for some reason?
gwesterman
Posts: 181
Joined: Wed Aug 23, 2023 11:29 am

Re: Copy custom scripts from core to Nagios XI

Post by gwesterman »

Hi @robertmaddox,

In order to add your plugin to services, you will first have to define a command (CCM -> Commands). Once you define a command that calls your custom script, you can add the command to your new service(s). For more info, here is a detailed doc on the subject.

If you have any additional questions, please ask.

Thank you!
Post Reply