issue on using a script for a graph template to be used in different devices

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

Moderators: Developers, Moderators

Post Reply
bkarlo
Posts: 1
Joined: Tue Apr 07, 2020 1:52 am

issue on using a script for a graph template to be used in different devices

Post by bkarlo »

I created a bash script to get the disk usage of a linux ubuntu server. After that, I created a graph template (using the data source which contains the bash script to get the disk usage of a server). Then I created 2 different devices which points to different servers.

It automatically created 2 graphs based on the devices I created. Something like this:

Server 1 - Disk Usage
Server 2 - Disk Usage


After I placed the graphs on different trees, I noticed that they have the same disk usage. Both servers shows 20% disk usage. But in reality, only Server 1 should be 20% and Server 2 should be 14%. It's like the graph for Server 2 is using the output of the script intended for Server 1, and not getting the output of the script for Server 2. Can someone tell me a possible workaround or solution for this? I'm only new to cacti so it's a bit hard for me to understand how this works.

You can check my post on stackoverflow: https://stackoverflow.com/questions/610 ... nt-devices
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests