Hi again...
... and that's the second HowTo:
HowTo - Setup Nagios.
It describes,
how to setup the nagios webinterface under ispCP (that's causing some problems because it has to be run under /var/www.
The configuration of nagios is
not covered by this HowTo; but it is covered very well by the default nagios setup and the
nagios documentation
As with my other HowTo: Of course, there are mistakes in this HowTo - but I didn't found them already

so if you do, please tell me...
Greetings
FeG
FeG Wrote:Hi again...
... and that's the second HowTo:
HowTo - Setup Nagios.
It describes, how to setup the nagios webinterface under ispCP (that's causing some problems because it has to be run under /var/www.
The configuration of nagios is not covered by this HowTo; but it is covered very well by the default nagios setup and the nagios documentation
As with my other HowTo: Of course, there are mistakes in this HowTo - but I didn't found them already
so if you do, please tell me...
Greetings
FeG
Not working in my ispcp this HowTo
my verios is -> ispCP Omega 1.0.0 RC2c
Hi,
I am running RC2c, too...
I think I've forgotten something, test this please:
In
/etc/nagios2/cgi.cfg, change these values as shown below:
Code:
physical_html_path=/var/www/nagios/htdocs
url_html_path=/
Does this solve the problem?
If not, tell me what error you get..
Greetings
FeG
Edit:
Changed this in the HowTo... hope, that's all I forgot.
Ok thanks
Now .. i need add entry nagios in my DNS(bind) ?
ex:
nagios CNAME domain.com.br.
i have a new erro : )
In nagios, i get same error in all options, cgi configured (www-data/www-data), all inside cgi-bin with permissions
Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).
total 24K
drwxr-xr-x 5 www-data www-data 4,0K 2007-10-04 09:54 .
drwxrwx--- 10 vu2003 www-data 4,0K 2007-10-04 09:39 ..
drwxr-xr-x 3 www-data www-data 4,0K 2007-10-04 10:21 cgi-bin
-rw-r--r-- 1 vu2003 vu2003 211 2007-10-04 14:57 .htaccess
drwxr-xr-x 8 www-data www-data 4,0K 2007-10-04 09:45 htdocs
drwxrwx--- 2 www-data www-data 4,0K 2007-10-04 09:39 phptmp
Hi keffer,
as you've already quoted:
keffer Wrote: 1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).
It would be helpful, if you try out these suggestions:
1. Have a look at the configuration files...
Code:
nagios2 -v /etc/nagios2/nagios.cfg
2. Try to open nagios so that the error appears and then look into:
Code:
tail /var/log/nagios2/nagios.log
3. Is the nagios daemon running?
Code:
ps axxfu | grep nagios
If you don't find a solution this way, post the tail of nagios.log here...
Greetings,
FeG
FeG Wrote:Hi keffer,
as you've already quoted:
keffer Wrote: 1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).
It would be helpful, if you try out these suggestions:
1. Have a look at the configuration files...
Code:
nagios2 -v /etc/nagios2/nagios.cfg
2. Try to open nagios so that the error appears and then look into:
Code:
tail /var/log/nagios2/nagios.log
3. Is the nagios daemon running?
Code:
ps axxfu | grep nagios
If you don't find a solution this way, post the tail of nagios.log here...
Greetings,
FeG
in nagios2 -v /etc/nagios2/nagios.cfg
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
in tail /var/log/nagios2/nagios.log
:~# tail /var/log/nagios2/nagios.log
[1191785990] Auto-save of retention data completed successfully.
[1191789590] Auto-save of retention data completed successfully.
[1191793190] Auto-save of retention data completed successfully.
[1191796790] Auto-save of retention data completed successfully.
[1191800390] Auto-save of retention data completed successfully.
[1191800496] Caught SIGTERM, shutting down...
[1191800496] Successfully shutdown... (PID=28725)
[1191800496] Nagios 2.6 starting... (PID=588)
[1191800496] LOG VERSION: 2.0
[1191800496] Finished daemonizing... (New PID=589)
in ps axxfu | grep nagios
:~# ps axxfu | grep nagios
root 943 0.0 0.0 3084 676 pts/0 S+ 18:46 0:00 \_ grep nagios
nagios 589 0.0 0.1 13928 1548 ? SNsl 18:41 0:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
FeG Wrote:Hi keffer,
as you've already quoted:
keffer Wrote: 1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).
It would be helpful, if you try out these suggestions:
1. Have a look at the configuration files...
Code:
nagios2 -v /etc/nagios2/nagios.cfg
2. Try to open nagios so that the error appears and then look into:
Code:
tail /var/log/nagios2/nagios.log
3. Is the nagios daemon running?
Code:
ps axxfu | grep nagios
If you don't find a solution this way, post the tail of nagios.log here...
Greetings,
FeG
in nagios2 -v /etc/nagios2/nagios.cfg
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
in tail /var/log/nagios2/nagios.log after restart service
:~# tail /var/log/nagios2/nagios.log
[1191785990] Auto-save of retention data completed successfully.
[1191789590] Auto-save of retention data completed successfully.
[1191793190] Auto-save of retention data completed successfully.
[1191796790] Auto-save of retention data completed successfully.
[1191800390] Auto-save of retention data completed successfully.
[1191800496] Caught SIGTERM, shutting down...
[1191800496] Successfully shutdown... (PID=28725)
[1191800496] Nagios 2.6 starting... (PID=588)
[1191800496] LOG VERSION: 2.0
[1191800496] Finished daemonizing... (New PID=589)
in ps axxfu | grep nagios
:~# ps axxfu | grep nagios
root 943 0.0 0.0 3084 676 pts/0 S+ 18:46 0:00 \_ grep nagios
nagios 589 0.0 0.1 13928 1548 ? SNsl 18:41 0:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
Hi,
keffer Wrote:in tail /var/log/nagios2/nagios.log after restart service
...
Have you opened the nagios-site after copying this logfile? Because normally, nagios
should say something about that.. well, should
... but at the moment I've no idea what this could be :/
Greetings
FeG
Hello , i have a problem with nagios.
Quote:ns1:~# tail /var/log/nagios2/nagios.log
[1227298453] Auto-save of retention data completed successfully.
[1227302053] Auto-save of retention data completed successfully.
[1227304170] Caught SIGTERM, shutting down...
[1227304170] Successfully shutdown... (PID=2879)
[1227304183] Nagios 2.6 starting... (PID=21415)
[1227304183] LOG VERSION: 2.0
[1227304183] Finished daemonizing... (New PID=21416)
[1227304185] Caught SIGHUP, restarting...
[1227304185] Nagios 2.6 starting... (PID=21416)
[1227304185] LOG VERSION: 2.0
And
Quote: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
But ! I can access to nagios.mydomaine.com :s
I have reboot my server and regenerate ispcp files but nothing change
I have check 3times , i have do all in the how to.
Could you help me !

Best regards,
Quentin