Need help graphing Cacti script/command.

Posted on 2011-10-24
Last Modified: 2013-12-26
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/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
Question by:Italia998

    Accepted Solution

    Ok, guessing there are no Cacti experts was too detailed of a question.  Thanks anway...

    Author Closing Comment

    closing, not answered.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now