Time for action – creating a data input method – Step 2
Click on the Add link at the Output Fields table. This will open a new form.
Enter InvalidUsers as the Field [Output].
Enter InvalidUsers as the Friendly Name.
Click on the Create button.
Click on the Add link at the Output Fields table again.
Enter ValidLogons as the Field [Output].
Enter ValidLogons as the Friendly Name.
Click on the Create button.
What just happened?
You just added the two output fields from the script to this data input method. Cacti is now able to use this information and fill the RRD files with the data retrieved from the script.
The data template
As you've already learned in Chapter 3, Creating and Using Templates, you will need to create a data template for this data input method to be used within a graph. You can now either import the template that comes with this book, or better still, try to create the data template yourself. The following picture shows the final data template: