Displaying attached file in nagios

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Jan 2 09:16:23 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/01/08 09:11 AM, vadi wrote:
> Hi All,
> 
> I want to attach Sql queries output file to the nagios, so that I can
> download it whenever I need it( It's difficult to display high output on
> the nagios screen).

So I guess you're running a hand-made check against a SQL database and
want to optionally view the full output of the check Or something like
this)?

The easiest way I can think off is to create a place on your Nagios web
server writable by the nagios user and dump the file there; then you can
configure the service notes_url or action_url to point to that file via
HTTP.

Setting up notes_url or action_url will add a small icon next to the
service and a bigger one the service detail page, and will also set the
macros $NOTESURL$ and $ACTIONURL$ (p.s. double-check the macro names, my
memory isn't 100% guaranteed) that you can use for example in the
service notifications.

Hope this helps,

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHe0hX6dZ+Kt5BchYRAhzaAJ9DdjYvkIKze8wbO3eKwQ8okEwyEQCgjOR3
CxAsRKuTkJrs9m0sVSCZOMo=
=SFbh
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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