Not sure if this is the right place(mod please redirect me to right place if not)
Scenario is that im trying to get cacti to graph from a text file(Which as i have read and hopefully understood should be a easy task). Yes i have read multiple howtos and docs.cacti.net.
I have a perl script logging some output from a Cisco to a textfile, i then have another perl script printing the last line in the logfile. Reason for this is because the output from the Cisco is containing more info then i need to graph.(After some awk magic)
When i run the script from the unix box, the output is correct.
Code: Select all
[abc@def ~]$ ./abc.pl
20528[abc@def ~]$
Code: Select all
08/31/2015 03:59:31 AM - CMDPHP: Poller[0] Host[0] DS[19] CMD: /home/abc/123.pl, output: U
08/31/2015 03:59:31 AM - CMDPHP: Poller[0] Host[0] DS[19] WARNING: Result from CMD not valid. Partial Result: U
I hope this makes sense and that you can guide me the right way to getting this done.
For testing i have a set up a perl script printing random numbers and this is graphing fine, but this script isnt getting the input from a text file..