Acknowledged by user + Service action url {Fraud?}
Marc Powell
marc at ena.com
Thu Jan 15 16:38:19 CET 2009
On Jan 15, 2009, at 8:28 AM, Palle L Jensen wrote:
> Hello,
>
> I have 2 problems that I am currently working on.
>
> 1. In Nagios Web-interface and when someone acknowledges a problem,
> the Author (your name) it is pre-populated with “Nagios” and cannot
> be changed. We would like to be able to populate that with operators
> that acknowledge the problem.
> - I have looked around on settings and permissions but can’t find
> any solution.
http://nagios.sourceforge.net/docs/3_0/configcgi.html
Lock Author Names
Format: lock_author_names=[0/1]
Example: lock_author_names=1
This option allows you to restrict users from changing the author name
when submitting comments, acknowledgements, and scheduled downtime
from the web interface. If this option is enabled, users will be
unable to change the author name associated with the command request.
* 0 = Allow users to change author names when submitting commands
* 1 = Prevent users from changing author names (default)
> 2. I wanted to have service action url in the acknowledge notes
> being sent to operators from Nagios. The host action url works fine,
> but for the service it does not populate the url in the notes.
> - Below is how my commands look.
>
> ------ For service – this does not work with action url: -------
> notify-service-by-email /usr/bin/printf "%b" "***** CCO Nagios
> Monitoring 3.0.1 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n
> \nDate/Time: $LONGDATETIME$\n\nService: $SERVICEDESC$\nHost:
> $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
> \nOperator: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\nUrl:
> $SERVICEACTIONURL$\nInfo:\n$SERVICEOUTPUT$" | /usr/bin/mail -s "**
> $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
> $SERVICESTATE$ **" $CONTACTEMAIL$
It does look like you're using the correct(ly spelled) macro. Are you
sure that the service definition has action_url specified? Can you
post it? I'd also enable debug mode in nagios.cfg and see if anything
interesting showed up.
--
Marc
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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