Apache problem
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Apache problem
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apache problem
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
2. You likely need to install sysstat
Code: Select all
sudo apt-get sysstat
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Apache problem
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.
[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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apache problem
Sorry, I missed the install keyword
Code: Select all
sudo apt-get install sysstat
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Apache problem
Silly question, do I install this on Ubuntu, or nagios vm?
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Apache problem
I ran this on the ubuntu vm, still getting the same critical error
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apache problem
This was for the following error
What wizard are you running? What procedure did you follow to install the agent on this Ubuntu machine?
actually looking again the critical error looks like your NRPE config might not have the command you are calling specified.UNKNOWN: iostat not found or is not executable by the nagios user.
What wizard are you running? What procedure did you follow to install the agent on this Ubuntu machine?
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Apache problem
i used the ubuntu/debian agent installation instructions from the linux wizard.
Linux wizard
Linux wizard
-
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Apache problem
here is the command in nagios
check_nrpe!check_init_service!-a 'httpd'
check_nrpe!check_init_service!-a 'httpd'
Re: Apache problem
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:
Hope this helps.
Go to the Core Config Manager->Monitoring->Services->Config name filter: <your_Ubuntu_box> ->Apache Web Server->Modify->Common Settings tab - change:
Code: Select all
$ARG2$ = -a 'httpd'
Code: Select all
$ARG2$ = -a 'apache2'
Re: iostat
In order to install iostat on your client machine (Ubuntu box), run in terminal:
Code: Select all
sudo apt-get install sysstat
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'
Be sure to check out our Knowledgebase for helpful articles and solutions!