Using $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros in notes URL
MAD
sri.lumpa at free.fr
Mon Mar 23 13:05:33 CET 2009
Hi all
This may be a dummy question.
I would like to use the $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros to define a note URL for some services, but for some reasons, these macros are not processed by Nagios.
For example, I defined a notes URL as :
/nagios/notes/?host=$HOSTNAME$&service=$SERVICEDESC$&state=$SERVICESTATEID$
This gave me the following note URL :
http://my_serveur/nagios/notes/?host=my_host&service=my_service&state=$SERVICESTATEID$
instead of the waited one :
http://my_serveur/nagios/notes/?host=my_host&service=my_service&state=0
I checked on the macros chart given in the documentation but the $SERVICEDESC$ macro and the $SERVICESTATEID$ and $LASTSERVICESTATEID$ ones have the same ranges of use.
Is it possible to use those macros in notes URL (and in that case where am I doing wrong ?) or should I use an other way to generate my note pages dynamically depending on the service's state ?
Marc-André
------------------------------------------------------------------------------
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