[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1484
  • Last Modified:

Need help graphing Cacti script/command.

Hi Experts,

I have been trying to write basic bash scripts to aid in teaching myself how to create custom graphs in Cacti.  Currently, the majority of my test scripts graph with only -nan with the values.  How do I get from shell script to correctly graphing the data?

Shell script
#!/bin/bash

/bin/netstat -a --numeric-ports | grep -c :$1
/bin/netstat -a --numeric-ports | grep -c :$2
/bin/netstat -a --numeric-ports | grep -c :$3

Open in new window


I have attached screenshots of the start to finish
cacti-data-input-method.png
cacti-data-template.png
cacti-graph-management.png
cacti-graph-overview.png
cacti-graph-template01.png
cacti-graph-template02.png
0
Italia998
Asked:
Italia998
  • 2
1 Solution
 
Italia998Author Commented:
Ok, guessing there are no Cacti experts was too detailed of a question.  Thanks anway...
0
 
Italia998Author Commented:
closing, not answered.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now