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.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Sep 01, 2016 2:44 am
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$
}
Output:
rhassing
Posts: 416 Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands
Post
by rhassing » Thu Sep 01, 2016 5:43 am
In the command definition, you use a -I and on the command line you are not. Which one is correct?
Rob Hassing
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Sep 01, 2016 7:10 am
Actually script runs without any switch -I .
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Sep 01, 2016 7:26 am
I have fixed it at my own. thanks for the support
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Thu Sep 01, 2016 9:29 am
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee