Page 2 of 2
Re: ASA Site-to-Site Tunnel Checks
Posted: Fri Jun 19, 2015 1:38 pm
by ssax
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$
}
Re: ASA Site-to-Site Tunnel Checks
Posted: Fri Jun 19, 2015 3:34 pm
by scheema31
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.
Re: ASA Site-to-Site Tunnel Checks
Posted: Fri Jun 19, 2015 3:54 pm
by scheema31
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!