<br><br>My snmptt.conf file for the trap I am testing looks like: <br><br>EVENT ospfOriginateLsa .1.3.6.1.2.1.14.16.2.0.12 "Status Events" Normal<br>FORMAT $D. $Fn VARIABLE VALUES: $-*<br>EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result "myhost" "snmp_traps" 1 "My text message" >> /tmp/OutputTest 2>&1<br>
SDESC<br>...<br>EDESC<br><br>And my nagios configuration is correct as I can see the passive check results in my nagios console if I run the above EXEC command from the command line as user snmptt.<br><br>//Marco <br><br>
<div class="gmail_quote">On Wed, Mar 11, 2009 at 6:10 PM, Marco Tirado <span dir="ltr"><<a href="mailto:marco.tirado@gmail.com">marco.tirado@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Users: <br><br>I am having touble integrating nagios with snmptt, it seems that the snmptt daemon can not write passive check results to the /usr/local/nagios/var/rw/nagios.cmd file. I get the following error: <br><br>

"cannot create /usr/local/nagios/var/rw/nagios.cmd: Permission denied"<br><br>The wierd thing is that I have added the "snmptt" user to the "nagcmd" group. I can actually run the EXEC command from the console and manually send the check results by running: <br>

<br>/usr/local/nagios/libexec/eventhandlers/submit_check_result "myhost" "snmp_traps" 1 "My text message"<br><br>as the snmptt user. But when the snmptt tries to run it when a trap is received I get the above error. <br>

<br>Any suggestions or recommendations are deeply appreciated<br><font color="#888888"><br>//Marco<br><br><br><br><br><br>
</font></blockquote></div><br>