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.
Two configuration options are added to the Cacti Settings. Some code modifcations to handle the new config options, and a few changes to make the "SNMP Interfaces" snmpwalk work correctly.
This patch should also work with the Cacti upgrade procedure, but I warn that I have not tested that portion.
Warning: if you're having problems with PHP SNMP, then this patch probably won't help you. It's mainly to fix syntax changes in calling the net-snmp 5 snmpget and snmpwalk.
I applied the patch, but it doesnt show any new functions/options in the 'cacti settings' option.. i refreshed several times but nothing new appears..
i have 0.6.8a, so i dont see the problem?
The new settings that this patch requires require SQL to be executed. To be more specific, if you run the following SQL on your cacti database you should be set:
First off, it didn't apply to my 0.8.6a install cleanly:
[root@krusty cacti-0.6.8a]# patch -p2 < ../cacti-0.6.8a-net-snmp-5.patch
missing header for unified diff at line 3 of patch
patching file cacti.sql
missing header for unified diff at line 15 of patch
patching file settings.php
missing header for unified diff at line 25 of patch
patching file include/snmp_functions.php
missing header for unified diff at line 84 of patch
patching file include/version_functions.php
Hunk #1 FAILED at 222.
1 out of 1 hunk FAILED -- saving rejects to file include/version_functions.php.rej
But, I patched it manually. Didn't see anything in the UI, so ran the SQL that it added to cacti.sql. Still, nothing appears in the screen linked off "Get SNMP Data | [Edit data[" part of Data Sources.
There appears to be a problem with applying the patch using Linux. Works fine
under FreeBSD, where I developed the patch. I'll see if I can find the portability
problem.
GNU patch wants "-p0" to work correctly. GNU patch was also not happy with include/version_functions.php not having an end-of-line character. I have updated my patch to add one, and tested that the patch applies cleanly under FreeBSD and Linux (Slackware).
You'll automatically get the new configuration options if you follow the normal Cacti installation or upgrade procedure. If you're adding this patch to an existing Cacti installation, you'll need to manually insert the three new rows into your SQL table, as raX describes above.
Tealk: the community string '-c public' change is handled automatically. You may not need to specify anything in the 'version string' box, or you may need '-v 2c' to force snmp version 2, depending on the devices you're polling.
patching the v. 0.6.8a is working but gathering data from net-SNMP v5.x is still not working.
When i click on Configuration / Cron Printout / Show output , i get no result on the value of the the configured Data Sources:
INTERNAL: [10.0.0.254/public] Interface: []
i'm using Red Hat 8.0 and php 4.2.2 ( the original one from the RedHat instalation).
Yup, you speak the truth. php-snmp no worky in RH 8. Is there way to submit a bug or something to them? I found this out while trying to write some custom php pages (not related to cacti).
Furthermore, stuff that calls net-snmp stuff without the -c wont work either. Sigh.
So... what does it take to get these things fixed?
1. RH needs to know their rpm blows.
2. It would be nice if it was an (included) option for cacti that you choose if you're using NET-SNMP or UCD-SNMP. The problem isn't going away and using the old XXX-SNMP version isn't a great solution either.