If you have really many hosts and stack graph is not generated with no reason,
too long command could be one reason.
When we have too many hosts, given command string to (my_)passthru
becomes so long(in my case, >2MBs) that 'exec' function cannot handle it properly.
Saving command in the file seems a little bit inefficient but works correctly even if
you have many(>1000) hosts, especially for generating stacked graph.
If you have really many hosts and stack graph is not generated with no reason, too long command could be one reason.
When we have too many hosts, given command string to (my_)passthru becomes so long(in my case, >2MBs) that 'exec' function cannot handle it properly. Saving command in the file seems a little bit inefficient but works correctly even if you have many(>1000) hosts, especially for generating stacked graph.