Having an issue generating the cfg file for MRTG. I believe it's because I simply don't understand the email@example.com command, among other things. This is for the purpose of monitoring routers through MRTG configuration files accessed by Nagios.
The routers to be monitored are connected through point 2 point VPN tunnels, as 192.168.1.1, 192.168.2.1, 192.168.3.1, etc. 14 different locations need to be added to the configuration file for monitoring. The Ubuntu server running Nagios and MRTG has VPN tunnels active for all locations. Here's what I currently have:
./cfgmaker --global 'WorkDir: /home/httpd/mrtg' --global 'Options[_]: bits,growright' --ifref=ip --output /home/mrtg/cfg/MCP1_Sonicwall.cfg firstname.lastname@example.org
In this example, I'm creating a cfg file for just the first router (location name is MCP1), but I understand that I can put every location in one file for Nagios to read from?
The errors I'm getting with the above example are:
WARNING: Skipping email@example.com: as no info could be retrieved
ERROR: creating /home/mrtg/cfg/MCP1_Sonicwall.cfg: No such file or directory
If anybody could help with the exact syntax that could get me up and running with this, that would be really helpfull. Or even explaining to me what the things I'm doing wrong mean and what -should- be there. I'd actually prefer an explanation so that I can understand further.