Page 1 of 1
RE: Monitoring Servers
Posted: Thu Apr 18, 2013 9:31 am
by devilsguest
Hi,
If I want nagios to monitor about 20 servers is it necessary to install nagios NRPE on each and every server that needs to be monitored. Is there any other way can you please provide me a little precise explanation or any url that teaches steps to do it.
Re: RE: Monitoring Servers
Posted: Thu Apr 18, 2013 9:39 am
by slansing
NRPE is only one of the protocols you can use to monitor Windows/Nix servers with, if you do indeed want to use it here is a document which will answer just about any question you throw at it in terms of installation and configuration:
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
Re: RE: Monitoring Servers
Posted: Fri Apr 19, 2013 9:05 am
by devilsguest
Thanks for you reply. The book was really helpful and solved all my doubts. In the same way do you have any such url to deal with Map in my web UI because every time I click on Map it's giving me a error 404. Is that where I need to install nagios graph to see the Map GUI or do we have any other way? please explain.
Re: RE: Monitoring Servers
Posted: Fri Apr 19, 2013 1:01 pm
by slansing
Can you run the following right after you click on the "Map" link?
Code: Select all
tail /var/log/httpd/access_log
tail /var/log/httpd/error_log
And reply with what the output is.
Re: RE: Monitoring Servers
Posted: Fri Apr 19, 2013 1:10 pm
by devilsguest
access logs:
Code: Select all
[root@dm01 logs]# tail -f access_log
172.18.100.106 - nagiosadmin [19/Apr/2013:14:04:33 -0400] "GET /nagios/stylesheets/status.css HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:04:33 -0400] "GET /nagios/stylesheets/common.css HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:06:03 -0400] "GET /nagios/cgi-bin/status.cgi?servicegroup=all&style=overview HTTP/1.1" 200 5047
172.18.100.106 - nagiosadmin [19/Apr/2013:14:06:03 -0400] "GET /nagios/stylesheets/common.css HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:06:03 -0400] "GET /nagios/stylesheets/status.css HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:06:03 -0400] "GET /nagios/js/jquery-1.7.1.min.js HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:07:33 -0400] "GET /nagios/cgi-bin/status.cgi?servicegroup=all&style=overview HTTP/1.1" 200 5047
172.18.100.106 - nagiosadmin [19/Apr/2013:14:07:33 -0400] "GET /nagios/js/jquery-1.7.1.min.js HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:07:33 -0400] "GET /nagios/stylesheets/common.css HTTP/1.1" 304 -
172.18.100.106 - nagiosadmin [19/Apr/2013:14:07:33 -0400] "GET /nagios/stylesheets/status.css HTTP/1.1" 304 -
errorlogs:
Code: Select all
[Thu Apr 18 15:36:09.126917 2013] [cgid:error] [pid 12591:tid 3086083776] AH01239: cgid daemon process died, restarting
[Thu Apr 18 15:37:10.142601 2013] [cgid:error] [pid 12591:tid 3086083776] AH01239: cgid daemon process died, restarting
[Thu Apr 18 15:37:34.167085 2013] [cgid:error] [pid 12591:tid 3086083776] AH01239: cgid daemon process died, restarting
[Thu Apr 18 15:38:50.211176 2013] [cgid:error] [pid 12591:tid 3086083776] AH01239: cgid daemon process died, restarting
[Thu Apr 18 15:39:21.668582 2013] [mpm_event:notice] [pid 12591:tid 3086083776] AH00494: SIGHUP received. Attempting to restart
[Thu Apr 18 15:39:21.765964 2013] [mpm_event:notice] [pid 12591:tid 3086083776] AH00489: Apache/2.4.4 (Unix) PHP/5.4.13 configured -- resuming normal operations
[Thu Apr 18 15:39:21.766003 2013] [core:notice] [pid 12591:tid 3086083776] AH00094: Command line: '/usr/local/apache2/bin/httpd'
[Thu Apr 18 15:48:05.293746 2013] [cgid:error] [pid 16254:tid 2999405488] [client 172.18.100.42:53766] AH01264: script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://dm01.qa.tfanet.org:81/nagios/side.php
[Thu Apr 18 15:57:43.531791 2013] [cgid:error] [pid 15340:tid 3009895344] [client 172.18.100.42:62760] AH01264: script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://dm01.qa.tfanet.org:81/nagios/side.php
[Fri Apr 19 08:58:22.474452 2013] [cgid:error] [pid 15340:tid 2946956208] [client 172.18.100.106:49454] AH01264: script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://dm01.qa.tfanet.org:81/nagios/side.php
Re: RE: Monitoring Servers
Posted: Fri Apr 19, 2013 3:18 pm
by scottwilkerson
now please run
Code: Select all
ls -l /usr/local/nagios/sbin/statusmap.cgi
Re: RE: Monitoring Servers
Posted: Fri Apr 19, 2013 3:38 pm
by devilsguest
no such file or directory found....but there is file status.cgi,stauswml.cgi,statuswrl.cgi files in the directory
Re: RE: Monitoring Servers
Posted: Mon Apr 22, 2013 10:31 am
by abrist
you are missing at least one of the cgis. Is it somewhere else?
Re: RE: Monitoring Servers
Posted: Mon Apr 22, 2013 10:34 am
by lmiltchev
If your nagios instance is on CentOS, you can try running the following command:
Then go in your nagios source folder and run:
Code: Select all
./configure
make
make-cgis
make install-cgis
Hope this helps.