Page 1 of 2
Apache problem
Posted: Thu May 24, 2012 10:38 am
by benningtonr
I have Ubuntu 12, with Apache installed and running, i also installed the nagios update
i used the Linux wizard, and i have a couple issue
1. Apache Web Server Critical 41m 3s 5/5 2012-05-24 11:35:10 NRPE: Unable to read output
2. CPU Stats Unknown 40m 34s 5/5 2012-05-24 11:35:39 UNKNOWN: iostat not found or is not executable by the nagios user.
Thanks for all the help
Re: Apache problem
Posted: Thu May 24, 2012 1:25 pm
by scottwilkerson
1. It is possible apache is running under a different name than was specified in the wizard by default.
2. You likely need to install sysstat
Re: Apache problem
Posted: Thu May 24, 2012 1:38 pm
by benningtonr
ronb@ubuntu:/$ sudo apt-get sysstat
[sudo] password for ronb:
E: Invalid operation sysstat
ronb@ubuntu:/$ apt-get sysstat
E: Invalid operation sysstat
ronb@ubuntu:/$ sudo apt-get sysstat
E: Invalid operation sysstat
ronb@ubuntu:/$ sudo apt-get sysstat
E: Invalid operation sysstat
ronb@ubuntu:/$
That command does not run.
This is on a clean Ubuntu 12 install as a vm, just for testing Nagios.
Re: Apache problem
Posted: Thu May 24, 2012 1:42 pm
by scottwilkerson
Sorry, I missed the install keyword
Re: Apache problem
Posted: Thu May 24, 2012 2:02 pm
by benningtonr
Silly question, do I install this on Ubuntu, or nagios vm?
Re: Apache problem
Posted: Thu May 24, 2012 2:06 pm
by benningtonr
I ran this on the ubuntu vm, still getting the same critical error
Re: Apache problem
Posted: Thu May 24, 2012 2:09 pm
by scottwilkerson
This was for the following error
UNKNOWN: iostat not found or is not executable by the nagios user.
actually looking again the critical error looks like your NRPE config might not have the command you are calling specified.
What wizard are you running? What procedure did you follow to install the agent on this Ubuntu machine?
Re: Apache problem
Posted: Thu May 24, 2012 2:17 pm
by benningtonr
i used the ubuntu/debian agent installation instructions from the linux wizard.
Linux wizard
Re: Apache problem
Posted: Thu May 24, 2012 2:21 pm
by benningtonr
here is the command in nagios
check_nrpe!check_init_service!-a 'httpd'
Re: Apache problem
Posted: Thu May 24, 2012 3:15 pm
by lmiltchev
Re: Apache issue
Go to the Core Config Manager->Monitoring->Services->Config name filter: <your_Ubuntu_box> ->Apache Web Server->Modify->Common Settings tab - change:
to
Click on "Save" and "Apply Configuration".
Re: iostat
In order to install iostat on your client machine (Ubuntu box), run in terminal:
Run a test check - run the following commands in a terminal on your Nagios server:
Code: Select all
cd /usr/local/nagios/libexec
./check_nrpe -H <IP_address_of_your_Ubuntu_machine> -t 30 -c check_cpu_stats -a '-w 85 -c 95'
Hope this helps.