I installed a new plugin: https://exchange.nagios.org/directory/P ... 29/details
I can run the command on the command line:
[root@usawexx011 ~]# /usr/local/nagios/libexec/check_apachestatus_auto.pl -H 10.x.x.x -w 40 -c 20 -U statususer -P mypass
APACHE OK - 0.405 sec. response time, Busy/Idle 8/15, open 233/256, ReqPerSec 0.1, BytesPerReq 0, BytesPerSec 0|Idle=15 Busy=8 OpenSlots=233 Slots=256 Starting=0 Reading=7 Sending=1 Keepalive=0 DNS=0 Closing=0 Logging=0 Finishing=0 ReqPerSec=0.055556 BytesPerReq=0 BytesPerSec=0.000000 Accesses=1[root@usawexx011 ~]#
[root@usawexx011 ~]# ls -al /usr/local/nagios/libexec/check_apachestatus_auto.pl
-rwxrwxr-x 1 nagios nagios 11096 Aug 12 21:11 /usr/local/nagios/libexec/check_apachestatus_auto.pl
OK...
So, I went to add my first test in, and configured it, ran "test check command", and got this:
Code: Select all
Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_apachestatus_auto.pl -H 10.x.x.x -w 40 -c 20 -U statususer -P mypass
OUTPUT:
Cool.
Now...onto the next server I want to check. Performed the same steps, got the same test result, but this time, for this host, in the services window, the status is red, and says:
Code: Select all
(No output on stdout) stderr:
I don't know where to go from here. Can anyone offer some help?
CentOS 6.5 x86_64
Manual Install
Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2014R1.0
usawepvl011.xxx.xxx.com 2.6.32-431.11.2.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
Server Name: nagios.xxx.com
Server Address: 10.x.x.x
Server Port: 443
Date/Time
PHP Timezone: America/Chicago
PHP Time: Thu, 20 Aug 2015 13:51:32 -0500
System Time: Thu, 20 Aug 2015 13:51:32 -0500
Nagios XI Data
License ends in: MTSVNN
nagios (pid 22992) is running...
NPCD running (pid 1379).
ndo2db (pid 1442) is running...
CPU Load 15: 7.45
Total Hosts: 112
Total Services: 1632
Function 'get_base_uri' returns: https://nagios.xxx.com/nagiosxi/
Function 'get_base_url' returns: https://nagios.xxx.com/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://nagios.xxx.com/nagiosxi/include ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.031 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.024 ms
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 0.024/0.027/0.031/0.006 ms
Test wget To locahost
WGET From URL: http://localhost/nagiosql/index.php
Running:
/usr/bin/wget http://localhost/nagiosql/index.php
--2015-08-20 13:51:35-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: "/usr/local/nagiosxi/tmp/nagiosql_index.tmp"
0K ..... 100% 299M=0s
2015-08-20 13:51:35 (299 MB/s) - "/usr/local/nagiosxi/tmp/nagiosql_index.tmp" saved [5259/5259]