Rodolphe Ortalo
Joined: 05 Aug 2003 Posts: 5
|
Posted: Tue Nov 04, 2003 10:50 am Post subject: More space for "script string" in Data Input Metho |
|
|
Hello,
I'd really like to have more space in the Data Input Methods to enter (no-so-)long "inline" shell scripts...
It's just that I really find it overkill to fire a full Perl interpreter to do a:
cat <log_path> | wc -l
(This is equivalent to webhits.pl it seems.)
For MySQL, one can also do, e.g.:
mysqladmin -u cacti extended-status -pcacti | grep Questions | head -1 | cut -c36-46
to grab the number of questions received.
Also, it would be nice to be able to start a "scratch run" of the just typed script in order to see its output (for debugging). I think this was available in past versions of Cacti. I would be glad to see this back. (One inline script at a time.)
I am not a shell-script fanatic, but sometimes they are pretty convenient (and everything is in the Cacti interface). |
|