snmptt and nagios, access to nagios.cmd file

Marco Tirado marco.tirado at gmail.com
Thu Mar 12 15:40:57 CET 2009


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 send the
notifications as passive checks directly from snmptt's EXEC statement. I
some special logic in my script to select the right alarm level and then
send it to nagios with submit_check_result. I link to nagtrap using the
action_url in all my snmptrap services.

I catch all the traps in Nagtrap, however only some of them generate alarms.
Whenever an alarm is generated by the selected traps, you can always check
the rest of received traps in nagtrap.

Regards

Marco





On Thu, Mar 12, 2009 at 2:11 PM, Jim Avery <jim at jimavery.me.uk> wrote:

> 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 it's any easier to maintain now.
>
> I quite like NagTrap, but if you follow the standard install for it,
> there's a lot of polling the database which is very cpu intensive
> compared with writing direct to the command file as you do.  Also, the
> alerts aren't so meaningful with NagTrap as they are in your setup.
>
> Cheers,
>
> Jim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090312/3533fe2d/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