it didn't work with the aforementioned way, so I managed to fix it by using the following configuration:
notification_options = n
we can close the this post.
thanks.
Search found 8 matches
- Fri Apr 24, 2020 1:26 am
- Forum: Open Source Nagios Projects
- Topic: Disable notifications
- Replies: 4
- Views: 2029
- Wed Apr 15, 2020 3:34 am
- Forum: Open Source Nagios Projects
- Topic: Disable notifications
- Replies: 4
- Views: 2029
Disable notifications
Hello, I have disabled notifications for service/host (notifications_enabled = 0), but nagios still sends. Below is the configuration that I applied: define host { host_name test.example.com address test.example.com notifications_enabled 0 use linux-server check_command check_http_ register 1 } defi...
- Mon Feb 03, 2020 4:48 am
- Forum: Open Source Nagios Projects
- Topic: Manipulate HTTP response
- Replies: 1
- Views: 858
Manipulate HTTP response
Hello, I would like to manipulate the HTTP response that I get from a web serivce (JSON format): "state": "Unhealthy", "time": 500, "details": [ { "key": "One", "value": "Healthy", "time": 200 }, { "key&qu...
- Thu Oct 17, 2019 2:17 am
- Forum: Open Source Nagios Projects
- Topic: External URL/extra info
- Replies: 1
- Views: 522
External URL/extra info
Hello,
It's useful to have some embedded actions on each service, rather than searching on other areas. How can I embed an external URL or extra written information at the red box on the right top hand side (check attachment)? is it feasible?
thank you.
It's useful to have some embedded actions on each service, rather than searching on other areas. How can I embed an external URL or extra written information at the red box on the right top hand side (check attachment)? is it feasible?
thank you.
- Thu Oct 10, 2019 8:42 am
- Forum: Open Source Nagios Projects
- Topic: check_http regex
- Replies: 7
- Views: 3742
Re: check_http regex
scottwilkerson wrote:I'm not a master regex builder but something like this?
Code: Select all
--invert-regex -l -r '.*action.*c start.*c start.*/action.*'
Unfortunatelly, this regex doesn't get the right pattern, I mean that having more than once the pattern this cannot get the critical.
- Thu Oct 10, 2019 5:53 am
- Forum: Open Source Nagios Projects
- Topic: check_http regex
- Replies: 7
- Views: 3742
Re: check_http regex
Add --invert-regex to the command --invert-regex Return CRITICAL if found, OK if not I should rephraise it. The following pattern should be the OK pattern, which contains several regex ".*c start.*c start.*": <action src="abc" system="2222"> <param name="trackID&q...
- Wed Oct 09, 2019 1:17 am
- Forum: Open Source Nagios Projects
- Topic: check_http regex
- Replies: 7
- Views: 3742
Re: check_http regex
scottwilkerson wrote:This would do it. You need to -l to span multiple lines
Code: Select all
-l -r ".*c start.*c start.*"
how can I set up the check to alarm when it find multiple lines, i.e. more than once (.*c start.*c start.*)?
thank you.
- Tue Oct 08, 2019 3:25 pm
- Forum: Open Source Nagios Projects
- Topic: check_http regex
- Replies: 7
- Views: 3742
check_http regex
Hello, I am looking of how to embed the regular expression that will match a pattern which is multiple times addressed. In other words, this should find only when this pattern is found more than once. Below is an example of a web page (xml), which shows twice the "c start", so I would like...