Operating System: Windows 2008 R2 64bit
Web Server: Apache 2.2.19 (Win32)
Cacti: 0.8.7g
Spine: not installed
MySQL: 5.5
PHP: 5.2.17
RRDTool 1.2.x (Win32)
Net-SNMP: 5.5
Plugin Architecture: 2.8
The Script Server does not seem to poll either the
/scripts/ss_fping.php ss_fping
/scripts/ss_tping.php ss_tping
during the polling cycles even though I imported both the Advanced Ping 2.2 template and the True Ping template for graphing latency information on my WAN routers.
In the cacti logs, I see a output:
CMDPHP: Poller[0] Host[378] DS[2878] SERVER: E:/htdocs/Cacti/scripts/ss_fping.php ss_fping 10.10.10.1 20 ICMP , output: U
I do not see any errors when I turn on graph debug mode.
e:/htdocs/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="gwn1 - Advanced Ping" \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit="10" \
--lower-limit="0" \
--units-exponent="1" \
--vertical-label="milliseconds" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="E\:/htdocs/Cacti/rra/gwn1_max_2878.rrd":min:AVERAGE \
DEF:b="E\:/htdocs/Cacti/rra/gwn1_max_2878.rrd":avg:AVERAGE \
DEF:c="E\:/htdocs/Cacti/rra/gwn1_max_2878.rrd":max:AVERAGE \
DEF:d="E\:/htdocs/Cacti/rra/gwn1_max_2878.rrd":loss:AVERAGE \
DEF:e="E\:/htdocs/Cacti/rra/gwn1_max_2878.rrd":dev:AVERAGE \
CDEF:cdefg=d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefh=d,3,GT,d,5,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefi=d,5,GT,d,10,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefj=d,10,GT,d,15,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefba=d,15,GT,d,50,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbb=d,50,GT,d,95,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbc=d,95,GT,d,100,GT,UNKN,INF,IF,UNKN,IF \
CDEF:cdefbe=e,2,/ \
CDEF:cdefbg=c,b,-,e,-,3,/ \
CDEF:cdefca=b,a,-,0.2,* \
CDEF:cdefch=d,0,GT,d,2,GT,UNKN,a,IF,UNKN,IF \
CDEF:cdefci=d,3,GT,d,5,GT,UNKN,a,IF,UNKN,IF \
CDEF:cdefcj=d,5,GT,d,10,GT,UNKN,a,IF,UNKN,IF \
CDEF:cdefda=d,10,GT,d,15,GT,UNKN,a,IF,UNKN,IF \
CDEF:cdefdb=d,15,GT,d,50,GT,a,INF,IF,UNKN,IF \
CDEF:cdefdc=d,50,GT,d,95,GT,UNKN,a,IF,UNKN,IF \
CDEF:cdefdd=d,95,GT,d,100,GT,UNKN,a,IF,UNKN,IF \
LINE1"" \
LINE1"" \
LINE1:c:"" \
LINE1:d:"" \
LINE1:e:"" \
COMMENT:" Pkt Loss\:" \
AREA:cdefg#AFECEDFF:"1-2%" \
AREA:cdefh#55D6D3FF:"3-5%" \
AREA:cdefi#7CB3F1FF:"6-10%" \
AREA:cdefj#4668E4FF:"11-15%" \
AREA:cdefba#A150AAFF:"16-50%" \
AREA:cdefbb#FF00FFFF:"51-95%" \
AREA:cdefbc#F51D30FF:"96-100%\n" \
AREA:b#FFFFFFFF:"" \
AREA:cdefbe#333333FF:"":STACK \
AREA:cdefbe#555555FF:"":STACK \
AREA:cdefbg#888888FF:"":STACK \
AREA:cdefbg#AAAAAAFF:"":STACK \
AREA:cdefbg#CCCCCCFF:"":STACK \
AREA:a#FFFFFFFF:"" \
AREA:cdefca#CCCCCCFF:"":STACK \
AREA:cdefca#AAAAAAFF:"":STACK \
AREA:cdefca#888888FF:"":STACK \
AREA:cdefca#555555FF:"":STACK \
AREA:cdefca#333333FF:"":STACK \
GPRINT:d:AVERAGE:" Avg Loss\:%6.2lf%%" \
GPRINT:d:MAX:"Max Loss\:%6.2lf%%\n" \
AREA:cdefch#AFECEDFF:"" \
AREA:cdefci#55D6D3FF:"" \
AREA:cdefcj#7CB3F1FF:"" \
AREA:cdefda#4668E4FF:"" \
AREA:cdefdb#A150AAFF:"" \
AREA:cdefdc#FF00FFFF:"" \
AREA:cdefdd#F51D30FF:"" \
COMMENT:" Latency\:" \
GPRINTAVERAGE:"Min\:%8.2lf ms" \
GPRINTAVERAGE:"Avg\:%8.2lf ms" \
GPRINT:c:MAX:"Max\:%8.2lf ms" \
GPRINT:e:AVERAGE:"Dev\:%8.2lf ms\n" \
COMMENT:"Avg Latency\:" \
GPRINTAVERAGE:"Min\:%8.2lf ms" \
GPRINTAVERAGE:"Avg\:%8.2lf ms" \
GPRINT:c:MAX:"Max\:%8.2lf ms" \
GPRINT:e:AVERAGE:"Dev\:%8.2lf ms\n" \
LINE1:b#00BD27FF:""
RRDTool Says:
OK
But I do not see the RRD file being updated since it's original creation.
When I run wireshark, I do not see any attemped ICMPs attempts, just the basic SNMP Interface queries.
If I run the Script Server in the command line, it works fine and I do see the ICMPs attempts in Wireshark.
E:\htdocs\Cacti\scripts>php ..\script_server.php
PHP Script Server has Started - Parent is cmd
ss_fping.php ss_fping 10.10.10.1 20 ICMP
min:178.0000 avg:192.5000 max:199.0000 dev:6.8007 loss:50.0000
I have applied all the patches to Cacti 0.8.7g.
I have seen other folks bring up a similar issue, but have not seen any solution.
Is there something I am missing or misconfigured?
Thanks.
Problems with Advance Ping 2.2 in Win32 (Script Server)
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Tue Jul 12, 2011 5:11 pm
Re: Problems with Advance Ping 2.2 in Win32 (Script Server)
Possibly a permission issue, since different user accounts are used when its invoked from the poller vs the commandline. Have you double-checked your apache user and scheduled task accounts have read/execute on the ping script? If you really want to dig, sysinternals process monitor should reveal the underlying problem.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 6
- Joined: Tue Jul 12, 2011 5:11 pm
Re: Problems with Advance Ping 2.2 in Win32 (Script Server)
Thanks I will check that. In Task Manager, I have the php.exe poller.php running under my account, which is the same account I was using in the CLI. I just clicked on Security options to "Run with highest privileges". I will see if that makes it work. The standard snmp polling has been working, it just seems to be the PHP Script Server.
Thanks.
Thanks.
-
- Posts: 6
- Joined: Tue Jul 12, 2011 5:11 pm
Re: Problems with Advance Ping 2.2 in Win32 (Script Server)
In Windows task manager, I verified that cmd.php is running under my user name which is a local admin on the box.
I also changed the security options to run under highest privileges, but it is still not polling the ICMP Script Server.
Is there something special I need to do in Windows Server to enable Script Server?
Thanks,
Sergio.
I also changed the security options to run under highest privileges, but it is still not polling the ICMP Script Server.
Is there something special I need to do in Windows Server to enable Script Server?
Thanks,
Sergio.
Who is online
Users browsing this forum: No registered users and 1 guest