sure!ssax wrote:mike-stokkel, that's great news, is it ok if we mark this as resolved and lock the topic?
Search found 5 matches
- Mon Feb 23, 2015 5:19 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 3.2.0 apache critical status
- Replies: 9
- Views: 5516
Re: Nagios 3.2.0 apache critical status
- Fri Feb 20, 2015 3:47 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 3.2.0 apache critical status
- Replies: 9
- Views: 5516
Re: Nagios 3.2.0 apache critical status
How about changing the script to the following? #!/bin/bash #Check if apache2 is running apache=$(service apache2 status) if [[ $apache == *"running"* ]];then echo "$apache" exit 0 else echo "$apache" exit 2 fi im getting the same error apache CRITICAL 2015-02-20 09:39...
- Thu Feb 19, 2015 3:52 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 3.2.0 apache critical status
- Replies: 9
- Views: 5516
Re: Nagios 3.2.0 apache critical status
That would be the issue. The string your script is checking for is: Apache is running Yet the command it runs outputs the following: apache2 is running Change you script, specifically the $running variable: running="apache2 is running" Save out and try running the check again. Nope, it st...
- Wed Feb 18, 2015 5:49 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 3.2.0 apache critical status
- Replies: 9
- Views: 5516
Re: Nagios 3.2.0 apache critical status
* apache2 is runningabrist wrote:My guess is that it is not matching the string. Case issues maybe?
Can you post the output of:Code: Select all
service apache2 status
- Tue Feb 17, 2015 4:32 am
- Forum: Open Source Nagios Projects
- Topic: Nagios 3.2.0 apache critical status
- Replies: 9
- Views: 5516
Nagios 3.2.0 apache critical status
hi, At the moment im working with Nagios 3.2.0 and i have check_apache plugin running on several servers. But there is something weird going on, nagios is telling me that the apache is running but it is in critical state. I get this problem on the servers that are working on Ubuntu 12.04/14.04, the ...