Home     About Us     RSSRSS

Archives: Linux

Nagios Core Error: Internal Server Error

June 1, 2013 by @HKw@! | No Comments | Filed in centos, Linux, Nagios, Open Source

nagioscoreI successfully install Nagios Core Server. I manged to use the browser and login to http://SERVER_IP_ADRESS/nagios/. Besides, i manged to view the Nagios Core Main Page, but when i click on subpage like host, services, the web page show me the following error:-

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.15 (CentOS) Server at 192.168.201.100 Port 80

(more…)

Error while Compiling nagios-plugins-1.4.16

May 31, 2013 by @HKw@! | 1 Comment | Filed in centos, Linux, Nagios, Open Source

nagioscoreI was installing Nagios Core Server. I facing following error while i compiling nagios-plugin-1.4.16. I execute make command, following error show on the screen

 check_http.c:312:9: error: ‘ssl_version’ undeclared (first use in this function)
....
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/home/nicadmin/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nicadmin/nagios-plugins-1.4.16'
make: *** [all] Error 2

From the error above , it look like missing some SSL component. I trying to do cross check existing nagios server, i notice that openssl-devel package is require to install.
So i try to enter following command to install openssl-devel package

 yum install openssl-devel

After install the openssl-devel package, i try to complile nagios-plugin again and i successfully compile it. ;-)

 

UNKNOWN: iostat not found or is not executable by the nagios user.

May 30, 2013 by @HKw@! | 1 Comment | Filed in Linux, Nagios, Ubuntu

When i setup nagios monitoring for my ubuntu server, i noticed that there is an unknown status on CPU stats services.

nagios

I try to run check_cpu_stats command, i still get the same error also.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# sh check_cpu_stats.sh
UNKNOWN: iostat not found or is not executable by the nagios user.

From the error show, it seems like iostat not install on the Server. I try to install sysstat to see whether it work or not.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# apt-get install sysstat

After install, i tried to execute check_cpu_stats command. It work fine.

root@ADC-152-LIN-01:/usr/lib/nagios/plugins# sh check_cpu_stats.sh
CPU STATISTICS OK: user=0.00% system=0.00% iowait=0.00% idle=100.00% | user=0.0% system=0.0% iowait=0.0%;30;100 idle=100.00%

Please do share with me if you have any others alternative way to solve this problem. :-)