So I am doing a port status check on some of my juniper switches. I am using the following check:
Code: Select all
/usr/local/nagios/libexec/check_ifoperstatnag 607 -v 3 -l authPriv -u <omitted> -x aes -X <omitted> -a sha -A <omitted> 6.7.8.9When I run the check test in Core Config Manager it works correctly after prompting me for a host address:
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_ifoperstatnag 607 -v 3 -l authPriv -u <omitted> -x aes -X <omitted> -a sha -A <omitted> 6.7.8.9
OUTPUT: OK - Interface <omitted> (index 607) is up.What I believe the problem is the host address field is not being read by the service. When I look at the configuration line via the "reconfigure this service" option in the rule it reads:
Code: Select all
check_xi_service_ifoperstatusnag!607!-v 3 -l authPriv -u <omitted> -x aes -X <omitted> -a sha -A <omitted>!!!!!!As you can see the host address is not specified. When I look at the alias for this check it should be grabbing the host address:
Code: Select all
$USER1$/check_ifoperstatnag $ARG1$ $ARG2$ $HOSTADDRESS$