Announcement

Collapse
No announcement yet.

check_graph plugins not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • khilari
    replied
    ^ sorry for the above post.

    I didn't run check_graph_ping with the -g option, that is why i didn't see .rrd files in /usr/local/oreon/rrd

    So, now i ran the command with the -g option and i see "1.rrd" in /usr/local/oreon/rrd ... however, I can't see the graphs in the web gui
    infact, i don't know where to go for the graphs ... I go to Oreon Views section, but it only gives me the error "Problem with Perfparse Database connection : DB Error: no such database"

    Any help will be appreciated.

    Thanks,

    Leave a comment:


  • khilari
    replied
    Originally posted by Menno
    Originally posted by voodooo
    Code:
    ./check_graph_ping.pl
    Can't locate Config/IniFiles.pm in @INC (@INC contains:.......
    at /home/nagios/libexec/oreon.pm line 27.
    Maybe you forgot to install the perl module?
    perl -MCPAN -e shell
    cpan> install Config::IniFiles

    Regards
    Menno
    i had the exact same error so i did the "install config... in cpan"
    now i get

    ./check_graph_ping.pl -H 10.10.1.27
    GPING OK - rtt min/avg/max/mdev = 2.984/2.984/2.984/0.000 ms|time=2.984ms;20;40;; ok=1
    now, how do i view the graphs on the web gui ??
    i went to /usr/local/oreon/rrd , but didn't see any .rrd files.

    Please let me know what i am doing wrong. Thanks!

    Leave a comment:


  • khilari
    replied
    Originally posted by Menno
    Originally posted by voodooo
    Code:
    ./check_graph_ping.pl
    Can't locate Config/IniFiles.pm in @INC (@INC contains:.......
    at /home/nagios/libexec/oreon.pm line 27.
    Maybe you forgot to install the perl module?
    perl -MCPAN -e shell
    cpan> install Config::IniFiles

    Regards
    Menno
    yes this worked for me

    Here is what i did

    # perl -MCPAN -e shell
    Are you ready for manual configuration? [yes] no
    cpan> i /IniFiles/
    cpan> install Config::IniFiles
    cpan> exit
    check this - http://www.netadmintools.com/part298.html

    Leave a comment:


  • voodooo
    replied
    Now i have the .rrd files in place but still no graphs......

    Code:
    -rw-rw-r--   1 nagios nagios 203488 Jun  7 13:03 1.rrd
    -rw-rw-r--   1 nagios nagios 208288 Jun  7 13:03 2.rrd
    -rw-rw-r--   1 nagios nagios 208288 Jun  7 13:03 3.rrd
    Code:
    [[email protected] libexec]# ./check_graph_ping.pl -H 192.168.40.100
    GPING OK - 64 bytes from 192.168.40.100: icmp_seq=0 ttl=254 time=0.968 ms
    When i try to view:
    Code:
    Warning: imagecreate(): Invalid image dimensions in /home/nagios/oreon/include/graph/graph_image.php on line 70
    
    Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/nagios/oreon/include/graph/graph_image.php on line 72
    
    Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/nagios/oreon/include/graph/graph_image.php on line 73
    
    Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/nagios/oreon/include/graph/graph_image.php on line 74
    
    Warning: imagestring(): supplied argument is not a valid Image resource in /home/nagios/oreon/include/graph/graph_image.php on line 77
    
    Warning: imagepng(): supplied argument is not a valid Image resource in /home/nagios/oreon/include/graph/graph_image.php on line 80
    There's something with the generation of the PNG can this be the rrd creation ? php version? GD lib?

    If anyone could help... tks,
    HS

    Leave a comment:


  • voodooo
    replied
    Yes, that's it tks.
    I was working with diferent verssions of scripts:

    check_graph_ping (nagios-plugins 1.3.0) 1.0
    check_graph_ping (nagios-plugins 1.4.3) 1.2

    Leave a comment:


  • Menno
    replied
    Originally posted by voodooo
    Code:
    ./check_graph_ping.pl
    Can't locate Config/IniFiles.pm in @INC (@INC contains:.......
    at /home/nagios/libexec/oreon.pm line 27.
    Maybe you forgot to install the perl module?
    perl -MCPAN -e shell
    cpan> install Config::IniFiles

    Regards
    Menno

    Leave a comment:


  • voodooo
    replied
    Hello again :|

    I have re-installed nagios and oreon on a linux box, now when i run the graph scripts:
    Code:
    ./check_graph_ping.pl
    Can't locate Config/IniFiles.pm in @INC (@INC contains:.......
    at /home/nagios/libexec/oreon.pm line 27.
    BEGIN failed--compilation aborted at /home/nagios/libexec/oreon.pm line 27.
    Compilation failed in require at ./check_graph_ping.pl line 32.
    BEGIN failed--compilation aborted at ./check_graph_ping.pl line 32.
    I have generated the oreon.pm in options > plugins, and all the config files with oreon. What's whrong ?

    tks, HS

    Leave a comment:


  • DonKiShoot
    replied
    Yes this output are very different

    You must modify the parssing code if you want to use this script however.

    Leave a comment:


  • voodooo
    replied
    So you think the problem is the ping's output, makes sense cause i'm using solaris

    Solaris:
    Code:
    bash-2.05$ uname -a
    SunOS 5.9 Generic_117171-12 sun4u sparc SUNW,Ultra-5_10
    
    bash-2.05$ which ping
    /usr/sbin/ping
    
    bash-2.05$ ping 192.168.40.100
    192.168.40.100 is alive
    
    bash-2.05$ ping -I 1 192.168.40.100
    PING 192.168.40.100: 56 data bytes
    64 bytes from holmes (192.168.40.100): icmp_seq=0. time=2. ms
    64 bytes from holmes (192.168.40.100): icmp_seq=1. time=0. ms
    64 bytes from holmes (192.168.40.100): icmp_seq=2. time=2. ms
    ----192.168.40.100 PING Statistics----
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip (ms)  min/avg/max = 0/1/2
    Linux:
    Code:
    [[email protected]]# uname -a
    Linux 2.6.9-34.ELsmp #1 SMP i686 i686 i386 GNU/Linux
    
    [[email protected]]# which ping
    /bin/ping
    
    [[email protected]# ping 192.168.40.100
    PING 192.168.40.100 (192.168.40.100) 56(84) bytes of data.
    64 bytes from 192.168.40.100: icmp_seq=0 ttl=254 time=7.17 ms
    64 bytes from 192.168.40.100: icmp_seq=1 ttl=254 time=1.40 ms
    64 bytes from 192.168.40.100: icmp_seq=2 ttl=254 time=0.481 ms
    --- 192.168.40.100 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2002ms
    rtt min/avg/max/mdev = 0.481/3.019/7.178/2.964 ms, pipe 2
    Thanks for the help.
    HS

    Leave a comment:


  • DonKiShoot
    replied
    Try to put this on top of your check_graph_ping.pl :
    Code:
    use POSIX qw(locale_h);
    setlocale(LC_CTYPE, "fr_FR");
    That'all ...

    # Cette fonctionnalité n'existait pas avant Perl 5.004
    require 5.004;

    # Import des outils de manipulation du "locale"
    # depuis le module POSIX.
    # Cette exemple utilise : setlocale -- l'appel de fonctio
    # LC_CTYPE -- expliqué plus bas
    use POSIX qw(locale_h);

    # demande et sauvegarde le "locale" initial
    $old_locale = setlocale(LC_CTYPE);

    setlocale(LC_CTYPE, "fr_CA.ISO8859-1");
    # LC_CTYPE est maintenant dans le
    # "locale" "French, Canada, codeset ISO 8859-1"

    setlocale(LC_CTYPE, "");
    # LC_CTYPE revient à sa valeur par défaut définie par
    # les variables d'environnement LC_ALL/LC_CTYPE/LANG
    # Voir plus bas pour la documentation

    # restaure le "locale" initial
    setlocale(LC_CTYPE, $old_locale);

    Leave a comment:


  • DonKiShoot
    replied
    LOCAL bug i think !

    LANG="fr_FR.UTF-8" may help you but it is not a solution :cry:

    check_graph_ping use the command ping and i think that the command output differs between computer who use differente local language.

    Leave a comment:


  • voodooo
    replied
    Hi there,

    I can't graph anything to, but my thing is with the scripts:

    Code:
    bash-2.05# ./check_graph_ping.pl -H 192.168.40.100 -w 80 -c 90
    Use of uninitialized value in pattern match (m//) at check_graph_ping.pl line 141.
    Use of uninitialized value in split at check_graph_ping.pl line 145.
    Use of uninitialized value in split at check_graph_ping.pl line 146.
    Use of uninitialized value in numeric eq (==) at check_graph_ping.pl line 156.
    Use of uninitialized value in concatenation (.) or string at check_graph_ping.pl line 161.
    GPING OK -
    Everything is working ok with nagios and oreon.
    Anyone ?
    Tks in advance

    Leave a comment:


  • Zby
    replied
    Julio,

    I observe .rrd files created in the /usr/local/oreon/rrd/ directory, for your info, I tried check_graph_ping. My question where will I find them back in the GUI? I have a 1.rrd in the dir. ...

    Thx, Zby-)

    Leave a comment:


  • julio
    replied
    hosts and services will be diplayed only when rrd database will be create in /usr/local/oreon/rrd/..

    Are you using oreon plugins ? (check_graph...)

    Leave a comment:


  • Zby
    replied
    Wistof, Julio,

    Thanks a lot for your help, it seems my Oreon setup is working a lot better now... :lol: I have changed to /usr/lib/perl5/vendor_perl/5.8.8 instead of /usr/lib/perl5/vendor_perl/5.8.8/Log/Log4perl/Appender where I originally found RRDs.pm...a little bit alone maybe?)

    But still one stupid question. Now that Oreon generates his *.rrd in the /usr/local/oreon/rrd directory, how are they displayed? The Oreon Views are desperatly empty (No host, No service)! :evil:

    Once again, I request your help... Merci d'avance, Zby-)

    Leave a comment:

Working...
X