Cannot ping with APAN

Jesús Oliván jesusolivan at pickingpack.net
Thu Oct 16 16:11:55 CEST 2003


Hi!

i'm trying to create some ping rtt reports with apan and rrdtool. I've saw
at apan documentation for installing and configuring it, but i didnt
success. Now i've got two problems:

1.- nagios tell me "Status Information: PING CRITICAL - Host not found
(PDC)" when performing ping check with apan in my host "PDC". I've tried to
perform manual plugin check and it returned this:

debian:/usr/local/nagios/etc# /usr/local/nagios/apan/apan.sh ping PDC ping
10 150.0,20% 600.0,80%
(standard_in) 1: parse error
PING CRITICAL - Host not found (PDC)

Here is my checkcommands.cfg:

define command {
        command_name                   apan
        command_line                   /usr/local/nagios/apan/apan.sh $ARG1$
$HOSTNAME$ "$SERVICEDESC$" $TIMET$ $ARG2$ $ARG3$
}

part of services.cfg:

# Generic service definition template
define service {
host_name                      PDC
service_description            ping
check_command                  apan!ping!100.0,20%!500.0,60%
name                           ping
use                            generic-service
normal_check_interval          1
check_period                    24x7
        max_check_attempts              3
        retry_check_interval            1
        contact_groups                  linux-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r

}

and finally apan.cfg:
PDC;ping;/usr/local/nagios/rrd/PDC_Ping.rrd;ping;ping:LINE2;ping round
time;Seconds



2.- Im trying to add an image linked to graphical report, but i didnt
success, attaching a bit of my cgi.cfg:

        define serviceextinfo{
        host_name               PDC
        service_description     ping
        notes_url
/nagios/cgi-bin/apan.cgi?host=PDC&service=ping
        icon_image              graph.png
        icon_image_alt          View graphs
}

I cannot see any icon with this configuration =(


That's all, thanks in advance for your help =)





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list