snmptt and nagios, access to nagios.cmd file
Jim Avery
jim at jimavery.me.uk
Thu Mar 12 16:57:09 CET 2009
2009/3/12 Marco Tirado <marco.tirado at 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 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
Thanks Marco,
I think I'm going to have to 'bite the bullet' and do something
similar myself soon.
Cheers,
Jim
------------------------------------------------------------------------------
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
_______________________________________________
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