Captain Colonoscopy
2[H]4U
- Joined
- Feb 19, 2004
- Messages
- 3,861
Okay, so I just got our Nagios/MRTG server running in an ESXi VM and I'm running into a little snag with the MRTG cron configuration.
Per http://www.debianhelp.co.uk/mrtg.htm
I try to paste the following command into the console and I get an error.
Command:
Error:
I am no linux guru master. I know enough to follow directions and can usually figure most stuff out given enough time and patience. I have been googling my ass off and trying different crap for the last few hours and I am stumped. Everything seems to be working fine except the http://nagios/mrtg page only shows the local host graph.
If I do a
Anybody got any ideas?
Per http://www.debianhelp.co.uk/mrtg.htm
I try to paste the following command into the console and I get an error.
Command:
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; fi
Error:
bash: syntax error near unexpected token `then'
I am no linux guru master. I know enough to follow directions and can usually figure most stuff out given enough time and patience. I have been googling my ass off and trying different crap for the last few hours and I am stumped. Everything seems to be working fine except the http://nagios/mrtg page only shows the local host graph.
If I do a
then all the other configured hosts' graphs show up. If I wait a few minutes and refresh the page then it goes back to only the local host. So I am thinking it is something to do with the CRON task that isn't working right.root@NAGIOS:~# indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
Anybody got any ideas?