check_mrtgtraf: Unable to process MRTG log file..

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagios@ios
Posts: 19
Joined: Wed Feb 06, 2013 5:09 pm

check_mrtgtraf: Unable to process MRTG log file..

Post by nagios@ios »

Hello All,

i have installed nagios-3.4.4
nagios-plugins-1.4.16

but when i configured it to monitor the switch using http://nagios.sourceforge.net/docs/3_0/ ... uters.html

it is giving me this error for bandwidth usuage.

Can some one help me with this?

thanks
nagios@ios
Posts: 19
Joined: Wed Feb 06, 2013 5:09 pm

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by nagios@ios »

i checked the /var/lib/ and there was no 'mrtg' . So i created directory named 'mrtg' and than created a file name myipaddress_1.log;

After than i run
crontab -e

and place the line ..
*/5 * * * * /usr/bin/env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg –logging /var/log/mrtg.log

but still get the same error.
ichecked that myipaddress_1.log file but nothing is being written there. its empty.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by slansing »

What is the error you are receiving? It doesn't show in your first post.
nagios@ios
Posts: 19
Joined: Wed Feb 06, 2013 5:09 pm

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by nagios@ios »

check_mrtgtraf: Unable to process MRTG log file

this is the alert message i am getting for the service Port 1 Bandwidth Usage for my Switch.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by scottwilkerson »

what is the full command you are using?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by gshergill »

Hi nagios@ios,

Please see my post at the following link:

http://support.nagios.com/forum/viewtop ... 97&p=41106

The link http://www.howtoforge.com/forums/archiv ... 48484.html at about post 10 is the solution to this.

Note that you may need to change a few of the commands there to match your setup.

Hope this helps.

Kind Regards,

Gary Shergill
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_mrtgtraf: Unable to process MRTG log file..

Post by abrist »

@nagios@ios: How did gshergill's link work out for you? Has this been resolved?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked