R: PHP parse error in NLG

Carlo Piccini carlo.piccini at katamail.com
Thu Apr 26 19:22:55 CEST 2007


Hello,

sorry for not coming back soon on the issue. I had a forced time off
nagios... :-(

I solved the problem installing PHP 5.2 as suggested. So thanks for the
reply.

 

I have a question about the configuration:

I use authentication in nagios web interface, and I use authenticated
contacts to give access to only certain hosts/services to users.

 

Example:

 

User johndoe is a contact for server1 and server3

User foobar is a contact for server2

 

In nagios web interface user johndoe can only access services residing on
server1 and server3, while user foobar only sees server2.

I expected this to be true for NLG too, but I found that using
$ServerFeed_AuthEnabled = 1 and indicating the user/password in the config
files, gives user johndoe access to server1, server2, server3.

The same apply for user foobar.

 

Am I missing something?

Thanks,

 

 

 

 

Carlo Piccini

  _____  

Da: Andy Shellam (Mailing Lists)
[mailto:andy.shellam-lists at mailnetwork.co.uk] 
Inviato: domenica 25 febbraio 2007 12.51
A: Carlo Piccini
Cc: nagios-users at lists.sourceforge.net
Oggetto: Re: [Nagios-users] PHP parse error in NLG

 

Hi Carlo,

What version of PHP are you running?

Line 327 in the code is a comparison of two classes, using the "instanceof"
operator, which was introduced in PHP 5
(http://uk2.php.net/manual/en/language.operators.type.php).

It sounds like you have PHP 4, which is not supported by NLG.

Andy.

Carlo Piccini wrote: 

Hello,

 

just installed NLG 1.0.2, but stuck with a blank page on hitting URL.

In apache error log I have:

 

[client 192.168.1.5] PHP Parse error:  parse error, unexpected T_STRING in
/usr/share/nagios/client/s3_client.php on line 327

 

Any advice for me?

Nagios 2.0

 

Thank you,

Carlo Piccini

!DSPAM:37,45e0cf26925177317654902! 

 





  _____  



 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
&p=sourceforge&CID=DEVDEV
 
!DSPAM:37,45e0cf26925177317654902!
  
 





  _____  



 
_______________________________________________
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
 
!DSPAM:37,45e0cf26925177317654902!
  






-- 
Andy Shellam
NetServe Support Team
 
the Mail Network
"an alternative in a standardised world"
 
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070426/9ecac435/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