Hmmm... Ok. What am I doing wrong? My head hurts.
I have the files (at least for testing purposes)
/cgi-bin/monshow.cgi -rwxr-xr-x
/cgh-bin/monshowrc -rwxr-xr-x
/cgi-bin/mon-lib.pl -rwxr-xr-x
In monshow.cgi, I have the line:
my $VIEWPATH = "/var/www/html/cgi-bin"
mon-lib.pl is also in the same dir, as required by monshow.cgi line 26:
require './mon-lib.pl';
/usr/bin/perl properly defined in the cgi.
Trying to pull it up with:
http://www.mysite.com/cgi-bin/monshow.cgi or
http://www.mysite.com/cgi-bin/monshow.cgi/monshowrc or
http://www.mysite.com/cgi-bin/monshow.cgi?view=monshowrc
does not seem to work.
---
Scott A. Davis
http://www.digitalaustin.net
"Since love and fear can hardly exist together, if we must choose between
them, it is far safer to be feared than loved." --Niccolo Machiavelli
-----Original Message-----
From: Jim Trocki [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 26, 2004 5:28 PM
To: Scott A. Davis
Cc: [EMAIL PROTECTED]
Subject: Re: Mon Question ...
On Sat, 26 Jun 2004, Scott A. Davis wrote:
> If I pull up the standard mon.cgi interface, all devices are listed
> (as they should be). My question is: Is there a way to parse out the
> devices on a department-by-department basis so that whenever the
> Payroll department goes to mon.cgi, they see ONLY their devices?
i don't think mon.cgi can do this, but monshow can via the "views"
mechanism.
you'd put the view in the directory /etc/mon/monshow (say you named the file
"test") and then query the url like: http://monhost/monshow.cgi/test
the details are in the man page. there is also a sample monshowrc in the
etc/ directory.
_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon