PDA

View Full Version : no host or service details


soumna
22nd August 2005, 10:22
hi,
i have got my oreon interface up.but even after adding some hosts and some services my host details and service details page does not show either any hosts or services.iam new to oreon.plz help.
another thing when i clickon status and options it shows think has generate the configuration files.
soumya

rom
22nd August 2005, 10:35
Hi,

After add everything you want in the configuration page you have to go in Cofiguration->Apply and generate the file. After you have to start Nagios again.

Hope you have correctly fill the fields in Options-> Nagios.cfg, resources.cfg and general.

soumna
22nd August 2005, 10:41
when i click on generate the files i get a warning
Warning: fopen(./nagios_cfg/misccommands.cfg): failed to open stream: Permission denied in /usr/local/oreon/include/export/functions.php on line 64
can t open ./nagios_cfg/misccommands.cfg

how do i get rid of this?

rom
22nd August 2005, 10:55
You haven't the good law on this directory -> 775

soumna
22nd August 2005, 12:33
i didnt get what u meant.can u explain

rom
22nd August 2005, 12:38
Somebody had the same problem as you.

First are you with PHP5 ? Because we don't make test on it and we know taht there's some bugs.

Second, it may be a problem with SELINUX
You have to disabled it in /etc/sysconfig/ vi selinux

This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

soumna
22nd August 2005, 12:56
we are usig php4.3 version and SELinux is disabled.

julio
22nd August 2005, 13:21
go on /usr/local/oreon/nagios_cfg

and do chown apache:apache *; chown apache:apache .

do the same in /usr/local/nagios/etc/

it's a law right problem I think.

soumna
22nd August 2005, 14:15
well ya it was the ownership problem.now i am able to generate the configuration files but the nagios which was working fine till now is showing errors.after i correct all the errors the nagios is working.but if i click generate the configuration files it goes back to the old configuration.how do i rectify this?

soumna
22nd August 2005, 15:58
well now i am able to generate my configuration files now and my nagios is also working.when i changed the version of nagios from 2.03 to 1.2 no errors are show.it is showing that no errors were encountered during preflight check.
but my monitoring page is still not showing anything.when i click on view service dtails for this host from reporting i am getting a warning:Warning: Invalid argument supplied for foreach() in /usr/local/oreon/include/status/service.php on line 115
why?

julio
22nd August 2005, 16:21
ha ok ! oreon don't work with nagios 2. Only with nagios 1.x :D

Oh strange this error, I'm look for and and I'll let you know.

see you