Re: [Nagios-users] Url in the notification?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Palle L Jensen wrote: | For example Nagios sends out an alert on high CPU load, would it be | possible to add the URL to the graph for the CPU load? Have you looked at the Macro's? (http://nagios.sourceforge.net/docs/3_0/macrolist.html) $HOSTNOTESURL$ $SERVICENOTESURL$ Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFILerhBvzDRVjxmYERAr+VAJ47eOZknW5COeINiess0wErAfqtLQCeLAB5 MJlxNGwuEijhUii/i1Aj/Zo= =WcvL -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Url in the notification?
On May 16, 2008, at 1:19 PM, Palle L Jensen wrote: > I just love Nagios; it does so much great work for you! > As you work with it though sometimes thoughts comes up, can it do > more? > > Here is my thought. > > For example Nagios sends out an alert on high CPU load, would it be > possible to add the URL to the graph for the CPU load? Yes, if you can programatically create the URL. > > * Nagios Monitoring 3.0.1 * > > Notification Type: PROBLEM > > Service: Cpu > Host: Server001 > Address: 000.000.000.000 > State: WARNING > Date/Time: Fri May 16 13:36:06 EDT 2008 > Url: > http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=Server01&service=Cpu > > Additional Info: > > CPU Load 80% (5 min average) > > > This would be very cool cause then you could click on the link and > immediately get to the overview of the graphing of the CPU load. > Does anyone know if this would be possible? Very simply. Edit your service notification command to include, in the appropriate place you want it to appear, -- Url: http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ Note that this will only work if your service descriptions do not contain spaces or any other special URL characters (&, ?, etc). If they do, you'll need to make your notiifcation command an actual script that URI Escapes those before sending the e-mail. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] Url in the notification?
I just love Nagios; it does so much great work for you! As you work with it though sometimes thoughts comes up, can it do more? Here is my thought. For example Nagios sends out an alert on high CPU load, would it be possible to add the URL to the graph for the CPU load? So it would look like this: * Nagios Monitoring 3.0.1 * Notification Type: PROBLEM Service: Cpu Host: Server001 Address: 000.000.000.000 State: WARNING Date/Time: Fri May 16 13:36:06 EDT 2008 Url: http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=Server01&service=Cpu Additional Info: CPU Load 80% (5 min average) This would be very cool cause then you could click on the link and immediately get to the overview of the graphing of the CPU load. Does anyone know if this would be possible? Thanks, Palle - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Nagios-users mailing list Nagios-users@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