check_mrtgtraf
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: check_mrtgtraf
What's the output of find / -name mrtg.cfg?
You may just need to run mkdir /etc/mrtg/conf.d/ but if you have multiple configs, that might not be all that needs to happen.
You may just need to run mkdir /etc/mrtg/conf.d/ but if you have multiple configs, that might not be all that needs to happen.
Re: check_mrtgtraf
Yeah it looks like I don't have that /conf.d/ folder. Here are my results.
Any advice is appreciated!
Thanks
Any advice is appreciated!
Thanks
Re: check_mrtgtraf
Did you make that folder on your system?
To do that, login as root the the server and run the following to create the folder and to set the permissions.
Then you will have to setup a cron entry to run the mrtg application every 5 minutes which will generate the /var/lib/mrtg rrd files.
If your system has this file on the system
Make sure this line is in that file
If the /etc/cron.d/mrtg file doesn't exist, create it and add that line to it.
Then restart the cron daemon by running the following to load the changes
Try that and see if the /var/lib/mrtg rrd files are created.
If not, run the following command as root and post back the /tmp/mrtg.txt file?
To do that, login as root the the server and run the following to create the folder and to set the permissions.
Code: Select all
mkdir /etc/mrtg/conf.d
chmod nagios.nagios /etc/mrtg/conf.d
chmod 775 /etc/mrtg/conf.d
If your system has this file on the system
Code: Select all
/etc/cron.d/mrtg
Code: Select all
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
Then restart the cron daemon by running the following to load the changes
Code: Select all
service crond restart
If not, run the following command as root and post back the /tmp/mrtg.txt file?
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_mrtgtraf
Hi
I made the directory. I was unable to chmod nagios.nagios /etc/mrtg/conf.d. I attached the error I got.
I've also attached the .txt file you requested.
I made the directory. I was unable to chmod nagios.nagios /etc/mrtg/conf.d. I attached the error I got.
I've also attached the .txt file you requested.
- Attachments
-
- mrtg.txt
- (1.19 KiB) Downloaded 310 times
-
- chmod.png (6.49 KiB) Viewed 3283 times
Re: check_mrtgtraf
Oops, typo on my part. It should be chown, not chmod.
Code: Select all
chown nagios.nagios /etc/mrtg/conf.d
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_mrtgtraf
Another thing, edit the /etc/mrtg/mrtg.cfg file and remove this line
Save the file and see if the rrd files are created in the /var/lib/mrtg folder.
Code: Select all
Enable SNMPv3: yes
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_mrtgtraf
Hi. I did all these things and still nothing
Re: check_mrtgtraf
Run the following command as root and post back the /tmp/mrtg.txt file?
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_mrtgtraf
Here it is.
Thanks again for your patience and diligence in working with me.
Thanks again for your patience and diligence in working with me.
- Attachments
-
- mrtg (1).txt
- (207 Bytes) Downloaded 315 times