Bash-Script for USV Monitoring

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
vanhaakonnen
Posts: 2
Joined: Mon Dec 05, 2011 5:14 am

Bash-Script for USV Monitoring

Post by vanhaakonnen »

Hi,

I have a little bash-Script generates a output like "46.1" for the load of the usv.

Now I want to graph this values with cacti.

As the Data Input Method I have the script with "/bin/bash <path_cacti>/scripts/usv_load.sh". This seems to work fine.

But when cacti generates the values and graphes it makes something I can´t understand. The values differ from the output of the script.
For example: If I run the script directly I get 46.1. Cacti shows me 49,41 as value.

Something went wrong here - but I can´t find the mistake. Can you help me?

Thanks

VanHaakonnen
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Bash-Script for USV Monitoring

Post by noname »

>> For example: If I run the script directly I get 46.1. Cacti shows me 49,41 as value.

Probably because of this mechanism:
- http://docs.cacti.net/manual:087:8_rrdtool.02a_non_integers
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests