is there error I get in response to issuing - just like the other issue.
snmpwalk -m MYSQL-SERVER-MIB -v 2c -c public localhost enterprises.20267
Please help me learn something here so I don't have to bug peolple with such issues. I will try to include what I believe is relevant based on the previous issue of the same nature. I am working on learning what I can about SNMP and OpenNMS and this nifty mysql-snmp tool. My concerns are that this isn't installed correctly and I am not sure how to verify the install via RPM build/install I did. (Used to do Debian pkging but aside from basic install/query/update commands RMP packaging is a newer beast to me). Finally, how it becomes incorporated into OpenNMS when it is in fact installed and working correclty and how this will translate when I use it remotely (prob. be fine once it is installed correctly.) Can snmpv3 be used with mysql-snmp? Alrighty, any words from the wiser? Here's the info:
Using FC12 64-bit
net-snmp fo x86_64 5.4.2.1 is installed
Attempted to build rpm of mysql-snmp and it seems as though it built correctly and installed.
rpm --query mysql-agent
mysql-agent-1.0rc1-2.fc12.noarch
see mib installed in /etc
Ran into and cleaned up various lib dependency issues running this on the command line:
mysql-agent -h localhost -u root -p -i -v
now it runs and there is no output/errors to command line
running in non-daemon mode (see output at the end of this email...)
Added master agentX to snmpd.conf
Uncertain about what it is to add an view for enterprise - attempted it a few times but got error in /var/log/messages on snmpd.conf restart. While I successfully set up snmpv3 to work with cacti, I am not an expert, doing snmpV3 I didn't have to to a lot of work in the snmpd.conf file so I may be a bit confused here about adding this. Finally, yes, made sure to restart snmp after any snmpd.conf revisions.
snmpd.conf (just using defaults for now to test it out - would like to implement in snmpv3
if possible)
master agentx
First, map the community name "public" into a "security name"
sec.name source community
com2sec notConfigUser default public
Second, map the security name into a group name:
groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
Third, create a view for us to let the group have rights to:
Make at least snmpwalk -v 1 localhost -c public system fast again.
name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
OUTPUT: /var/log/messages (looks good and then it doesn't...?!?!)
Turning on AgentX master support.
Jun 21 15:35:54 localhost snmpd[13665]: NET-SNMP version 5.4.2.1
Jun 21 15:36:09 localhost snmpd[13665]: netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 netsnmp_subtree_load()
OUTPUT: $ mysql-agent -h localhost -u root -p -i -v --no-daemon
NET-SNMP version 5.4.2.1 AgentX subagent connected
registering pdu failed: 263!
mysql-agent[13995]: enterprises.20267.200.1.1.0 -> myKeyReadRequests
enterprises.20267.200.1.1.0 -> myKeyReadRequests
mysql-agent[13995]: enterprises.20267.200.1.2.0 -> myKeyReads
enterprises.20267.200.1.2.0 -> myKeyReads
mysql-agent[13995]: enterprises.20267.200.1.3.0 -> myKeyWriteRequests
enterprises.20267.200.1.3.0 -> myKeyWriteRequests
mysql-agent[13995]: enterprises.20267.200.1.4.0 -> myKeyWrites
enterprises.20267.200.1.4.0 -> myKeyWrites
mysql-agent[13995]: enterprises.20267.200.1.5.0 -> myHistoryList
enterprises.20267.200.1.5.0 -> myHistoryList
mysql-agent[13995]: enterprises.20267.200.1.6.0 -> myInnodbTransactions
enterprises.20267.200.1.6.0 -> myInnodbTransactions
mysql-agent[13995]: enterprises.20267.200.1.7.0 -> myReadViews
enterprises.20267.200.1.7.0 -> myReadViews
mysql-agent[13995]: enterprises.20267.200.1.8.0 -> myCurrentTransactions
enterprises.20267.200.1.8.0 -> myCurrentTransactions
mysql-agent[13995]: enterprises.20267.200.1.9.0 -> myLockedTransactions
enterprises.20267.200.1.9.0 -> myLockedTransactions
mysql-agent[13995]: enterprises.20267.200.1.10.0 -> myActiveTransactions
enterprises.20267.200.1.10.0 -> myActiveTransactions
mysql-agent[13995]: enterprises.20267.200.1.11.0 -> myPoolSize
enterprises.20267.200.1.11.0 -> myPoolSize
mysql-agent[13995]: enterprises.20267.200.1.12.0 -> myFreePages
enterprises.20267.200.1.12.0 -> myFreePages
mysql-agent[13995]: enterprises.20267.200.1.13.0 -> myDatabasePages
enterprises.20267.200.1.13.0 -> myDatabasePages
mysql-agent[13995]: enterprises.20267.200.1.14.0 -> myModifiedPages
enterprises.20267.200.1.14.0 -> myModifiedPages
mysql-agent[13995]: enterprises.20267.200.1.15.0 -> myPagesRead
enterprises.20267.200.1.15.0 -> myPagesRead
mysql-agent[13995]: enterprises.20267.200.1.16.0 -> myPagesCreated
enterprises.20267.200.1.16.0 -> myPagesCreated
mysql-agent[13995]: enterprises.20267.200.1.17.0 -> myPagesWritten
enterprises.20267.200.1.17.0 -> myPagesWritten
mysql-agent[13995]: enterprises.20267.200.1.18.0 -> myFileFsyncs
.
.(more of the same above, omitted for brevity)
.
enterprises.20267.200.1.143.0 -> myThreadHashMemory
mysql-agent[13995]: Setting error to 0
Setting error to 0
mysql-agent[13995]: Refreshed at 1277149220 0
Refreshed at 1277149220 0
$VAR1 = {
'myPendingLogWrites' => {
'value' => 0,
'type' => 'Gauge32'
},
'myStateWritingToNet' => {
'value' => 0,
'type' => 'Gauge32'
.
. (more of the same above, omitted for brevity)
.
}
};
mysql-agent[13995]: not refreshing: 15 < 300
not refreshing: 15 < 300
mysql-agent[13995]: not refreshing: 30 < 300
not refreshing: 30 < 300
mysql-agent[13995]: not refreshing: 45 < 300
not refreshing: 45 < 300
mysql-agent[13995]: not refreshing: 60 < 300
not refreshing: 60 < 300
mysql-agent[13995]: not refreshing: 75 < 300
not refreshing: 75 < 300
mysql-agent[13995]: not refreshing: 91 < 300
not refreshing: 91 < 300
mysql-agent[13995]: not refreshing: 106 < 300
not refreshing: 106 < 300
mysql-agent[13995]: not refreshing: 121 < 300
not refreshing: 121 < 300
mysql-agent[13995]: not refreshing: 136 < 300
not refreshing: 136 < 300
.
. (more of the same above, omitted for brevity)
.
END