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

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

kheimbuch, Sep 7, 2010 #11 chiragvaidya New Member graphs not geting generated in pnp nagios Hi, i m making graph for my 2950 cisco switch, i can able to get data then i made indexmaker for all the new cfg files and that works out aswell. ilyar, Nov 21, 2012 #19 Mark_NL New Member ow damn, the command is wrong, should be "check_mrtgtraf" try to cd into /usr/lib/nagios/plugins, does that dir exist? Yes, my password is: Forgot your password? check my blog

As per the instruction, I think the RunAsDaemon=yes should be set to RunAsDaemon=no. Please advise 0 Comment Question by:appleharry Facebook Twitter LinkedIn https://www.experts-exchange.com/questions/22671990/MRTG-ERROR-in-CFG-file-does-not-make-sense.htmlcopy LVL 57 Active today Best Solution bygiltjr O.K. Hope this helped! ERROR: "WorkDir" not specified in mrtg config file I dont know where the problem is coming from as my directives are found in my mrtg.cfg [root at kuto3 ~]# rpm -qa

Need to get it running on a new box that is also running NAGIOS successfully. Gads - This worked out for me as well. I dont want every single site to be shown in the localhost/mrtg when i view them in my browser. Last I tried creating the index with the line sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.htmland still the same error message.

Also cpu.cfg and mem.cfg don't have any tag in the PageTop property so that indexmaker choked on them. Anyone trying this at all? RAYNM3N, Oct 24, 2011 #13 RAYNM3N New Member Hi! I need some help.

I would be very greatful! Mark_NL, Nov 22, 2012 #20 (You must log in or sign up to reply here.) Show Ignored Content Page 1 of 2 1 2 Next > Share This Page Tweet Log I tried to make a new folder home/***/mrtg and put all my mrtg.conf files in there. https://support.nagios.com/forum/viewtopic.php?f=7&t=11750 If a graph looks like there's no data on it, click on it and check the statistics to see if any traffic is being seen.

Xenforo skin by Xenfocus Contact Us Help Imprint Home Top RSS Terms and Rules Forum software by XenForo™ ©2010-2014 XenForo Ltd. indexmaker also choked on every single other .cfg file because it does not like " and wants " instead (no space). Should I just copy and past what is listed above for these .cfg files? I hope that will help you get rid on some extra work.

The only file I have in the /var/lib/mrtg/ directory is: _etc_mrtg.cfg kheimbuch, Sep 2, 2010 #5 gads New Member hi Mark, thanks for the reply, sorry for the late response... http://mrtg.oetiker.narkive.com/uQLriIQA/error-workdir-not-specified-in-mrtg-config-file I generally try to keep the config and html files named the same, makes it much easier to identify which files go together. 0 LVL 57 Overall: Level 57 Linux 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. You should warn people about wrapping for the cpu.cfg file.

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 click site Another copy of mrtg seems to be running. In the text I read as follows: Now you need to restart the snmp service #/etc/init.d/snmpd restart The configuration file creating using #cfgmaker [email protected] > /etc/mrtg.cfg Creating a configuration file for Go to respective location and make sure that above command has created respective files.

Same for the closing tags. Heath on July 13, 2007 at 6:46 pm said: In response to jamie: Make sure that you don't have an extra line break. My MRTG now works after about 2 weeks of sleepless nights trying to work out all the troubles and figuring out the errors from apt-get install to compilation. news That should all be on one line in the cfg file.

Thanks for the suggestion though. Cloud Services Concerto Cloud Services Advertise Here 666 members asked questions and received personalized solutions in the past 7 days. Try the following command, making sure that you have the correct directories created: /usr/local/mrtg-2/bin/cfgmaker [email protected] --global 'WorkDir: 'var/www/mrtg/core/' --output=var/www/html/mrtg/core/router1.cfg /usr/local/mrtg-2/bin/indexmaker /var/www/html/mrtg/core/router1.cfg -output=/var/www/html/router/switch1.html Is there any special reason why you call the

Is there anything I need to change to be specific for my devices?

DO i have to make a cron job on every single cfg file ? thanks in advance... Cpu.cfg file WorkDir: /var/www/mrtg LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt Target[localhost.cpu]:.1.3.6.1.4.1.2021.11.50.0&.1.3.6.1.4.1.2021.11.50.0:[emailprotected]+ .1.3.6.1.4.1.2021.11.52.0&.1.3.6.1.4.1.2021.11.52.0:[emailprotected]+.1.3.6.1.4.1.2021.11.51.0&.1.3.6.1.4.1.2021.11.51.0:[emailprotected] RouterUptime[localhost.cpu]: [emailprotected] MaxBytes[localhost.cpu]: 100 Title[localhost.cpu]: CPU Load PageTop[localhost.cpu]: Active CPU Load % Unscaled[localhost.cpu]: ymwd ShortLegend[localhost.cpu]: % YLegend[localhost.cpu]: CPU Utilization Legend1[localhost.cpu]: Active CPU in If anyone has MRTG running on Hardy, please either point me to the right thread or post the documentation here.

Tac Anti Spam from Surrey Forum define service{ use generic-service ; Inherit values from a template host_name Router_1 ; The name of the host the service is associated with service_description PING ; The service description check_command check_ping!200.0,20%!600.0,60% did I miss something ? More about the author I had even tried creating the file itself and giving nagios full access to it.