View Full Version : Hosts not shown under Home nor Monitoring
chefino
6th March 2007, 11:23
Hi guys,
I tried to setup Oreon 1.3.3 on Debian Sarge, w/ Nagios 2.6 (apt). All I can do is to add users, contact groups, hosts and so on, but I can never get to see them (even with event handlers, checks enabled, all the stuff) under Home and Monitoring.
Even check_host_alive setup doesn't show any info on the pie-charts under Reporting tab. What am I doing wrong? Nagios itself runs like a charm.
I have php5-gd installed, only the Home table of hosts/services is empty, regardless of how much hosts I add to Configuration/Hosts.
Any guide/help is very appreciated :rolleyes:
You can see some images here:
http://www.nod.sk/~vartik/oreon/Image-001.png
http://www.nod.sk/~vartik/oreon/Image-002.png
http://www.nod.sk/~vartik/oreon/Image-003.png
thanx,
Brano
xspoon
6th March 2007, 11:42
Hi,
there must be something wrong when you generate the nagios conf from oreon.
In the french GUI it is like the image, try to export with these settings and see what goes wrong .
xsp
chefino
6th March 2007, 16:58
Hi,
there must be something wrong when you generate the nagios conf from oreon.
In the french GUI it is like the image, try to export with these settings and see what goes wrong .
xsp
Ok, I tried that. Had some errors so I had to adjust some more options under:
Configuration -> Nagios -> Nagios CFG and CGI CFG.
Then the Generate -> Export process went correctly (nagios-1.png)
However, I still don't see my host on Home screen. What is more, the http://localhost/nagios stopped working correctly after clicking the Export button (nagios-2.png)
xspoon
6th March 2007, 17:38
the nagios debug doesn't show up in your 1st screenshot,
can you run it alone in the oreon gui or else in command line:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
chefino
6th March 2007, 17:46
the nagios debug doesn't show up in your 1st screenshot,
can you run it alone in the oreon gui or else in command line:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
here you go:
http://www.nod.sk/~vartik/oreon/nagios-1.png
http://www.nod.sk/~vartik/oreon/nagios-2.png
xspoon
6th March 2007, 17:51
OK , but what I meant was running Export with all the options to No except for "run nagios denug (-v)" set to yes .
chefino
6th March 2007, 18:23
OK , but what I meant was running Export with all the options to No except for "run nagios denug (-v)" set to yes .
Well, if I run it like that (via web, clicking export) it shows no problem. Only when I click "move export files" to "yes" I get some permission error:
http://www.nod.sk/~vartik/oreon/nagios-3.png
xspoon
6th March 2007, 18:33
maybe check permissions on to the .../nagios2/etc directory
should look like this ( wherre www-data is the apache user )
drwxrwsr-x 2 www-data nagios 4096 2007-03-01 13:40 etc
chefino
6th March 2007, 20:33
maybe check permissions on to the .../nagios2/etc directory
should look like this ( wherre www-data is the apache user )
drwxrwsr-x 2 www-data nagios 4096 2007-03-01 13:40 etc
no change :-( still no hosts displayed there. In fact, I dont see the pie-charts, all I see is pending status.
Is there any English documentation for this project? Maybe I am doing something wrong... :-\
xspoon
7th March 2007, 11:02
maybe an issue with the nagios2 init script described here
http://bugs.oreon-project.org/?do=details&id=294
try replacing the file /usr/share/oreon/www/include/configuration/configGenerate/formGenerateFiles.php by one found on the SVN version 1.3.4
http://www.oreon-project.org/developpement-oreon---svn-repository.html
or modify directly the sudo commands in the file
a nagios debug should look like that prior to anything working correctly
Nagios 2.7
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-19-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 217 services.
Checking hosts...
Checked 89 hosts.
Checking host groups...
Checked 14 host groups.
Checking service groups...
Checked 1 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 65 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 89 extended host info definitions.
Checking extended service info definitions...
Checked 217 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
chefino
2nd April 2007, 16:27
maybe an issue with the nagios2 init script described here...
Hi there, I installed Oreon 1.4; nagios debug passes with no error, but I still cant see my host under "Home" tab, nor under "Monitoring".
I can't see what I am doing wrong. I installed Nagios 2.6.x with Oreon 1.4, following the flash demo on the oreon website.
chefino
4th April 2007, 10:45
Anybody? Please. We want to implement Oreon in our company, I have not found any more modern and crisp interface to Nagios so far.
Is there anything at least close to Oreon? If I can't get it running, I will have to implement some other interface.
xspoon
4th April 2007, 11:28
Did you create a test host and a service associated with it then generated the config via Oreon>configuration>nagios ?
Can you see it appear at the nagios level: @yourIP/nagios/ ?
james.t
4th April 2007, 22:26
yeah it's definately a permissions prob
just do the following
chown -r www-data /nagios2/etc
chgrp -r nagios /nagios2/etc
should change everything and you shouldn't see a KO message anymore.
KO= cannot write to that file
OK = file is ok to write to
chefino
5th April 2007, 09:16
yeah it's definately a permissions prob
just do the following
chown -r www-data /nagios2/etc
chgrp -r nagios /nagios2/etc
should change everything and you shouldn't see a KO message anymore.
KO= cannot write to that file
OK = file is ok to write to
Hi there!
Thanx for the guide. I have set those permissions on /etc/nagios2 as I cannot find any /nagios2/etc directory. My configuration is
Debian Etch (latest updates)
Oreon 1.4
Nagios 2.6-2+etch1
- these packages installed:
# aptitude search nagios | grep ^i
i A nagios-images - Collection of images and icons for the nag
i A nagios-plugins - Plugins for the nagios network monitoring
i A nagios-plugins-basic - Plugins for the nagios network monitoring
i A nagios-plugins-standard - Plugins for the nagios network monitoring
i nagios2 - A host/service/network monitoring and mana
i A nagios2-common - support files for nagios2
i A nagios2-doc - documentation for nagios2
and if I do slocate, this is the output:
# slocate nagios | grep etc | grep -v .bkp/ | grep -v /root
/etc/rc6.d/K18nagios2
/etc/default/nagios2
/etc/rc1.d/K18nagios2
/etc/rc5.d/S30nagios2
/etc/rc2.d/S30nagios2
/etc/rc4.d/S30nagios2
/etc/nagios-plugins
/etc/nagios-plugins/config
/etc/nagios-plugins/config/netware.cfg
/etc/nagios-plugins/config/mail.cfg
/etc/nagios-plugins/config/fping.cfg
/etc/nagios-plugins/config/ifstatus.cfg
/etc/nagios-plugins/config/users.cfg
/etc/nagios-plugins/config/rpc-nfs.cfg
/etc/nagios-plugins/config/procs.cfg
/etc/nagios-plugins/config/mrtg.cfg
/etc/nagios-plugins/config/news.cfg
/etc/nagios-plugins/config/tcp_udp.cfg
/etc/nagios-plugins/config/vsz.cfg
/etc/nagios-plugins/config/flexlm.cfg
/etc/nagios-plugins/config/ssh.cfg
/etc/nagios-plugins/config/dns.cfg
/etc/nagios-plugins/config/disk-smb.cfg
/etc/nagios-plugins/config/load.cfg
/etc/nagios-plugins/config/breeze.cfg
/etc/nagios-plugins/config/apt.cfg
/etc/nagios-plugins/config/mysql.cfg
/etc/nagios-plugins/config/dummy.cfg
/etc/nagios-plugins/config/ldap.cfg
/etc/nagios-plugins/config/pgsql.cfg
/etc/nagios-plugins/config/ftp.cfg
/etc/nagios-plugins/config/dhcp.cfg
/etc/nagios-plugins/config/http.cfg
/etc/nagios-plugins/config/hppjd.cfg
/etc/nagios-plugins/config/games.cfg
/etc/nagios-plugins/config/snmp.cfg
/etc/nagios-plugins/config/telnet.cfg
/etc/nagios-plugins/config/disk.cfg
/etc/nagios-plugins/config/real.cfg
/etc/nagios-plugins/config/nt.cfg
/etc/nagios-plugins/config/ping.cfg
/etc/nagios-plugins/config/radius.cfg
/etc/nagios-plugins/config/ntp.cfg
/etc/nagios2.bkp
/etc/rc3.d/S30nagios2
/etc/nagios2
/etc/nagios2/resource.cfg
/etc/nagios2/apache2.conf
/etc/nagios2/commands.cfg
/etc/nagios2/htpasswd.users
/etc/nagios2/cgi.cfg
/etc/nagios2/stylesheets
/etc/nagios2/nagios.cfg
/etc/nagios2/conf.d
/etc/nagios2/conf.d/extinfo_nagios2.cfg
/etc/nagios2/conf.d/contacts_nagios2.cfg
/etc/nagios2/conf.d/generic-service_nagios2.cfg
/etc/nagios2/conf.d/services_nagios2.cfg
/etc/nagios2/conf.d/localhost_nagios2.cfg
/etc/nagios2/conf.d/timeperiods_nagios2.cfg
/etc/nagios2/conf.d/host-gateway_nagios2.cfg
/etc/nagios2/conf.d/generic-host_nagios2.cfg
/etc/nagios2/conf.d/hostgroups_nagios2.cfg
/etc/logrotate.d/nagios2-common
/etc/apache2/conf.d/nagios2.conf
/etc/init.d/nagios2
/etc/rc0.d/K18nagios2
/var/cache/apt/archives/nagios2_2.6-2+etch1_i386.deb
/var/cache/apt/archives/nagios2-doc_2.6-2+etch1_all.deb
/var/cache/apt/archives/nagios2-common_2.6-2+etch1_all.deb
I have tried to set the respective permissions on /etc/nagios* but no change, still get the KO messages when generating config.
I found some files under /usr/local/oreon/filesGeneration/nagiosCFG/, changed the permissions there also, but it didn't help at all. Can you guide me a bit more please?
I am most grateful,
Brano
chefino
5th April 2007, 09:32
More info, I played with the Configuration -> Nagios -> Nagios.cfg settings, corrected some paths to Nagios files and got the CFG movement messages to OK (see this link please (http://www.nod.sk/~vartik/oreon/oreon1.png)).
However, my host still doesn't show up under Home nor Monitoring. I can select the host under Reporting, but I only get PENDIND 100% status for quite some time now.
What should I try next?
xspoon
5th April 2007, 13:49
please , can you show us a nagios debug working properly on your machine, here is an example http://i7.tinypic.com/34fzf36.jpg
james.t
5th April 2007, 18:49
yeah seriously i would go to the shell and run a nagios debug manually sometimes oreon won't send back an error with debug running
goto the shell and do the following from shell
shell> nagios -v /etc/nagios2/nagios.cfg
that should let nagios give you a debug message saying for instance if your host has a conflict or whatever. in my experience if there's duplicate entries with hosts in hostgroups oreon for instance won't throw back an error.
chefino
11th April 2007, 12:09
yeah seriously i would go to the shell and run a nagios debug manually sometimes oreon won't send back an error with debug running
goto the shell and do the following from shell
shell> nagios -v /etc/nagios2/nagios.cfg
that should let nagios give you a debug message saying for instance if your host has a conflict or whatever. in my experience if there's duplicate entries with hosts in hostgroups oreon for instance won't throw back an error.
Ok, through the debug I managed to fix some further permission errors and correct some paths to nagios files (also some service check periods for the main contact which were previously not defined). Now I managed to get a decent error-free output. However, still no hosts/services displayed on the Home and Monitoring. Further help/guide appreciated!
see here: http://www.nod.sk/~vartik/oreon/oreon2.png
thanks,
Brano
xspoon
11th April 2007, 12:33
see here: http://www.nod.sk/~vartik/oreon/oreon2.png
nice to hear that you fixed some issues,
now maybe one thing missing: try with restart nagios = Yes
chefino
11th April 2007, 14:28
nice to hear that you fixed some issues,
now maybe one thing missing: try with restart nagios = Yes
Unfortunatelly it didn't help. I even restarted the whole server, just in case.
However, from some point of these little changes even nagios site itself stopped working: http://www.nod.sk/~vartik/oreon/nagios01.png
Only some of the options on the left NAGIOS panel do work; eg. Alert History, Alert Summary, Notifications. But I don't want to use nagios at all, as I understood that Oreon takes care of everything.
Maybe one more clue. When I try to do:
# /etc/init.d/nagios2 start
Starting nagios2 monitoring daemon: nagios2unable to determine nagios_check_command from /etc/nagios2/cgi.cfg!...failed.
When I manually change /etc/nagios2/cgi.cfg and add a lice to nagios_check plugin, it doesn't help Oreon at all. What's more, when I export the config from Oreon, it also overwrites /etc/nagios2/cgi.cfg, so I doubt it is of any use.
xspoon
11th April 2007, 14:40
you can edit cgi.cfg via Oreon > Configuration > Nagios > Cgi.cfg
make sure that all the path are valid for you
idem check the paths in the nagios.cfg ( dont forget to activate the last imported version) and the paths on the page Option > Oreon > general options > Nagios.
hope this helps
chefino
11th April 2007, 15:15
you can edit cgi.cfg via Oreon > Configuration > Nagios > Cgi.cfg
make sure that all the path are valid for you
idem check the paths in the nagios.cfg ( dont forget to activate the last imported version) and the paths on the page Option > Oreon > general options > Nagios.
hope this helps
Can't seem to see what is wrong. Everything looks OK.
But it isnt: http://www.nod.sk/~vartik/oreon/oreon3.png
chefino
11th April 2007, 16:45
More debug info. From some point of Oreon-tuning, Nagios stopped to work. That is probably the main cause of the problems. However, I cannot get it running even after 2 hours of googling:
# nagios2 /etc/nagios2/nagios.cfg
Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
License: GPL
Nagios 2.6 starting... (PID=16090)
Warning: Host 'Meta_Module' has no services associated with it!
Error: p1.pl file required for embedded Perl interpreter is missing!
Bailing out due to errors encountered while initializing the embedded Perl interpreter. (PID=16090)
I cannot successfully find any solution to that error. The file p1.pl exists and resides here: /usr/lib/nagios2/p1.pl
Any help is truly appreciated.
chefino
11th April 2007, 17:23
Ok I finally got it working ;-)
I needed to specifically define p1.pl path in Oreon interface. After that, everything seems to be running just fine.
Ok then, I am off to configuration :-)
Thank you all very much for your endless help.
brano