Page 1 of 1

Custom Script

Posted: Thu Sep 01, 2016 2:44 am
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

Re: Custom Script

Posted: Thu Sep 01, 2016 5:43 am
by rhassing
In the command definition, you use a -I and on the command line you are not. Which one is correct?

Re: Custom Script

Posted: Thu Sep 01, 2016 7:10 am
by rlinux57
Actually script runs without any switch -I .

Re: Custom Script

Posted: Thu Sep 01, 2016 7:26 am
by rlinux57
I have fixed it at my own. thanks for the support :)

Re: Custom Script

Posted: Thu Sep 01, 2016 9:29 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!