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.
Was wondering if someone could help. I have made a groupwise statistics perl script which I plan on expanding to cover everything useful, so far it only checks GWIA stats. However all my graphs dont seem to show any data and just report NAN, in regards to error outputs im getting the following two lines in the log file:
Run the script manually... What does the output look like?
Another question. Since Cacti uses SNMP and is built to use SNMP why not create a template that will just grab those values from the OIDs. This shouldn't be hard to do.
Was going to do it as a script as the amount of information I ultimately plan to collect was just easier to type and add as a script. But will shortly be considering adding the OIDs if I cant get it working!
Ok, and when you run the poller by hand? do you also get the same error? You might try making the script do something like "perl /script.../gwia_stats.pl" instead of just the script itself. Look at one of the other scripts to see if you get the same output (of how the command is executing.)
Ran the poller by hand - it was a rights issue, all ok now - for some reason the graph value for msgs out is half of what it should be but i expect ive just done the wrong thing for that somewhere. All ok now
I have finished the script - just have to add them all too templates.
Its called gwia_stats.pl but actually covers POA and MTA also, just selects what I feel are the most relevant and useful statistics to monitor. Uptime would be helpful but im still working on that.
Have attached here if anyone wants to borrow the script, once I have sorted templates I will stick it under addons fully working, hope this is ok.
Apologies! I totally forgot about this post, yeah I now have ours all working, but have had to specify the IP in the script itself as I couldnt get it to parse the information over properly. Shall get this all packaged up and templates uploaded asap. Cheers
Ok here is the finished thing - does actually work without specifying the IP address properly now. Should be able to just copy the script file to the scripts directory and import all teh appropriate templates - includes a modified netware template for a GroupWise server as a host template - but install seperately so will not ruin any others.
Hope everyone finds it useful. Attached is a screenshot of a few of the graphs I have created with it as well.
Trying to import the XML files, but my cacit installation do not like the files...
Have imported before so that part of cacti is working.
Using Cacti 0.8.6d
have also put the gwia_stats.pl to the scripts directory.
Cacti does not return any errors or successes. It simply refreshes the page and clears the Import Template from File field. The same occurs if you import the XML directly.
I have tried to import all the of templates in the .rar file and they all produce the same result.
I've successfully imported templates for other addons.