Home > Error Unable > Error Unable To Open Config File /etc/mrtg/mrtg.cfg

Error Unable To Open Config File /etc/mrtg/mrtg.cfg

Open switch.cfg file nano /etc/nagios/objects/switch.cfg 3. I have written a reply - at the bottom of all messages - in response to your message. Creating index file for the webserver using indexmaker #indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html Now you need to reboot your system wait for five minutes or so and then take a look at I had even tried creating the file itself and giving nagios full access to it. this contact form

I am using Ubuntu, which is very similar to Debian. I am stuck here can anyone help from here ? alt Admin on October 12, 2006 at 10:08 pm said: thanks for your nice point and i have corrected some it helps more people. after I run this i get: -bash: /usr/lib/nagios/plugins/check_local_mrtgtraf: No such file or directory by the way when i installed nagios i ran this command: yum install nagios nagios-devel nagios-plugins* gd gd-devel

Is there anything I need to change to be specific for my devices? If your Debian system's IP address is then you'd type in the following in the address bar of a browser running on a system on the same network: Your Forum Statistics Discussions: 54,254 Messages: 287,475 Members: 92,324 Latest Member: progressed36 Share This Page Tweet Howtoforge - Linux Howtos and Tutorials Home Forums > Linux Forums > Installation/Configuration > English | I had no errors during installation.

Code: ls -al /var/www/html/mymrtg/ Click to expand... -rw-r--r--. 1 root root 55171 Nov 21 09:40 /var/www/html/mymrtg/ ilyar, Nov 21, 2012 #17 Mark_NL New Member What happens when you run the Gads - This worked out for me as well. Eric Brander 2011-05-06 13:45:48 UTC PermalinkRaw Message In my experience you must put the "--output=" parameter last. I also had to make the appropriate change within the crontab file as well.

I had already installed mrtg but it has the same error. RAYNM3N, Oct 24, 2011 #13 RAYNM3N New Member Hi! find your nagios plugin dir (should be defined in your nagios config somewhere) then correct the command to reflect the correct location and run it. her latest blog That should all be on one line in the cfg file.

falko, Sep 4, 2010 #9 gads New Member hi, i have solved this problem, this is the things that i did: Install MRTG: To monitor bandwidth usages of router/switch you must Like, define host{ use generic-switch host_name Router_1 alias Router 1 address hostgroups switches } 4. toorimaJuly 21st, 2008, 08:08 AMnot sure if you solved it or not but if not do sudo bash and then run the commands alynxAugust 18th, 2008, 08:24 AMHow did this go Covered by US Patent.

This was done for each switch so that I knew which output file to point the nagios check_mrtgtraf command to in the switch.cfg file. check these guys out Join our community for more solutions or to ask questions. I made 3 times doing thisand after that mrtg9.cfg went fine.upon reading the indexmaker options on the documentation, i found additionaloptions being missed out. kutasheax 2011-05-07 09:49:34 UTC PermalinkRaw Message I got the problem sorted out while i was reading documentation on this siteregarding indexmaker and cfgmaker.Here's what i did based following the sample presented

Finally, why does the last cfgmaker command write to /etc/mrtg/mrtg.conf rather than /etc/mrtg.cfg? http://netfiscal.com/error-unable/error-unable-to-read-config-file-usr-lib-ivl-fpga-conf.html Your command is not working because it is the wrong format of the command. teo on April 26, 2015 at 12:05 pm said: What does this part mean?? > The configuration file creating using > #cfgmaker [emailprotected] > /etc/mrtg.cfg This is not even a meaningful Check /etc/mrtg.pid Please Help!

here im attaching some screenshots so taht u can help me better. Managed to install the whole thing, works like a charm. I checked the following: The html file works The switch.cfg is configured define service{ use generic-service ; Inherit values from a template host_name Router_San_Rafael service_description Port 2 Bandwidth Usage check_command navigate here env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 10.

Thanks for any help anyone can provide 🙂 Ch33rz, Troma Lawrence Giam on March 24, 2009 at 7:09 am said: Hi there, Tried installing MRTG on Debian Etch with the standard There is also no need to extra add any line in crontab. boast on April 18, 2007 at 6:49 pm said: I don't get it. [ Error writing /etc/cron.mrtg/cpu: No such file or directory ] jamie on July 13, 2007 at 4:02 pm

I tried to make a new folder home/***/mrtg and put all my mrtg.conf files in there.

Code: ls -al /var/www/html/mymrtg/ Mark_NL, Nov 21, 2012 #16 ilyar New Member Mark_NL said: ↑ What output does this command give you? MRTG is Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network links. thanks in advance... Page 1 of 2 1 2 Next > gads New Member hi, I have installed nagios on centOS and I monitor switch but the Port1 Bandwidth Usage has this error "check_mrtgtraf:

So here it is.[***@kuto3 ~]# indexmaker --output=/var/www/mrtg/index.html/etc/mrtg/mrtg.cfg /etc/mrtg/mrtg9.cfg[***@kuto3 ~]#Voila!!!Restart httpd daemon[***@kuto3 ~]# service httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ][***@kuto3 ~]# service snmpd restartStopping snmpd: [ OK ]Starting I searched it on google but i don’t get the proper answer..plz help me out.. Try the following command, Go to Solution 3 2 2 Participants giltjr(3 comments) LVL 57 Linux Networking9 appleharry(2 comments) 5 Comments LVL 57 Overall: Level 57 Linux Networking 9 Message his comment is here Use of uninitialized value $first in hash element at /usr/bin/indexmaker line 353.

Board index The team • Delete all board cookies • All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group Ubuntu Since I am monitoring multiple switches I had to modify some things. When I past in the cat /etc/cron.d/mrtg 0-55/5 * * * * root if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg >> /var/log/mrtg/mrtg.log 2>&1; No, create an account now.

Like in my case it has found port 2 running on router and hence created file, By the way, i completed all this on Debian…. Please help ! Chris on February 7, 2008 at 5:23 pm said: I was good up until the, "examples how to monitor cpu, memory, disk usuage".

Your command is not working because it is the wrong format of the command. This mrtg.conf is not referenced anywhere else so I don't see what's the point. thanks. Other wise it would not update that file and it would give the error "MRTG data has expired".

Cheers. Anyone trying this at all? crontab -e 11. Next message: [mrtg] ERROR: "WorkDir" not specified in mrtg config file Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the mrtg

The reason is that if you set RunAsDaemon to yes and put a cron job to run every 5 mins, it will complaint with this message ==> mrtg/mrtg.log <== ERROR: I http://www.hardfolding.com/ftag1.php/mem/148779.png (http://www.hardfolding.com?go=38&id=148779) alynxOctober 3rd, 2008, 08:32 AMHi I got a new "problem" at hand. http://localhost/mymrtg/{name of html file} Actually when you run mrtg command it searches for respective router community collects all data from router. to resolve, add the necessary backslashes.

Required fields are marked *Comment Name * Email * Website Loading « Activate NAT on Debian etch and Disable IPv6 support on Debian Webmin Installation and Configuration in Debian and Ubuntu Marek on March 30, 2008 at 6:23 pm said: I got an error: Use of uninitialized value in hash element at /usr/bin/indexmaker line 352. So I tried looking inside Synaptic and found the mrtg packages.

© Copyright 2017 netfiscal.com. All rights reserved.