Custom Script

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Custom Script

Post by rlinux57 »

I have create a custom script to check ip information from third party website. How can i make its command definition ?

I have used below command definition but didn't find any solution:

Code: Select all

#Check IP Repute
define command{
        command_name    check_iprepute
        command_line    $USER1$/check_iprepute -I $HOSTADDRESS$
        }

Code: Select all

#./check_iprepute IPADDRESS
Output:

Code: Select all

REPUTATION STATUS: 
NEUTRAL 50
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Custom Script

Post by rhassing »

In the command definition, you use a -I and on the command line you are not. Which one is correct?
Rob Hassing
Image
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Custom Script

Post by rlinux57 »

Actually script runs without any switch -I .
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Custom Script

Post by rlinux57 »

I have fixed it at my own. thanks for the support :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom Script

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked