Proposed patch to allow checknow via the web interface
Matt.A.Cleveland at healthnet.com
Matt.A.Cleveland at healthnet.com
Thu May 12 11:08:05 EDT 2005
Sorry about that, here is the patch for Web.pm.
--- src/Web.pm Wed Apr 20 17:55:30 2005
+++ /usr/local/argus/lib/Web.pm Mon Apr 25 12:57:54 2005
@@ -347,6 +347,12 @@
print $fh $me->web_button('Debugging', undef, 'func=about');
print $fh "<!-- END AUTHORIZATION DEBUG NEEDED -->\n";
+ if ( $me->{web_checknow} ){
+ print $fh "<!-- START AUTHORIZATION DEBUG NEEDED
$me->{acl_checknow} -->\n";
+ print $fh $me->web_button('Check Now', undef, 'func=checknow');
+ print $fh "<!-- END AUTHORIZATION DEBUG NEEDED -->\n";
+ }
+
# paging...
print $fh "<!-- START AUTHORIZATION RW NEEDED $me->{acl_ntfylist}
-->\n";
print $fh $me->web_button_no('Un-Acked Notifies', undef,
'func=ntfylsua');
Matt Cleveland
Sr. Web Developer
HealthNet Inc.
916.935.1248
matt.cleveland at healthnet.com
Jason 'XenoPhage'
Frisvold To: Discussion about Argus <arguslist at tcp4me.com>
<friz at godshell.co cc:
m> Subject: Re: Proposed patch to allow checknow via the web interface
Sent by:
arguslist-bounces
@tcp4me.com
05/12/2005 07:47
AM
Please respond to
Discussion about
Argus
Matt.A.Cleveland at healthnet.com wrote:
>I see that attachments don't make it through the list server, so here is
>the text of the patches.
>
>
Excellent.. One problem though.. You pasted the wrong patch for Web.pm
(see below) ... Can you paste the correct one please??
>Last for Web.pm
>
>--- src/Service.pm Wed Apr 20 17:55:29 2005
>+++ /usr/local/argus/lib/Service.pm Mon Apr 25 13:24:35 2005
>@@ -303,6 +303,7 @@
> unless( $me->{notify}{sendnotify2} ){
> $me->{notify}{sendnotify} = 0;
> }
>+ $me->{web_checknow} = 1 unless defined $me->{web_checknow};
>
> $cf->warning( "test frequency is less than retrydelay" )
> if $me->{srvc}{retrydelay} && $me->{srvc}{frequency} <
>$me->{srvc}{retrydelay};
>
>
Thanks!
>Matt Cleveland
>Sr. Web Developer
>HealthNet Inc.
>916.935.1248
>matt.cleveland at healthnet.com
>
>
--
---------------------------
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
friz at godshell.com
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---------------------------
"Something mysterious is formed, born in the silent void. Waiting alone and
unmoving, it is at once still and yet in constant motion. It is the source
of all programs. I do not know its name, so I will call it the Tao of
Programming."
_______________________________________________
http://argus.tcp4me.com/
Arguslist at tcp4me.com
http://www.tcp4me.com/mailman/listinfo/arguslist
This message,together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.
More information about the Arguslist
mailing list