reading from a log file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Guest

reading from a log file

Post by Guest »

I have two usage figures that are written to myfile.log every two hours by a script. I've setup an input source (usage) with the input string 'cat /var/log/myfile.log' and the output string as <rated> <unrated>.

A regular cat /var/log/myfile.log in linux displays the following:
900 1100

Now, it doesn't seem that cacti/rrdtool likes the output of cat. I've created the graph for theabove data source. The legend for the graph displays 900 MB nan 937¥ MB nan. The colours I selected do not appear and yes, that strange character appears :)

Does anyone have any idea of what going on here?
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Seems to me that your cat generates two output values. Your output string definition however indicates that there is only one value <rated>. Try to filter out your cat output to produce only one value or redefine the output string in Cacti - maybe it'll help you.

- bulek
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests