Nagios Looking Glass Creating Templates

Eric Hernandez navyeh at yahoo.com
Fri Jun 15 21:36:27 CEST 2007


  Andy, I ran the debug
  and i noticed that it was always saying that filter was out of date.
   
  Synchronising s3_filter.inc.php with server ... out-of-date ... updating ...  bytes written
   
  I chmod -R 774 the entire client directory, it did not help.
  I than deleted the s3_filter.inc.php in the client sync-files directory 
  and it now works. Every time i make a change it updates correctly.
   
  Thanks for all your help.
   
  Best Regards,
  -Eric

Andy Shellam <andy.shellam-lists at mailnetwork.co.uk> wrote:
  Hi Eric,

You can check the sync'ing using the debugging feature - it will say 
"file xxx out-of-date, sync'ing with server... OK" etc. It's impossible 
to test properly through the shell - as there are a couple of views 
which are loaded through Ajax - which isn't supported by either a shell 
script or the Lynx browser. You also cannot debug it through a shell 
script as you need to be able to pass a variable into the request.

As for permissions, you need the following for the user the web-server 
runs as (if you use NLG's client and server on the same machine, then 
both sets of permissions apply):

on the server-side:

- read access to the whole of the server/ directory
- write access to the server/index directory
- read access to the Nagios var/ directory

on the client-side:

- read access to the whole of the client/ directory
- write access to the root of the client/ directory
- write access to the client/sync-files directory

Andy.

Eric Hernandez wrote:
> Andy,
> I will try to use the debugging in the future.
> What I have been doing to make LookingGlass work since I started using 
> it Yesterday
> Was to run php index.php from the shell on the server in the client 
> directory.'
> And than it works fine after that.
> 
> I did this again since changing the password and it works now.
> I believe that my problem has to do with it not syncing from server to 
> client.
> What permissions should my client directory have.
> Also if i create another filter in the server side it does not 
> replicate to the client so again i think its an issue with syncing.
> 
> How can i test syncing ?
>
>
> */Andy Shellam /* wrote:
>
> Hi Eric,
>
> That error is the standard "can't find the server", for one of the
> following reasons:
>
> - Access denied
> - Page not found (404)
> - Internal server error (503)
>
> For a guess, you haven't changed the password in the .htaccess
> file (or
> Apache's httpd.conf) that you're using to secure your NLG server.
> Try your old password again.
>
> Failing that, enable the debugging option in the
> client/s3_config_stub.inc.php file, (including setting
> display_errors to
> on) then run http://your_nlg_server/s3_client.php?debug=yes. That'll
> tell you the error.
>
> Andy.
>
> Eric Hernandez wrote:
> > I changed it in the Client-Side, i tried first changing it in the
> > Server Side but it would not work. I guess its not syncing.
> >
> > I change the password for nagiosadmin that i was using for the site.
> > and now it doesnt work. I set the new password in the
> > s3_config.inc.php in server/sync-files
> >
> > i get this error when i try to access the site.
> >
> > Nagios Looking Glass Error Report
> > Sorry for the inconvenience, but Nagios Looking Glass could not
> > retrieve the page you asked for.
> > The error message below might hold more clues for the site
> administrator:
> > Could not connect to the polling feed; the polling server may be
> down
> > Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35
> >
> >
> > */Andy Shellam /* wrote:
> >
> > Hi Eric,
> >
> > Have you added it to the server-side, or client-side?
> > It has to be in the server-side or it'll get overwritten the next
> > time
> > you open your client.
> >
> > I've copied and pasted the code into mine - works fine.
> > http://looking-glass.andyshellam.eu
> >
> > Andy.
> >
> > Eric Hernandez wrote:
> > > Andy,
> > > I added this to s3_filter.inc.php
> > > but it does not show up in the drop down menu. on the web page.
> > >
> > > $HostFilter[6] = new S3_NetworkFilter();
> > > $HostFilter[6]->Create("test");
> > > $HostFilter[6]->SetType("host");
> > > $HostFilter[6]->AddHost("AA-CG-SW1");
> > >
> > > -eric
> > >
> > > */Andy Shellam /* wrote:
> > >
> > > Hi Eric,
> > >
> > > You don't need to create a separate template to only show specific
> > > hosts
> > > - what you're looking for is a custom filter (which will get
> > added to
> > > the "filter hosts" drop-down, whichever template you're using.)
> > >
> > > First off I take it you're using the latest 1.0.6 version? If
> > so, see
> > > the "filters.txt" file in the distribution - that's got some
> > > instructions and examples on the different types of filters
> you can
> > > create. You need to create a "host-specific" filter.
> > >
> > > If the instructions in this file do not help, please contact
> me back
> > > with where you're having difficulty.
> > >
> > > Andy.
> > >
> > > Eric Hernandez wrote:
> > > > Hi I have installed Nagios-Looking Glass it works. However I
> > cannot
> > > > figure out how to create a template that will only show selected
> > > hosts.
> > > > Please Advise
> > > >
> > > > Thx,
> > > >
> > > > -Eric
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > > Ready for the edge of your seat? Check out tonight's top picks
> > > > on Yahoo! TV.
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > >
> > > >
> > >
> >
> -------------------------------------------------------------------------
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and
> take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > > Get the Yahoo! toolbar and be alerted to new email
> > > wherever
> > > you're surfing. !DSPAM:37,4672c1c5343941056075452!
> >
> >
> >
> ------------------------------------------------------------------------
> > Park yourself in front of a world of choices in alternative
> vehicles.
> > Visit the Yahoo! Auto Green Center.
> >
> > !DSPAM:37,4672c9f1343949989220130!
>
>
> ------------------------------------------------------------------------
> Never miss an email again!
> Yahoo! Toolbar 
> 
> alerts you the instant new Mail arrives. Check it out. 
> 
> !DSPAM:37,4672ddf0343947134516691! 


    
---------------------------------
  Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. 


       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070615/602fbc08/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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