[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - No .ok file found
Cheshire Cat Computing
http://www.steveshipway.org/forum/

No .ok file found
http://www.steveshipway.org/forum/viewtopic.php?f=11&t=4330
Page 1 of 1

Author:  jp201177 [ Fri May 06, 2011 7:43 pm ]
Post subject:  No .ok file found

I have been trying to google and read docs in routers2/doc to figure out why I keep receiving "No valid target is selected" when I http to the website/cgi-bin/routers.cgi but in vain. I also have been to the configuration verification page and tried to find a clue from there. However, I still cannot figure it out why MRTG files check returned "No .ok file found."

According to routers.conf check, the MRTG config file has been detected as the following:

MRTG files
Path: /etc/mrtg/cfg
Files: mymrtg.cfg 1 files detected OK.

I do have .ok file in the /etc/mrtg/cfg folder because I had got everything working in MRTG with cfgmaker and indexmaker before I installed routers2 and its relevant software packages. my active configuration settings are the following:

routers.cgi-cachepath = "/etc/mrtg/cache"
routers.cgi-cfgfiles = "mymrtg.cfg"
routers.cgi-confpath = "/etc/mrtg/cfg"
routers.cgi-dayend = "18"
routers.cgi-daystart = "8"
routers.cgi-dbpath = "/var/rrdtool"
routers.cgi-defaultinterface = "__interface"
routers.cgi-defaultrouter = "mymrtg.conf"
routers.cgi-defaulttarget = "interface"
routers.cgi-extendedtime = "yes"
routers.cgi-graphpath = "/var/www/html/graphs"
routers.cgi-graphstyle = "l2"
routers.cgi-graphurl = "/graphs"
routers.cgi-iconurl = "/rrdicons/"
routers.cgi-legendunits = "yes"
routers.cgi-percentile = "yes"
routers.cgi-showfindbox = "yes"
routers.cgi-slope = "yes"
routers.cgi-smalliconurl = "/rrdicons/"
routers.cgi-sorder = "t n n2 l l2 x2 x3"
routers.cgi-stylesheet = "/rrdicons/routers2.css"
routers.cgi-trendurl = "/cgi-bin/trend.cgi"
routers.cgi-twinmenu = "yes"
routers.cgi-unscaled = "no"
routers.cgi-usebigk = "no"
routers.cgi-withdate = "yes"
targetnames-ifdefault = "ai"
targetnames-routerdefault = "filename"
web-backurl = "/"
web-comma = ","
web-csvmimefilename = "export.csv"
web-csvmimetype = "application/vnd.ms-excel"
web-dateonlyformat = "%D"
web-langdir = "/etc/mrtg/routers2/lang"
web-libadd = "/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi"
web-longdateformat = "%c"
web-png = "1"
web-shortdateformat = "%H:%M %D"

I am running routers2 on a CentOS5.5 box with Apache. Here is a snippet of of my mrtg config:
Target[localhost_2]: 2:mysnmpstring@localhost:
SetEnv[localhost_2]: MRTG_INT_IP="10.10.1.100" MRTG_INT_DESCR="eth0"
MaxBytes[localhost_2]: 12500000
Title[localhost_2]: Traffic Analysis for Interface 2 (eth0) on myserver
PageTop[localhost_2]: <h1>Traffic Analysis for eth0 10.10.1.100 on myserver</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>This is myserver</td>
</tr>
<tr>
<td>Maintainer:</td>
</tr>
<tr>
<td>Description:</td>
<td>eth0 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>eth0</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>12.5 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>eth0 10.10.1.100 on myserver</td>
</tr>
</table>
</div>

I changed localhost to the actual IP address but it is still not working. Please help!

Author:  stevesh [ Sat May 07, 2011 10:58 am ]
Post subject:  Re: No .ok file found

The 'no valid target' message comes when either you have no device selected, or the device you have selected has no valid Target definitions in the cfg file.

The 'no ok file found' message comes when there is no (readable) .ok file in the directory with the .cfg file; this is not necessarily a problem, particularly when a device consists of only userdefined Targets or the directory is not writeable to the MRTG process, but it can indicate that MRTG has not yet run successfully on the cfg file in question.

Author:  jp201177 [ Sat May 07, 2011 7:27 pm ]
Post subject:  Re: No .ok file found

Hi Steve,

Thank you very much for the explaination! I think that I have a trouble to correctly configure routers2.conf. Would you please help?

I have successfully daemonized MRTG and configured files/directories permissions for the mrtg user. I tried to use the "grouping" feature by following the HOWTO. However, I just couldn't get it working. The errors still persist. Here is my settings in the routers2.conf file:

[routers.cgi]
confpath = /etc/mrtg/cfg
cfgfiles = servers/*.cfg
# /etc/mrtg/cfg/servers/myserver.cfg is my server's MRTG conf file
# I'll create /etc/mrtg/cfg/network/myrouters.cfg after I get my server working with rrdtool
# So, I will eventually have two groups: servers and network
group = yes

[targetnames]
/etc/mrtg/cfg/servers/myserver.cfg = Myserver

routerdefault = filename

A snippet of my mrtg conf file is the following:

Target[localhost_10.10.1.100]: /10.10.1.100:mysnmpstring@localhost:
SetEnv[localhost_10.10.1.100]: MRTG_INT_IP="10.10.1.100" MRTG_INT_DESCR="eth0"
MaxBytes[localhost_10.10.1.100]: 12500000
Title[localhost_10.10.1.100]: Traffic Analysis for 10.10.1.100 -- myserver
PageTop[localhost_10.10.1.100]: <h1>Traffic Analysis for 10.10.1.100 -- myserver</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>myserver</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>root@mydomain</td>
</tr>
<tr>
<td>Description:</td>
<td>eth0 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>eth0</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>100.0 Mbits/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>10.10.1.100 (myserver)</td>
</tr>
</table>
</div>

The rrdtool version that I have is rrdtool-1.4.4-1.el5.rf and mrtg is mrtg-2.14.5-2. The version of the routers.cgi is v2.21.

Am I missing something in my routers2.conf or anywhere else? Would you please enlighten me how may I fix the configuration? Where can I find a working example of the routers2.conf file that fits my needs? I read the doc at this URL (http://www.steveshipway.org/software/rr ... UTERS_CONF) but still unable to figure out what to do to fix the two errors.

Your time and assistance will be highly appreciated!

Author:  stevesh [ Sun May 08, 2011 10:21 am ]
Post subject:  Re: No .ok file found

Your outputs do not correspond:

[routers.cgi]
confpath = /etc/mrtg/cfg
cfgfiles = servers/*.cfg

however, your check page reads:

routers.cgi-confpath = "/etc/mrtg/cfg"
routers.cgi-cfgfiles = "mymrtg.cfg"

Do you have multiple cfgfiles directives in the routers2.conf? It seems that it is being given the wrong cfg files list.

Author:  jp201177 [ Wed May 11, 2011 11:14 am ]
Post subject:  Re: No .ok file found

Thank you for the hint! I have found where the problem is. Everything now works great. This tool is indeed a fabulous tool!

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/