Hi.

 

I've been trying to get OpsView running, but mrtg is failing. MRTG
works, itself, and produces graphs if I run it from the command line,
like this:

 

mrtg /usr/local/nagios/share/mrtg/mrtg.cfg

 

I put that in a loop and ran it for a while and got traffic graphs from
it.

 

Mrtg.conf was created with cfgmaker:

 

/usr/local/bin/cfgmaker --output=/usr/local/nagios/etc/mrtg.cfg --global
"Forks: 8" --global "HtmlDir: /usr/local/nagios/share/mrtg" --global
"ImageDir: /usr/local/nagios/share/mrtg" --global "Options[_]:
growright,bits" --global "LogDir: /usr/local/nagios/var/mrtg" --global
"LogFormat: rrdtool" --global "IconDir: /images/mrtg"
pub...@localhost:::::2

 

mrtg.conf:

 

EnableIPv6: no

Forks: 8

HtmlDir: /usr/local/nagios/share/mrtg

ImageDir: /usr/local/nagios/share/mrtg

#ImageDir: /opt/coolstack/apache2/htdocs/test

Options[_]: growright,bits

LogDir: /usr/local/nagios/var/mrtg

LogFormat: rrdtool

IconDir: /images/mrtg

 

I've tried setting WorkDir and tried other setting of ImageDir, but it
didn't help. If I set WorkDir, I get an error 500, but if I don't, I get
"Error: No MRTG data available. I get that if I run it from the command
line as ./mrtg-rrd.cgi or if I run it from my OpsView install.

 

IF I try to set WorkDir, mrtg_genstats.log shows:

 

2009-11-24 09:10:01 -- ERROR: Line 9 ( WorkDir:
/usr/local/nagios/share/test) in

 CFG file (/usr/local/nagios/etc/mrtg.cfg)  does not make sense

 

And if I don't, I get no erros, just:

2009-11-24 10:10:01 -- Started mrtg with config
'/usr/local/nagios/etc/mrtg.cfg'

 

Out of desperation, I tried setting the whole path to the cfg, the image
dir and the work dir to chmod 777, but it still happened, so I'm sure
it's not a permissions problem.

 

This is on Solaris 10, using OpsView 3.3.2 Community Edition.

 

I don't know what to do next to try to fix this. Does anyone have any
ideas?

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to