MRTG Issue w/ Nagios 4.0.6
Posted: Mon Oct 06, 2014 6:36 pm
Ubuntu 14.04
Nagios 4.0.6
First let me say I have searched and researched this issue a lot and followed a lot of tutorials on fixes including one in this forum from a few days ago but nothing seems to fix my issue, there are so many links on the issue it should be an easy fix but I haven't been able to fix it yet. I think it is because I am missing a piece of the puzzle.
I have Nagios 4.0.6 up and running with nagiosgraph. My issue is with MRTG, I have it configured and working if I go to http://myserver/nagios/stats I am measuring data and I see graphs, but when I look at my hosts in nagios I see this
Port 1 Bandwidth Usage UNKNOWN 10-06-2014 19:22:25 0d 5h 37m 30s 3/3 check_mrtgtraf: Unable to open MRTG log file.
I know the issue is not being able to read my log file. My service definitions in switch.cfg is like this
# Monitor bandwidth via MRTG logs
define service{
use generic-service ; Inherit values from a template
hostgroup_name switches
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/10.42.0.7_1.log!AVG!1000000,1000000!5000000,5000000!10
}
There isnt a log file at /var/lib/mrtg/10.42.0.7_1.log so I know i am missing something. I just dont know enough about Linux / ubuntu to figure out where to look
thanks in advance everyone.
Nagios 4.0.6
First let me say I have searched and researched this issue a lot and followed a lot of tutorials on fixes including one in this forum from a few days ago but nothing seems to fix my issue, there are so many links on the issue it should be an easy fix but I haven't been able to fix it yet. I think it is because I am missing a piece of the puzzle.
I have Nagios 4.0.6 up and running with nagiosgraph. My issue is with MRTG, I have it configured and working if I go to http://myserver/nagios/stats I am measuring data and I see graphs, but when I look at my hosts in nagios I see this
Port 1 Bandwidth Usage UNKNOWN 10-06-2014 19:22:25 0d 5h 37m 30s 3/3 check_mrtgtraf: Unable to open MRTG log file.
I know the issue is not being able to read my log file. My service definitions in switch.cfg is like this
# Monitor bandwidth via MRTG logs
define service{
use generic-service ; Inherit values from a template
hostgroup_name switches
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/10.42.0.7_1.log!AVG!1000000,1000000!5000000,5000000!10
}
There isnt a log file at /var/lib/mrtg/10.42.0.7_1.log so I know i am missing something. I just dont know enough about Linux / ubuntu to figure out where to look
thanks in advance everyone.