I've been trying to get the snmpagent plugin working, it would make a great replacement for a number of scripts I have running to gather stats on my various pollers. I know that's it's considered part of Cacti now, and I never tried to use it when it was a plugin.
It seems like it should be pretty easy to get going, put a pass_persist line in my /etc/snmp/snmpd.conf, make sure permissions on the <cacti>/snmpagent_*.php files are correct, restart the snmpd service. This is the line I put in the file:
pass_persist .1.3.6.1.4.1.23925 /data/cactiapp/cacti/snmpagent_persist.php
After restarting my snmpd service, I see this:
[root@npap2320 snmp]# ps -ef | grep snmp
root 20319 1 0 18:55 ? 00:00:01 /usr/sbin/snmpd -LS0-6d -f
root 20329 20319 0 18:56 ? 00:00:00 /usr/bin/php /data/cactiapp/cacti/snmpagent_persist.php
root 20336 1 0 18:56 ? 00:00:00 /bin/php -q ./snmpagent_mibcache.php
But when I try to poll it:
[root@npap2320 snmp]# snmpwalk -v2c -c****** localhost .1.3.6.1.4.1.23925
SNMPv2-SMI::enterprises.23925 = No Such Instance currently exists at this OID
Additionally, it keeps launching new processes as time goes by, so much so that I end up out of memory after a day. Finally, I get this in my cacti.log every 30 seconds:
2017-02-22 19:26:30 - CMDPHP PHP ERROR NOTICE Backtrace: (/snmpagent_mibcachechild.php: 47 CactiErrorHandler)(/lib/functions.php: 4242 cacti_debug_backtrace)
2017-02-22 19:26:30 - ERROR PHP NOTICE: Undefined variable: snmpagent in file: /data/cactiapp/cacti-1.0.2/snmpagent_mibcachechild.php on line: 47
Does anyone have this working against a V1.0.X install?
Thanks
SNMPAgent not working on V1.0.X
Moderators: Developers, Moderators
- browniebraun
- Developer
- Posts: 791
- Joined: Tue Jun 13, 2006 1:17 am
- Location: Cologne, Germany
Re: SNMPAgent not working on V1.0.X
Hi thubbard,
I've just read your note and committed a bug fix addressing that issue.
https://github.com/Cacti/cacti/commit/5 ... 02e2eff9ed
Regards
-Andi
I've just read your note and committed a bug fix addressing that issue.
https://github.com/Cacti/cacti/commit/5 ... 02e2eff9ed
Regards
-Andi
Hat das Blümchen einen Knick, war der Schmetterling zu dick!
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Re: SNMPAgent not working on V1.0.X
I upgraded to 1.1.2 recently, and it does appear that this works now, sort of.
It does return values when I run an snmpwalk against the CACTI-MIB root OID.
However, it doesn't populate any of the performance counters (poller time, RRDs processed, etc.) for pollers other than the master that hosts the database. I'm trying to dig into the code to figure out why.
It does return values when I run an snmpwalk against the CACTI-MIB root OID.
However, it doesn't populate any of the performance counters (poller time, RRDs processed, etc.) for pollers other than the master that hosts the database. I'm trying to dig into the code to figure out why.
Re: SNMPAgent not working on V1.0.X
Maybe that belongs in GitHub?
Before history, there was a paradise, now dust.
Re: SNMPAgent not working on V1.0.X
Should the Cacti SNMPAgent be able to send THOLD traps in 1.1.37?
Who is online
Users browsing this forum: No registered users and 0 guests