RE: Monitoring Servers

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

RE: Monitoring Servers

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: RE: Monitoring Servers

Post 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
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Monitoring Servers

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: RE: Monitoring Servers

Post 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.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Monitoring Servers

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: RE: Monitoring Servers

Post by scottwilkerson »

now please run

Code: Select all

ls -l /usr/local/nagios/sbin/statusmap.cgi
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: RE: Monitoring Servers

Post by devilsguest »

no such file or directory found....but there is file status.cgi,stauswml.cgi,statuswrl.cgi files in the directory
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RE: Monitoring Servers

Post by abrist »

you are missing at least one of the cgis. Is it somewhere else?

Code: Select all

find / -name statusmap.cgi
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: RE: Monitoring Servers

Post by lmiltchev »

If your nagios instance is on CentOS, you can try running the following command:

Code: Select all

yum install gd gd-devel -y
Then go in your nagios source folder and run:

Code: Select all

./configure
make
make-cgis
make install-cgis
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked