I'm trying to run a SNMP supervisor on Debian Lenny to supervise Uninteruptible Power Systems which support SNMP. I've installed snmp and snmpd debian packages for NET-SNMP 5.4.1 et i've configured /etc/snmp file with the snmpconf perl script :
file /etc/snmp/snmp.conf
file /etc/snmp/snmptrapd.conf
The /etc/snmpd.conf file is empty because I do not want a SNMP agent on the supervisor.
I launch with :
with -d option to get debug logs. In the syslog file I can read :
So the trap is well received but unfortunately the action associated to the traphandle (to open the cd tray with /bin/eject) fails I've tried other commands, the problem is with the traphandle instruction ...
On the web many people got this problem but I didn't manage to find any answer ...
Thanks in advance for your help and sorry for my bad English.
---------- Post updated 01-25-11 at 02:15 AM ---------- Previous update was 01-24-11 at 03:46 AM ----------
got the solution :
We had to add this line in the snmptrapd.conf file :
authCommunity log,execute,net public
the execute keyword permit executing external programs from the trap handling system.
I need to configure snmptrap on rhel 8 server and send trap to nimsoft for file system , memory and cpu load and network diconnection status.
please help me, if any one configured. (1 Reply)
Hi,
I tried to run snmptrapd from my customized service in centos 5.7 machine... the command used to start snmptrapd is ....
/opt/snmpdemo/bin/snmptrapd -Le -c /opt/snmpdemo/etc/snmp/snmptrapd.conf -n -C -t -m ""
And tried to trigger a trap... Trap got triggered but snmptrapd didn't... (0 Replies)
Hi,
trying to get snmp traps logged in /var/log/messages.
I put this option in snmptrapd.conf:
logOption Ls d
then restarting the snmptrad daemon I got this warning:
Unknown token: logoption.
and server is not logging traps. Starting snmptrapd manually works, traps are logged.... (0 Replies)
I have configured snmptrapd to log the traps to log file. the traps received and logged ok based on the mib file definition.
there is only one problem.
the value of one of the variables seems to be truncated due to end of line or some special char.
linux is centos 6.2
snmp software... (4 Replies)
Hello all,
Below what I saw on my solaris 10 box :
$ prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU
PROCESS/NLWP
683 root 4082M 91M run 10 0 41:45:39 96% snmptrapd/1
syslog gives a lot of :
snmptrapd: illegal
data attempted to be added to table nlmLogVariableTable... (0 Replies)
HI,
I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP)
for receiving
TRAPS in my networks. I am using RHEL4.0 OS.
Please tell me How I can configure above two files in a proper way and at an
advanced level.
Especially I am getting... (2 Replies)
i tried this to get snmptrapd.conf bt unable...
# snmpconf
The following installed configuration files were found:
1: /etc/snmp/snmp.conf
2: /etc/snmp/snmpd.conf
3: /usr/share/snmp/snmp.conf
4: /usr/share/snmp/snmpd.conf
Would you like me to read them in? Their... (0 Replies)
hi i am able to see the snmpd service running in my machine. i would like to get activate snmptrapd deamon services in my solaris box, could any one suggest me in getting activate the snmptrapd service (0 Replies)