Creating data input methods

We have already seen how to create a data input method for simple SNMP queries. Let's look into creating a script-based data input method for retrieving some information out of the secure log file. The secure log file contains information about failed and successful logins. Please note that the following example will only work on a Linux system.

The book comes with an exported version of the data input method as well as the data template. The file cacti_data_template_unix_-_secure_log_input.xml can be imported into Cacti and is provided as a reference for you. The file does not contain the graph template, which you will have to create yourself.

You should still try and follow this chapter so that you get familiar with the different steps involved in creating your own data input methods and data templates.