Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm working on creating a script and corresponding Script Query XML file to take data in from CSV files.
Data is getting logged to CSV files on multiple servers and is pushed to the cacti server. The script I have then goes through all of the CSV files and outputs the data like so:
I would like to be able to log each IP and its up time to individual graphs based on this. (Y axis of the graph is up/down, X axis of the graph is time)
I'm new to cacti and am not sure how to write the Script Query XML file, and Graph Template to make this work.
If "test.dat" contains valid data within the 5 minutes (=$polling_interval) before now, the above script returns the status of target IP.
(Otherwise it returns 0.)