Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-12 Thread Marco Tirado
They look like this: For nagios.cmd prw-rw 1 nagios nagcmd0 2009-03-11 18:53 nagios.cmd for the rw catalog: drwxrwsr-x 2 nagios nagcmd 4096 2009-03-11 18:14 rw Please let me know if something looks obviously wrong. //Marco On Wed, Mar 11, 2009 at 8:12 PM, Jim Avery

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-12 Thread Jim Avery
2009/3/12 Marco Tirado marco.tir...@gmail.com: They look like this: For nagios.cmd prw-rw 1 nagios nagcmd    0 2009-03-11 18:53 nagios.cmd for the rw catalog: drwxrwsr-x  2 nagios nagcmd   4096 2009-03-11 18:14 rw Please let me know if something looks obviously wrong. No, those

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-12 Thread Jim Avery
p.s. I'd be interested to know what instructions you followed to get your method working? I moved to using NagTrap because I found that maintaining the submit_check_result script was rather time-consuming, but if things have moved on a bit since I last set mine up I'd be interested to see if

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-12 Thread Marco Tirado
Hello Jim: Thank you very much for the help, after changing the last line in the submit_check_result script from the default of: `$echocmd $cmdline $CommandFile` to: sg nagiocmd -c echo '$cmdline' $CommandFile everything works fine. As for my setup, I run nagios 3 and Nagtrap. However I

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-12 Thread Jim Avery
2009/3/12 Marco Tirado marco.tir...@gmail.com: Hello Jim: Thank you very much for the help, after changing the last line in the submit_check_result script from the default of: `$echocmd $cmdline $CommandFile` to: sg nagiocmd -c echo '$cmdline' $CommandFile everything works fine. As

[Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-11 Thread Marco Tirado
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

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-11 Thread Marco Tirado
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 21 SDESC ...

Re: [Nagios-users] snmptt and nagios, access to nagios.cmd file

2009-03-11 Thread Jim Avery
2009/3/11 Marco Tirado marco.tir...@gmail.com: 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