proc and monitor sending trap to a trap receiver

Tony.O'[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <01FE67ED5995174EACF2ED85399D03930406419C@centoff-xchg4.eddept.wa.edu.au>
Hi,

 

Hopefully someone can help me, I have set-up the snmpd.conf file to send a
trap to a trap receiver on a windows server (Solaris 10 client - snmpd,
windows receiver "I could have run snmptrapd on the Solaris box").

 

I get a message on the trap receiver when I stop and start daemon on the on
the client (so I know that trapsink works) - 

 

SNMP Version:         1 

TimeStamp: 2 hours 47 minutes 20 seconds 

Enterprise:    .1.3.6.1.4.1.8072.4 

Specific:        3 

Generic:        enterpriseSpecific 

 

But when I stop and start the httpd daemon on the client I do not receive a
trap to confirm that the service has been stopped, my understanding is that
monitor reference should have sent a trap to the receiver once the httpd
sevices was stopped but I do not get one.  I have looked though the
documentation but have been unable to get the trap sent to the receiver.

 

If anyone has any ideas or examples to get the taps sent to the receiver I
would be most grateful, or maybe I have misunderstood how proc and monitor
works.

 

Regards,

 

Tony. 

 

 

Snmpd.conf (some bits left out)

 

Start - snmpd.conf

 

rocommunity  public

 

trapsink  10.25.52.185

informsink  10.25.52.185

 

proc  httpd 

proc sendmail 10 1

 

agentSecName usg

defaultMonitors yes

 

monitor -u usg -r 30 -i -o prNames -o prErrMessage "Process httpd"
prErrorFlag != 0

 

End - snmpd.con

 

Httpd service started

 

uxadm1(root)> snmpwalk -c public -v 1 localhost .1.3.6.1.4.1.2021.2

UCD-SNMP-MIB::prIndex.1 = INTEGER: 1

UCD-SNMP-MIB::prIndex.2 = INTEGER: 2

UCD-SNMP-MIB::prNames.1 = STRING: httpd

UCD-SNMP-MIB::prNames.2 = STRING: sendmail

UCD-SNMP-MIB::prMin.1 = INTEGER: 0

UCD-SNMP-MIB::prMin.2 = INTEGER: 1

UCD-SNMP-MIB::prMax.1 = INTEGER: 0

UCD-SNMP-MIB::prMax.2 = INTEGER: 10

UCD-SNMP-MIB::prCount.1 = INTEGER: 6

UCD-SNMP-MIB::prCount.2 = INTEGER: 0

UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 0

UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1

UCD-SNMP-MIB::prErrMessage.1 = STRING:

UCD-SNMP-MIB::prErrMessage.2 = STRING: Too few sendmail running (# = 0)

UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0

UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0

UCD-SNMP-MIB::prErrFixCmd.1 = STRING:

UCD-SNMP-MIB::prErrFixCmd.2 = STRING:

 

Httpd service stopped

 

uxadm1(root)> snmpwalk -c public -v 1 localhost .1.3.6.1.4.1.2021.2

UCD-SNMP-MIB::prIndex.1 = INTEGER: 1

UCD-SNMP-MIB::prIndex.2 = INTEGER: 2

UCD-SNMP-MIB::prNames.1 = STRING: httpd

UCD-SNMP-MIB::prNames.2 = STRING: sendmail

UCD-SNMP-MIB::prMin.1 = INTEGER: 0

UCD-SNMP-MIB::prMin.2 = INTEGER: 1

UCD-SNMP-MIB::prMax.1 = INTEGER: 0

UCD-SNMP-MIB::prMax.2 = INTEGER: 10

UCD-SNMP-MIB::prCount.1 = INTEGER: 0

UCD-SNMP-MIB::prCount.2 = INTEGER: 0

UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1

UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1

UCD-SNMP-MIB::prErrMessage.1 = STRING: No httpd process running.

UCD-SNMP-MIB::prErrMessage.2 = STRING: Too few sendmail running (# = 0)

UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0

UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0

UCD-SNMP-MIB::prErrFixCmd.1 = STRING:

UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.