Copy custom nagios core scripts to xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
kbauma01
Posts: 43
Joined: Wed May 25, 2022 6:39 am

Copy custom nagios core scripts to xi

Post by kbauma01 »

I have some custom scripts that I need to move from core to xi.

I have placed them in /usr/local/nagios/libexec/ and I can run it via the command line.

# /usr/local/nagios/libexec/check_rootpw.sh -w 10 -c 30
WARNING: The last password change for root 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 in Admin--Manage PlugIns.

Am I putting it in the wrong location? Not pulling it it correctly?
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: Copy custom nagios core scripts to xi

Post by sgardil »

Hey @Kbauma01 thanks for reaching out.

You are on the right track but I think you may have missed a step. Have you created a command yet for your plugin? If not you will need to do that in order to add the command, which will use the plugin, to the service you are creating. Here's a link to some documentation going over on how to do this:
https://assets.nagios.com/downloads/nag ... ios-xi.pdf

Let us know if this fixes the issue for you.

-Sandor Gardil