Apan-Scripts don't check the nagios config-files. Therefore there is no possibiblity to pass the ip-address to the scripts: if the nagios-names don't match the dns-names the apan-ping-plugin could'nt reach the host...
Logged In: YES user_id=759933
You can modify some files to resolve this problem.
- Modify $APANDIR$/apan.sh in case section like below:
ping) HOST=$7 ping ;;
- MOdify your checkcommand.cfg file like bellow:
#PING define command { command_name check_ping command_line $USER2$/apan.sh ping $HOSTNAME$ $SERVICEDESC$ $TIMET$ 20,60% 5000,80% $HOSTADDRESS$ }
and problem is resolved ...
Log in to post a comment.
Logged In: YES
user_id=759933
You can modify some files to resolve this problem.
- Modify $APANDIR$/apan.sh in case section like below:
ping) HOST=$7
ping
;;
- MOdify your checkcommand.cfg file like bellow:
#PING
define command {
command_name check_ping
command_line $USER2$/apan.sh ping $HOSTNAME$
$SERVICEDESC$ $TIMET$ 20,60% 5000,80% $HOSTADDRESS$
}
and problem is resolved ...