When I start the IDS, the net-snmp daemon, and the subagent onsrvapd,
I can fetch snmp information:
snmpget -v1 -c public localhost \
.mib-2.39.1.7.1.4.893169000.7.77.83.71.80.65.84.72.1
But after the database server is restartet the above 'snmget' command
failes with the answer:
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object:
SNMPv2-SMI::mib-2.39.1.7.1.4.893169000.7.77.83.71.80.65.84.72.1
Why is it necessary also to restart the onsrvapd after restarting the
database engine?
Here is the /tmp/onsnmp.log after the first IDS start
----------------------------------------------
Wed May 21 10:35:27 2008
INFO : OnSnmp Version 10.00.UC6
INFO : OnSnmpInit-Started pid 22771 [-n'ids_lkv' -k5 -p5 -l'/tmp' -g32
-r4].
Wed May 21 10:52:35 2008
MAJOR: onCheckServerStatus[169] - Status changed from 1 to 3.
MAJOR: onCheckServerStatus[169] - Server not Up.
MAJOR: 'esqlDisconnectServer Current': SQLCODE -25582 iserrno 0. (At
'./ondbtb.ec':180).
MAJOR: Network connection is broken.
Wed May 21 10:52:40 2008
MAJOR: onCheckServerStatus[169] - Status changed from 3 to 2.
----------------------------------------------
and the /tmp/onsrvapd.4833decf58f2.log
----------------------------------------------
INFO : Online Server Discovery daemon 'onsrvapd' Version 10.00.U
INFO : onsrvapd pid 22770, poll 5 secs, linger 5 mts, logfile
/tmp/onsrvapd.4833decf58f2.log.
Wed May 21 10:35:28 2008
INFO : startSubagent - Pid 22771 '/opt/informix/bin/onsnmp' 'onsnmp'
[-n'ids_lkv' -k5 -p5 -l'/tmp' -g32 -r4.]
Wed May 21 10:52:39 2008
MAJOR: Server [ids_lkv, 169] down. Lingering Subagent pid 22771.
Wed May 21 10:53:14 2008
INFO : Server [ids_lkv, 169] up now. Subagent pid 22771 re-active.
----------------------------------------------
The ids_lkv is the DBSERVERNAME value in $ONCONFIG, which is also in the
sqlhosts:
ids_lkv onsoctcp localhost sqlexec
In the snmp-config file /etc/snmp/snmp.conf I added two lines:
------------
smuxpeer 0.0
smuxsocket 0.0.0.0
------------
I copied the $INFORMIXDIR/snmp/*.mib files to /usr/share/snmp/mibs/
Holger de Wall