Hi Roger and VSarkiss,
here is a fragment of the raw snmp log file. The graph script and some other programs i use dont like '"' and ','.
"23/10/2003 00:04:20", 302, 1.86, 1.91, 2411.04, 1189.08, 1221.97, 32.0
"23/10/2003 00:09:18", 298, 2.26, 1.53, 2427.33, 1449.25, 978.08, 32.0
"23/10/2003 00:14:30", 312, 0.74, 0.46, 767.43, 470.52, 296.91, 32.0
"23/10/2003 00:19:16", 286, 1.15, 1.53, 1718.47, 738.94, 979.53, 34.0
"23/10/2003 00:24:31", 315, 1.61, 0.72, 1491.54, 1031.62, 459.92, 32.0
"23/10/2003 00:29:28", 297, 1.55, 1.08, 1681.56, 989.15, 692.4, 32.0
"23/10/2003 00:34:25", 297, 1.11, 0.52, 1047.92, 712.31, 335.6, 32.0
Roger I tried to run your modified script and it errored out as
Global symbol "$str" requires explicit package name at ./script.pl line 45
Global symbol "$str" requires explicit package name at ./script.pl line 46
Global symbol "$str" requires explicit package name at ./script.pl line 47
Vsarkiss your script worked brilliantly only problem is with the format of removing the '"' and ',' before sending it to the ./graph script
Thank you guys I greatly appreciate your time and await your replies.
Regards,
Seun
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.