Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using one graph template, same data is being shown in different devices #3458

Closed
houtaro opened this issue Apr 13, 2020 · 5 comments
Closed
Labels
no change required The feature already exists not a bug Not a bug as determined by dev

Comments

@houtaro
Copy link

houtaro commented Apr 13, 2020

Bug description:

Server 1 disk usage: 20%
Server 2 disk usage: 14%

Created a custom bash script to get disk usage of a Linux server. Created a graph template using the bash script, then created 2 devices (Server 1 and Server 2) with the same graph template. Upon checking the disk usage of the 2 devices, they have the same value: 20%.

Steps to reproduce:

  1. Create a Data Input Method using the bash script to get disk usage of a Linux server.
  2. Create a Data Source using the Data Input Method created in Step 1.
  3. Create a Graph Template using the Data Source created in Step 2.
  4. Create 2 devices.
  5. Assign the Graph Template created on Step 3 to the 2 devices created in Step 4. (This will create a graph for each device. e.g. "Server 1 - Disk usage", "Server 2 - Disk usage")
  6. Create 2 Trees.
  7. Add the 2 graphs (generated on Step 5) to the appropriate trees.
  8. Check the value of the graphs.

Expected behavior

I'm not quite sure how Cacti uses the custom script I created, but I think Cacti will execute the script on Server 1 and graph the result, then execute the script on Server 2, then graph the result. Thus, the 2 graphs should have different results.

Screenshots

Server 1 Disk usage graph:

cacti1

Server 2 Disk usage graph:

cacti2

System Info

Cacti Version: 1.2.10 (Docker Image)
OS: Ubuntu 18.04
Browser: Google Chrome

@houtaro houtaro added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 13, 2020
@bmfmancini
Copy link
Member

bmfmancini commented Apr 13, 2020 via email

@houtaro
Copy link
Author

houtaro commented Apr 14, 2020

I only have 1 poller, but I have 2 devices, and the graphs for those 2 devices are displaying the same value

@cigamit
Copy link
Member

cigamit commented Apr 14, 2020

A "bash script" will only ever be executed on the Cacti server. It isn't going to copy it over to any server and execute it. That is not how Cacti works.

@cigamit cigamit added no change required The feature already exists not a bug Not a bug as determined by dev and removed bug Undesired behaviour unverified Some days we don't have a clue labels Apr 14, 2020
@cigamit
Copy link
Member

cigamit commented Apr 14, 2020

You should instead be using SNMP data to get Disk Space graphs on Linux/

@cigamit cigamit closed this as completed Apr 14, 2020
@houtaro
Copy link
Author

houtaro commented Apr 14, 2020

Oh, right. I thought the bash script will be executed on multiple servers. Thanks for the clarification!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no change required The feature already exists not a bug Not a bug as determined by dev
Projects
None yet
Development

No branches or pull requests

3 participants