snmp trap for passwd file deltas in solaris

Hello

I am trying to monitor when a user account gets added to my solaris server.

Does anyone know how I can set up an snmptrap for changes in the /etc/passwd file ?

KISS :smiley:

Backup your passwd file to some directory and change ownership to root:root and then make one
shell script which will compare content of that two files with diff command. To automate task put your shell script in cron timetable.

Thanks for the response.

I already have a script in cron that does this.
It compares (does a diff of) a baseline passwd file to the current passwd file, and since this is cron'ed
Whenever there is a change in the file, it sends the diff file as an e-mail alert

What i'm looking for is how to send the same diff file as an snmp trap/alert to a monitoring device.

Again this is a Solaris 10 box.

Thanks

What is receiving the SNMP traps?

HP NNM can compare the files and report a change in the /etc/passwd file. You just have to tell it to do so.

SolarWinds is configured to receive the traps

How do I configure the trap to be sent to SolarWinds?

Thanks