Enterprise Control Configuration and Logging
Find a file
Richard Frith-MacDonald 11fd83e2bb improve logging message when we have no remote server name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/devmodules/dev-libs/ec@34796 72102866-910b-0410-8b05-ffd578937521
2012-02-20 14:46:44 +00:00
Command.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
config.guess Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
config.h.in Add option to enable readline support 2012-02-19 16:16:14 +00:00
config.make.in Add option to enable readline support 2012-02-19 16:16:14 +00:00
config.sub Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
configure Add option to enable readline support 2012-02-19 16:16:14 +00:00
configure.ac Add option to enable readline support 2012-02-19 16:16:14 +00:00
Console.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
Control.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
COPYING.LESSER Add copyright 2012-02-19 12:53:41 +00:00
EcAlarm.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlarm.m Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmDestination.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmDestination.m Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmSinkSNMP.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmSinkSNMP.m improve snmp docS 2012-02-20 14:27:02 +00:00
EcAlerter.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlerter.m Add copyright 2012-02-19 12:53:41 +00:00
EcBroadcastProxy.h Add copyright 2012-02-19 12:53:41 +00:00
EcBroadcastProxy.m Add copyright 2012-02-19 12:53:41 +00:00
EcClientI.h Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcClientI.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcCommand.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcConsole.m Add option to enable readline support 2012-02-19 16:16:14 +00:00
EcControl.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcHost.h Add copyright 2012-02-19 12:53:41 +00:00
EcHost.m Add copyright 2012-02-19 12:53:41 +00:00
EcLogger.h Add copyright 2012-02-19 12:53:41 +00:00
EcLogger.m improve logging message when we have no remote server name 2012-02-20 14:46:44 +00:00
EcProcess.h Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcProcess.m tweak 2012-02-20 14:03:36 +00:00
EcUserDefaults.h Add copyright 2012-02-19 12:53:41 +00:00
EcUserDefaults.m fix error setting domain 2012-02-20 14:00:38 +00:00
GNUmakefile fixup location of local.make 2012-02-19 16:33:37 +00:00
GNUmakefile.postamble add config.h 2012-02-19 16:47:03 +00:00
GNUmakefile.preamble Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
GNUSTEP-MIB.txt improve snmp docS 2012-02-20 14:27:02 +00:00
install-sh Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
local.make fixup location of local.make 2012-02-19 16:33:37 +00:00
NSFileHandle+Printf.h Add copyright 2012-02-19 12:53:41 +00:00
NSFileHandle+Printf.m Add copyright 2012-02-19 12:53:41 +00:00
README.SNMP improve snmp docS 2012-02-20 14:27:02 +00:00
Terminate.m Add copyright 2012-02-19 12:53:41 +00:00

Here's the sort of thing you might do to set up SNMP support on your
system, assuming that you have net-snmp installed in the normal
locations for something like RedHat Linux.

0. Edit the example GNSTEP-MIB.txt to contain your own organisation's
   Private Enterprise Number

1. install GNUSTEP-MIB.txt in /usr/share/snmp/mibs

2. edit '/etc/sysconfig/snmpd.options' to contain:
OPTIONS="$OPTIONS -Dgnustep -Lf /var/log/snmpd"
export OPTIONS
so that any debug for the gnustep module would be logged
in /var/log/snmpd

3. edit '/etc/sysconfig/snmptrapd.options' to contain:
OPTIONS="$OPTIONS -Dgnustep -Lf /var/log/snmptrapd"
export OPTIONS
so that any debug for the gnustep module would be logged
in /var/log/snmptrapd

4. edit /etc/snmp/snmpd.conf to get it to send traps to snmptrapd ...

rwcommunity     public
trap2sink       localhost public

and to accept agentx connections via tcp ...

agentxsocket    tcp:localhost:705
master          agentx

5. restart with '/etc/rc.d/init.d/snmpd restart'

6. build/install/run the Control server

7. test with snmpwalk ...

To look at EVERYTHING:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep

To look at the current alarms table:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep.alarms.alarmsTable

To look at the current alarms table in a tabular format (rows of columns) which will be far too wide to view in a normal terminal window:
snmptable -v 1 -c public localhost GNUSTEP-MIB::gnustep.alarms.alarmsTable

To look at the managed objects table:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep.objects

You should be able to get the heartbeat poll interval with:
snmpget -v 1 -c public localhost GNUSTEP-MIB::pollHeartBeat.0

You should be able to set the heartbeat poll interval to two minutes with 
snmpset -v 1 -c public localhost GNUSTEP-MIB::pollHeartBeat.0 i 2

You should be able to set the resync flag interval with
snmpset -v 1 -c public localhost GNUSTEP-MIB::resyncFlag.0 i 1
and set it back to normal with
snmpset -v 1 -c public localhost GNUSTEP-MIB::resyncFlag.0 i 0