 |
|
| Computers Forum Index » Computer - DCOM - Net Management » router log files disappearing/reappearing.... |
|
Page 1 of 1 |
|
| Author |
Message |
| ... |
Posted: Wed Dec 03, 2008 8:31 pm |
|
|
|
Guest
|
I have MRTG(mrtg-2.14.5-2) on a CentOS5.1 server, using the
check_mrtgtraf in nagios to monitor bandwidth utilization but my
routers log files keep disappearing then reappearing. This is causing
nagios to spit out errors when the logs are gone.
created the config file by:
cfgmaker --global 'WorkDir: /var/www/html/mrtg' --output /etc/mrtg/
mrtg.cfg community at (no spam) router
*community and router are correct in the command, changed for
security.
created the index pages by:
indexmaker --output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg
the log files for the routers interfaces are in /var/www/html/mrtg
the router has 4 interface logs that it is monitoring.
sample log entries in /var/log/messages:
as you can see
Dec 3 09:10:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;OK;HARD;3;Traffic OK - Avg. In = 325.6 KB/s, Avg. Out = 30.4 KB/
s
Dec 3 09:20:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:44:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;OK;HARD;3;Traffic OK - Avg. In = 288.8 KB/s, Avg. Out = 26.5 KB/
s
at at 9:10 the log file was there, 9:20 the log file was not there and
at 9:44 the log file was there.. What's making the log files go away?
The mrtg webpage seems to still be updating but nagios complains.
Dec 3 09:20:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:20:38 hostname nagios: SERVICE ALERT: hostname;em3 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:22:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:22:38 hostname nagios: SERVICE ALERT: hostname;em3 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:24:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;UNKNOWN;HARD;3;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:24:38 hostname nagios: SERVICE ALERT: hostname;em3 Bandwidth
Usage;UNKNOWN;HARD;3;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:31:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:33:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:33:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:35:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:35:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;OK;SOFT;3;Traffic OK - Avg. In = 10.4 KB/s, Avg. Out = 4.7 KB/s
Dec 3 09:37:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;OK;SOFT;3;Traffic OK - Avg. In = 33.8 KB/s, Avg. Out = 241.9 KB/
s
Dec 3 09:40:48 hostname nagios: Auto-save of retention data completed
successfully.
Dec 3 09:44:38 hostname nagios: SERVICE ALERT: hostname;em2 Bandwidth
Usage;OK;HARD;3;Traffic OK - Avg. In = 288.8 KB/s, Avg. Out = 26.5 KB/
s
Dec 3 09:44:38 hostname nagios: SERVICE ALERT: hostname;em3 Bandwidth
Usage;OK;HARD;3;Traffic OK - Avg. In = 282.2 KB/s, Avg. Out = 317.3 KB/
s
Dec 3 09:57:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 09:59:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 10:01:08 hostname nagios: SERVICE ALERT: hostname;em1 Bandwidth
Usage;OK;SOFT;3;Traffic OK - Avg. In = 39.7 KB/s, Avg. Out = 346.0 KB/
s
Dec 3 10:05:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;UNKNOWN;SOFT;1;check_mrtgtraf: Unable to open MRTG log file
Dec 3 10:07:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;UNKNOWN;SOFT;2;check_mrtgtraf: Unable to open MRTG log file
Dec 3 10:09:28 hostname nagios: SERVICE ALERT: hostname;em0 Bandwidth
Usage;UNKNOWN;HARD;3;check_mrtgtraf: Unable to open MRTG log file
any ideas on why the log files are deleted then readded??
Thanks!
j |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Thu Nov 26, 2009 5:12 pm
|
|