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.
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Fri Jun 19, 2015 1:38 pm
You should change your command as well to:
Code: Select all
define command{
command_name check_asa_vpn
command_line $USER1$/check_asa_vpn.pl -H $HOSTADDRESS$ -C '$ARG1$' -P $ARG2$
}
scheema31
Posts: 90 Joined: Wed Jun 06, 2012 1:11 pm
Post
by scheema31 » Fri Jun 19, 2015 3:34 pm
thanks ssax for the reply!
Im still not able to make this work, here is what i have setup:
1. commands.cfg
define command{
command_name check_asa_vpn.pl
command_line /usr/local/nagios/libexec/check_asa_vpn.pl -H $HOSTADDRESS$ -C '$ARG1$' -P $ARG2$ }
2. resources.cfg
$USER11$=*****!
3. Service Definition
define service{
use Urgent-services
host_name hostname
service_description Production - BCAA Tunnel
check_command check_asa_vpn.pl!$USER11$!peerip
}
I know the community string is correct and access is available i get a respnse when running the command on the nagios server.
scheema31
Posts: 90 Joined: Wed Jun 06, 2012 1:11 pm
Post
by scheema31 » Fri Jun 19, 2015 3:54 pm
OK Ive got this working with the commands you recommended (what i posted in previous reply).
i was just using a wrong IP but all is good.
you can close this case now.
Thanks for all your help!