RE: Mon Question ...
Got everything working ... Once I had the right files, it was a breeze. Not sure where the other files came from that I was having problems with. But this was too easy. Jim, thanks for the help and setting me in the right direction!! Mon is great! --- 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: Sunday, June 27, 2004 7:52 AM To: Scott A. Davis Cc: [EMAIL PROTECTED] Subject: RE: Mon Question ... On Sat, 26 Jun 2004, Scott A. Davis wrote: > 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 monshowrc shouldn't be executable, and it's a bad idea to put files which are not meant to be executed in your cgi-bin path. > /cgi-bin/mon-lib.pl -rwxr-xr-x i've never heard of this. > 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'; i don't know what monshow you're using, but there has never been such a thing as mon-lib.pl, and monshow has never required it. it does, however, require you to install the Mon::Client perl module, which you can get here: ftp://ftp.kernel.org/pub/software/admin/mon/Mon-0.11.tar.gz the monshow you should be using comes from the "clients" directory in the main mon tarball. > does not seem to work. what does apache's error_log say? usually that is in /var/log/httpd. ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
RE: Mon Question ...
On Sat, 26 Jun 2004, Scott A. Davis wrote: > 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 monshowrc shouldn't be executable, and it's a bad idea to put files which are not meant to be executed in your cgi-bin path. > /cgi-bin/mon-lib.pl -rwxr-xr-x i've never heard of this. > 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'; i don't know what monshow you're using, but there has never been such a thing as mon-lib.pl, and monshow has never required it. it does, however, require you to install the Mon::Client perl module, which you can get here: ftp://ftp.kernel.org/pub/software/admin/mon/Mon-0.11.tar.gz the monshow you should be using comes from the "clients" directory in the main mon tarball. > does not seem to work. what does apache's error_log say? usually that is in /var/log/httpd. ___ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
RE: Mon Question ...
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
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