HMIB Total App Running Graph / Query : Pb with some names

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Tryb3
Posts: 8
Joined: Fri Aug 23, 2013 5:26 am
Location: Paris, France

HMIB Total App Running Graph / Query : Pb with some names

Post by Tryb3 »

Hi I got a pb while trying to graph Apps runnings with a space in name (ex: "FileZilla server.exe").

everything look OK in HMIB tab :

Code: Select all

FileZilla server.exe	2	2	2	36 Hrs	72 Hrs	4.98 MB	6.79 MB
When i build a graph for it (Total Apps Running), here's the command in the poller :

Code: Select all

Script Server: C:\Apache2\htdocs\cacti\scripts\ss_hmib_sum_apps.php ss_hmib_sum_apps get running FileZilla server.exe
RRD: C:\Apache2\htdocs\cacti\rra\16\547.rrd
No errors, but always return 0 running (siçnce 2 are reported in HMIB processes tab)
If i run from command line :

Code: Select all

php  C:\Apache2\htdocs\cacti\scripts\ss_hmib_sum_apps.php get running FileZilla server.exe
it returns :

Code: Select all

0
I figured that if I try protecting the App name with ", it worked :

Code: Select all

php  C:\Apache2\htdocs\cacti\scripts\ss_hmib_sum_apps.php get running "FileZilla server.exe"
it returns :

Code: Select all

2
So it's a problem with space, who must be treated as an arg separator by php for the function get.
I tried different thinks to protect the App Name var ; but didn't succeded.

I'ld gradly appreciate any help to repair this problem, if someone can telle me what to change :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests