nagiosgrapher 1.6rc1 - problem with graphs - Can't call method "get_ngrapherxml"

Michał Panasiewicz wolvverine at tarchomin.pl
Sat Jul 1 15:41:00 CEST 2006


run link to graph
https://localhost:8443/nagios/cgi-bin/graphs.cgi?host=printer_minolta&service=PING and :
Software error:
Can't call method "get_ngrapherxml" on an undefined value at /usr/lib/nagios/cgi/graphs.cgi line 110.


# ps ax | grep collect
32248 ?        Ss     0:00 /usr/bin/perl /usr/lib/nagios/grapher/collect2.pl

config:
# cat /etc/nagios/ngraph.ncfg | grep -v ^# | grep -v ^$
define config {
        pipe                    /var/lib/nagios/rw/ngraph.pipe
        port                    5667
        buffer                  1024
        interface               network
        # please use subfolder
        pidfile                 /var/lib/nagios/nagios_grapher/nagios_grapher.pid
        user                    nagios
        group                   nagios
        # normal_check_interval
        step                    300
        # VALUE or AUTO
        heartbeat               AUTO
        rrdpath                 /var/lib/nagios/rrd/
        tmppath                 /tmp/nagiosgrapher/
        fontfile                /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
        serviceext_type         MULTIPLE
        serviceextinfo          /etc/nagios/serviceext.cfg
        serviceext_path         /etc/nagios/serviceext
        url                     /nagios/cgi-bin/graphs.cgi
        notes_url               /wiki/index.php/$HOSTNAME$#$SERVICEDESC$
        nagios_config           /etc/nagios/nagios.cfg
        cgi_config              /etc/webapps/nagios/cgi.cfg
        icon_image_tag          ' dot.png' border="0"></a><A TARGET="_blank" HREF="graphs.cgi?###URL###"><img src='###IMAGESRC###' '
        icon_image_src          /nagios/images/graph.png
        icon_image_script       /nagios/cgi-bin/rrd2-system.cgi?###URL###&start=-5400&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true
        icon_image_static       no
        log_file                /var/log/nagios/ngraph.log
        log_level               255
        rrd_color_background    ffffff
        rrd_color_font          333333
        rrd_color_arrow         ff0000
        rrd_color_frame         ffffff
        rrd_color_grid
        rrd_color_canvas        ffffff
        rrd_color_shadea        c0c0c0
        rrd_color_shadeb        c0c0c0
        fe_use_browser_all      1
        fe_use_browser_for      admin
        fe_use_browser_url      0
        use_authentication      yes
}
cfg_dir=/etc/nagios/ngraph.d
cfg_dir=/etc/nagios/serviceext

# cat /etc/nagios/misccommands.cfg | grep -v ^# | grep -v ^$
...
define command{
        command_name process-service-perfdata
        command_line /usr/lib/nagios/grapher/udpecho 127.0.0.1 "$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$" 5667
        }
define command{
        command_name   process-host-perfdata
        command_line /usr/lib/nagios/grapher/udpecho 127.0.0.1 "$HOSTNAME$" 5667
        }

# cat /etc/nagios/serviceext/printer_minolta.cfg | grep -v ^# | grep -v ^$ <--- (file automatic create)
define serviceextinfo{
        host_name               printer_minolta
        icon_image               dot.png' border="0"></a><A TARGET="_blank" HREF="graphs.cgi?host=printer_minolta&service=PING"><img src='/nagios/cgi-bin/rrd2-system.cgi?host=printer_minolta&service=PING&start=-5400&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true'
        service_description     PING
        notes_url               /wiki/index.php/$HOSTNAME$#$SERVICEDESC$
}

in logs:
#cat /var/log/httpd/error_log
... 

[Sat Jun 24 20:24:13 2006] [error] [client 127.0.0.1] Can't call method "get_ngraphercfg_value" on an undefined value at /usr/lib/nagios/cgi/rrd2-system.cgi line 37., referer: https://localhost:8443/nagios/cgi-bin/status.cgi?host=all
[Sat Jun 24 20:24:13 2006] [error] [client 127.0.0.1] Premature end of script headers: rrd2-system.cgi, referer: https://localhost/nagios/cgi-bin/status.cgi?host=all
[Sat Jun 24 20:28:16 2006] [error] [client 127.0.0.1] File does not exist: /usr/share/nagios/images/logos/dot.png, referer: https://localhost/nagios/cgi-bin/status.cgi?host=all

# cat /var/log/nagios/ngraph.log
...
2006-06-24 20:17:47 PIPE: serwer        UPS1-Battery-Charge     UPS OK - Battery Charge: %
2006-06-24 20:17:47 REGEX: No blocks for 'UPS1-Battery-Charge' found.
2006-06-24 20:17:57 NET: got udp message from localhost:3029
2006-06-24 20:17:57 PIPE: speedtouch    PING    PING OK - Packet loss = 0%, RTA = 0.49 ms
2006-06-24 20:17:57 REGEX: 2 blocks for 'PING' found.
2006-06-24 20:17:57 REGEX: graph_value=Loss
2006-06-24 20:17:57 REGEX: output=plugin.
2006-06-24 20:17:57 REGEX: regex=m/loss = ([0-9]*)/i
2006-06-24 20:17:57 REGEX: perfdata=ping ok - packet loss = 0%, rta = 0.49 ms
2006-06-24 20:17:57 REGEX: match=0
2006-06-24 20:17:57 REGEX: graph_value=RTA
2006-06-24 20:17:57 REGEX: output=plugin.
2006-06-24 20:17:57 REGEX: regex=m/rta = ([0-9]*\.[0-9]*)/i
2006-06-24 20:17:57 REGEX: perfdata=ping ok - packet loss = 0%, rta = 0.49 ms
2006-06-24 20:17:57 REGEX: match=0.49
2006-06-24 20:17:57 VALUES: [speedtouch][PING]: RTA=0.49 Loss=0
2006-06-24 20:17:57 RRD: rrdtool update /var/lib/nagios/rrd/speedtouch/0ced56561bbb8d7982a6559afc29c45b.rrd --template=RTA:Loss N:0.49:0
2006-06-24 20:18:07 NET: got udp message from localhost:3036
2006-06-24 20:18:07 PIPE: printer_minolta       PING    PING OK - Packet loss = 0%, RTA = 6.76 ms
2006-06-24 20:18:07 REGEX: 2 blocks for 'PING' found.
2006-06-24 20:18:07 REGEX: graph_value=Loss
2006-06-24 20:18:07 REGEX: output=plugin.
2006-06-24 20:18:07 REGEX: regex=m/loss = ([0-9]*)/i
2006-06-24 20:18:07 REGEX: perfdata=ping ok - packet loss = 0%, rta = 6.76 ms
2006-06-24 20:18:07 REGEX: match=0
2006-06-24 20:18:07 REGEX: graph_value=RTA
2006-06-24 20:18:07 REGEX: output=plugin.
2006-06-24 20:18:07 REGEX: regex=m/rta = ([0-9]*\.[0-9]*)/i
2006-06-24 20:18:07 REGEX: perfdata=ping ok - packet loss = 0%, rta = 6.76 ms
2006-06-24 20:18:07 REGEX: match=6.76
2006-06-24 20:18:07 VALUES: [printer_minolta][PING]: RTA=6.76 Loss=0
2006-06-24 20:18:07 RRD: rrdtool update /var/lib/nagios/rrd/printer_minolta/35b59b80cca761ade545b170ce1d0936.rrd --template=RTA:Loss N:6.76:0
...



-- 
Michał Panasiewicz - jabber: wolvverine [ at ] chrome [ dot ] pl  || e-mail: wolvverine [ at ] tlen [ dot ] pl , wolvverine [ at ] pld-linux [ dot ] org
http://www.linkomp.pl - Linkomp - Usługi informatyczne dla firm - biuro [ at ] linkomp [ dot ] pl


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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