snmptt and nagios, access to nagios.cmd file

Marco Tirado marco.tirado at gmail.com
Wed Mar 11 18:23:05 CET 2009


My snmptt.conf file for the trap I am testing looks like:

EVENT ospfOriginateLsa .1.3.6.1.2.1.14.16.2.0.12 "Status Events" Normal
FORMAT $D. $Fn VARIABLE VALUES: $-*
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result "myhost"
"snmp_traps" 1 "My text message" >> /tmp/OutputTest 2>&1
SDESC
...
EDESC

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.

//Marco

On Wed, Mar 11, 2009 at 6:10 PM, Marco Tirado <marco.tirado at gmail.com>wrote:

> Hello Users:
>
> 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:
>
> "cannot create /usr/local/nagios/var/rw/nagios.cmd: Permission denied"
>
> 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:
>
> /usr/local/nagios/libexec/eventhandlers/submit_check_result "myhost"
> "snmp_traps" 1 "My text message"
>
> as the snmptt user. But when the snmptt tries to run it when a trap is
> received I get the above error.
>
> Any suggestions or recommendations are deeply appreciated
>
> //Marco
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090311/54aaf370/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list