[Nagiosplug-help] [SPAM]?? problem with mrtgtraf and Return code of 127

Stewart St. Dennis sstdennis at mail.zaxia.com
Fri Aug 27 01:13:35 CEST 2010


Claudio:
I have not used mrtg to analyze switch performance, but I have looked at it carefully and likely will use it soon.
As I understand it, below is the data flow involving the switch, mrtg, and Nagios:
switch <-----> mrtg -----> mrtg log file <----- check_mrtg <----> nagios
ie: mrtg runs independent of Nagios and queries the switch status and logs the result.  Then Nagios, through the plugin, reads the log and reports the results.
There error you get is: "Unable to open MRTG log file"
The check_mrtg plugin runs as the OS user Nagios.  Therefore, I suspect that if you look at the permissions on the mrtg log file, the Nagios user or group does not have read, nor does public.
Just my thoughts.  Hope it helps.
StewartStewart St. Dennis
CTO, ZAXIA
-----Original Message-----
From: "Claudio Santander" <claudio.santander at gmail.com>
Sent 8/26/2010 4:22:07 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [SPAM]??[Nagiosplug-help] problem with mrtgtraf and Return code of 127hi guy`s
i have a problem with my nagios core,
my problem is this:globalswPING
            OK08-26-2010 16:14:56
            0d 1h 33m 49s1/3
            ECO OK - Paquetes perdidos = 0%, RTA = 0.70 ms Port 1 Bandwidth Usage
            UNKNOWN08-26-2010 16:16:35
            1d 3h 21m 32s3/3
            check_mrtgtraf: Imposible abrir el archivo de registro MRTG Port 1 Link Status
            CRITICAL08-26-2010 16:08:14
            1d 3h 20m 31s3/3
            (Service Check Timed Out) Uptime
            CRITICAL08-26-2010 16:13:31
            1d 3h 19m 30s3/3
            (Service Check Timed Out) this is the log`s  nagios.log
[1282848497] SERVICE ALERT: globalsw;Port 1 Bandwidth Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file[1282852763] SERVICE NOTIFICATION: claudio;globalsw;Port 1 Link Status;CRITICAL;notify-service-by-email;(Service Check Timed Out)[1282852763] SERVICE NOTIFICATION: nagiosadmin;globalsw;Port 1 Link Status;CRITICAL;notify-service-by-email;(Service Check Timed Out)my script is hosted in: /usr/local/nagios/libexec/check_mrtgtraf permisionss-rwxrwxrwx 1 nagios nagios 56631 2010-08-19 16:19 check_mrtgtrafRegards.Claudio------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.http://p.sf.net/sfu/intel-atom-d2d_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100826/559355a4/attachment.html>


More information about the Help mailing list