Search found 13 matches

by lord_hypnos
Wed Aug 21, 2013 3:24 am
Forum: Nagios XI
Topic: Event handler
Replies: 5
Views: 1276

Re: Event handler

and i used it ;) Also i can run this code via ./reset_tomcat.sh Can you run it as the "nagios" user though? ls -la /usr/local/nagios/libexec/reset_tomcat.sh I have only root account at this moment. And i ran this script as root. Now that you have logging setup, check the XI Event Log for ...
by lord_hypnos
Tue Aug 20, 2013 3:18 pm
Forum: Nagios XI
Topic: Event handler
Replies: 5
Views: 1276

Re: Event handler

Lets enable event handler logging, if it is not already enabled. Edit /usr/local/nagios/etc/nagios.conf Add or edit the log_event_handlers line so that it reads: log_event_handlers=1 Restart nagios: service nagios restart Done. Are you sure the script is not running? You may want to add an echo-to-...
by lord_hypnos
Tue Aug 20, 2013 11:19 am
Forum: Nagios XI
Topic: Event handler
Replies: 5
Views: 1276

Event handler

Hello, I want run my own script when service fail so i used this tutorial: http://assets.nagios.com/downloads/nagiosxi/docs/Introduction_to_Event_Handlers.pdf My reset_tomcat.sh file: #!/bin/bash SERVICESTATE=$1 SERVICESTATETYPE=$2 if [$SERVICESTATETYPE == 'SOFT'] then exit fi case "$SERVICESTA...
by lord_hypnos
Thu Aug 08, 2013 11:40 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

Some days with blood and fight but my problem was resolved :D Thank You so much for Your time!
by lord_hypnos
Thu Aug 08, 2013 11:09 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

I do all Your steps: cd /tmp rm -rf nagiosxi wget http://assets.nagios.com/downloads/nagiosxi/2012/xi-2012r2.2.tar.gz tar vfxz xi-2012r2.2.tar.gz cd nagiosxi/subcomponents/nagiosplugins ./install and command: /usr/local/nagios/libexec/check_http -V still return: check_http v2053 (nagios-plugins 1.4....
by lord_hypnos
Thu Aug 08, 2013 10:26 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

But i try check update and I receive this:

Code: Select all

Your Nagios XI installation is up to date.
Latest Available Version:	2012R2.2
Installed Version:	2012R2.2
Last Update Check:	2013-08-08 06:07:5
This check also check plugin or only Nagios version?
by lord_hypnos
Thu Aug 08, 2013 10:03 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

Code: Select all

check_http v2053 (nagios-plugins 1.4.13)
by lord_hypnos
Thu Aug 08, 2013 3:42 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

Ok i understand but why u delete -j parameter in check http plugin?
by lord_hypnos
Wed Aug 07, 2013 2:12 pm
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

Thank You for answer.

Is possible to send DELETE Request? Not only POST? Why -j parameter was delete ?

Send various type of http request(POST,DELETE,PUT) will be very helpful. Also possible to check content-type. Will be add this feature in the future to Nagios XI?
by lord_hypnos
Wed Aug 07, 2013 3:03 am
Forum: Nagios XI
Topic: Nagios check_http plugin
Replies: 18
Views: 5637

Re: Nagios check_http plugin

I did some testing, and it seems the -T switch is not acting as expected. I will do some more testing tomorrow. Any suggestions? Can someone ask me for two simple questions: 1) How change HTTP method for HTTP Request? 2) How check Content-Type for HTTP response? Is possible to do in Nagios or i sho...