Discussion:
[Nagios-users] Nagios for iPhone
Giorgio Zarrelli
2010-07-14 15:31:27 UTC
Permalink
Hi,

Anyone using an easy interface for Nagios on iPhone?

I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.

Any hints?

Ciao,

Giorgio
Andrew Davis
2010-07-14 16:19:20 UTC
Permalink
I didn't want to expose our Nagios URL to the world as if it was
compromised it would give an attacker way too much "inside knowledge" of
our network. I believe Nagios is fairly secure, but its a lot of PHP and
other open source scripting languages, as well as third party addons
that may not hold up too well to brute force attempts or might even have
some lazy coding. As such, I have an outside server with a hardened
access rule that acts as a proxy to the inside Nagios URL, then use iNag
to monitor it. Best $10 I've ever spent.

A. Davis
Email: ***@gmail.com

"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
Post by Giorgio Zarrelli
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Leonardo Carneiro - Veltrac
2010-07-14 17:23:31 UTC
Permalink
Ahnn... WHAT?
Post by Andrew Davis
I didn't want to expose our Nagios URL to the world as if it was
compromised it would give an attacker way too much "inside knowledge"
of our network. I believe Nagios is fairly secure, but its a lot of
PHP and other open source scripting languages, as well as third party
addons that may not hold up too well to brute force attempts or might
even have some lazy coding. As such, I have an outside server with a
hardened access rule that acts as a proxy to the inside Nagios URL,
then use iNag to monitor it. Best $10 I've ever spent.
A. Davis
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
Post by Giorgio Zarrelli
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first --http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Giorgio Zarrelli
2010-07-14 18:37:31 UTC
Permalink
Eheheheh,

Thanks for your advice, anyway I neve meant to' expose Nagios. It's for internal use only.

Ciao,

Giorgio
I didn't want to expose our Nagios URL to the world as if it was compromised it would give an attacker way too much "inside knowledge" of our network. I believe Nagios is fairly secure, but its a lot of PHP and other open source scripting languages, as well as third party addons that may not hold up too well to brute force attempts or might even have some lazy coding. As such, I have an outside server with a hardened access rule that acts as a proxy to the inside Nagios URL, then use iNag to monitor it. Best $10 I've ever spent.
A. Davis
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
Post by Giorgio Zarrelli
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Marcel
2010-07-14 18:52:50 UTC
Permalink
Well,

Android powered devices with rooted Operational Systems have the ability to
connect through VPN and then that's all good.

With certificates and paranoid security stuff!

regards,
Post by Giorgio Zarrelli
Eheheheh,
Thanks for your advice, anyway I neve meant to' expose Nagios. It's for internal use only.
Ciao,
Giorgio
I didn't want to expose our Nagios URL to the world as if it was
compromised it would give an attacker way too much "inside knowledge" of our
network. I believe Nagios is fairly secure, but its a lot of PHP and other
open source scripting languages, as well as third party addons that may not
hold up too well to brute force attempts or might even have some lazy
coding. As such, I have an outside server with a hardened access rule that
acts as a proxy to the inside Nagios URL, then use iNag to monitor it. Best
$10 I've ever spent.
A. Davis
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- <http://p.sf.net/sfu/sprint-com-first>http://p.sf.net/sfu/sprint-com-first
_______________________________________________
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- <http://p.sf.net/sfu/sprint-com-first>
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Harald Böhmecke
2010-07-16 11:23:39 UTC
Permalink
Hi All,

Need help with an Eventhandler!

After Nagios (successfully) executes the eventhandler, no further checks
are done on any host. Nagios is like in a stopped or stalled state.

Here is my config. I actually took it from the manual:

define service {
host_name blah
service_description NSCA
use local_1m
check_command check_tcp!5667
event_handler handler_restart_nsca
event_handler_enabled 1
register 1

}
define command {
command_name handler_restart_nsca

command_line /usr/share/nagios3/plugins/eventhandlers/restart-nsca $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$

}


/usr/share/nagios3/plugins/eventhandlers/restart-nsca

#!/bin/sh
#
# Event handler script for restarting the web server on the local
machine
#
# Note: This script will only restart the web server if the service is
# retried 3 times (in a "soft" state) or if the web service
somehow
# manages to fall into a "hard" error state.
#


# What state is the NSCA service in?
case "$1" in
OK)
# The service just came back up, so don't do anything...
;;
WARNING)
# We don't really care about warning states, since the service is
probably still running...
;;
UNKNOWN)
# We don't know what might be causing an unknown error, so don't do
anything...
;;
CRITICAL)
# Aha! The HTTP service appears to have a problem - perhaps we should
restart the server...

# Is this a "soft" or a "hard" state?
case "$2" in

# We're in a "soft" state, meaning that Nagios is in the middle of
retrying the
# check before it turns into a "hard" state and contacts get
notified...
SOFT)

# What check attempt are we on? We don't want to restart the web
server on the first
# check, because it may just be a fluke!
case "$3" in

# Wait until the check has been tried 3 times before restarting the
web server.
# If the check fails on the 4th time (after we restart the web
server), the state
# type will turn to "hard" and contacts will be notified of the
problem.
# Hopefully this will restart the web server successfully, so the 4th
check will
# result in a "soft" recovery. If that happens no one gets notified
because we
# fixed the problem!
3)
echo -n "Restarting NSCA service (3rd soft critical state)..."
# Call the init script to restart the NSCA server
/etc/init.d/nsca restart
;;
esac
;;

# The HTTP service somehow managed to turn into a hard error without
getting fixed.
# It should have been restarted by the code above, but for some reason
it didn't.
# Let's give it one last try, shall we?
# Note: Contacts have already been notified of a problem with the
service at this
# point (unless you disabled notifications for this service)
HARD)
echo -n "Restarting HTTP service..."
# Call the init script to restart the NSCA server
/etc/init.d/nsca restart
;;
esac
;;
esac
exit 0


Mit freundlichem Gruß,

Harald Böhmecke

Network / Infrastructure Services
Informationstechnologie D-CSIT-ICS
-------------------------------------------------
arvato services
An der Autobahn
33310 GÃŒtersloh

http://www.arvato-services.de
***@bertelsmann.de

Tel. +49 (0) 52 41 - 80-85660
Fax. +49 (0) 52 41 - 80-9391
Mobile +49 (0) 160-473-9965

arvato direct services GmbH: Sitz GÃŒtersloh| Amtsgericht GÃŒtersloh HRB
3826 | GeschÀftsfÌhrer Ralf Bierfischer, Bodo Krönfeld, Markus
Schmedtmann, Eckhard SÃŒdmersen
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Diese E-Mail und eventuelle Anlagen können vertrauliche und/oder
rechtlich geschÃŒtzte Informationen enthalten. Wenn Sie
nicht der richtige Adressat sind oder diese E-Mail irrtÃŒmlich erhalten
haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail sind nicht gestattet
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is forbidden.
Harald Böhmecke
2010-07-21 13:07:42 UTC
Permalink
Hi,

Still experiencing the same issue. Does anybody know why Nagios Freezes after executing the eventhandler?

Thanks,

Harald
Post by Harald Böhmecke
Hi All,
Need help with an Eventhandler!
After Nagios (successfully) executes the eventhandler, no further
checks are done on any host. Nagios is like in a stopped or stalled
state.
define service {
host_name blah
service_description NSCA
use local_1m
check_command check_tcp!5667
event_handler handler_restart_nsca
event_handler_enabled 1
register 1
}
define command {
command_name handler_restart_nsca
command_line /usr/share/nagios3/plugins/eventhandlers/restart-nsca $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}
/usr/share/nagios3/plugins/eventhandlers/restart-nsca
#!/bin/sh
#
# Event handler script for restarting the web server on the local
machine
#
# Note: This script will only restart the web server if the service is
# retried 3 times (in a "soft" state) or if the web service
somehow
# manages to fall into a "hard" error state.
#
# What state is the NSCA service in?
case "$1" in
OK)
# The service just came back up, so don't do anything...
;;
WARNING)
# We don't really care about warning states, since the service is
probably still running...
;;
UNKNOWN)
# We don't know what might be causing an unknown error, so don't do
anything...
;;
CRITICAL)
# Aha! The HTTP service appears to have a problem - perhaps we should
restart the server...
# Is this a "soft" or a "hard" state?
case "$2" in
# We're in a "soft" state, meaning that Nagios is in the middle of
retrying the
# check before it turns into a "hard" state and contacts get
notified...
SOFT)
# What check attempt are we on? We don't want to restart the web
server on the first
# check, because it may just be a fluke!
case "$3" in
# Wait until the check has been tried 3 times before restarting the
web server.
# If the check fails on the 4th time (after we restart the web
server), the state
# type will turn to "hard" and contacts will be notified of the
problem.
# Hopefully this will restart the web server successfully, so the 4th
check will
# result in a "soft" recovery. If that happens no one gets notified
because we
# fixed the problem!
3)
echo -n "Restarting NSCA service (3rd soft critical state)..."
# Call the init script to restart the NSCA server
/etc/init.d/nsca restart
;;
esac
;;
# The HTTP service somehow managed to turn into a hard error without
getting fixed.
# It should have been restarted by the code above, but for some reason
it didn't.
# Let's give it one last try, shall we?
# Note: Contacts have already been notified of a problem with the
service at this
# point (unless you disabled notifications for this service)
HARD)
echo -n "Restarting HTTP service..."
# Call the init script to restart the NSCA server
/etc/init.d/nsca restart
;;
esac
;;
esac
exit 0
Gius, Mark
2010-07-14 18:13:42 UTC
Permalink
I'm not aware of any Iphone-specific interfaces, but I know that if you put

<meta name="viewport" content="width=device-width" />

In the <head> element, the safari (and android) browser will attempt to do things to make everything fit reasonably on the screen.

This site (http://www.iphonemicrosites.com/articles/6-tips-to-optimize-your-current-site-for-the-iphone/) seems to have some reasonable suggestions for quick fixes you can try to make the default interface look better on mobile browsers.

-Gius
-----Original Message-----
Sent: Wednesday, July 14, 2010 8:31 AM
Subject: [Nagios-users] Nagios for iPhone
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
-----------------------------------------------------------------------
-------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Giorgio Zarrelli
2010-07-14 18:38:35 UTC
Permalink
Nice hint, thank you!

Ciao,

Giorgio
Post by Gius, Mark
I'm not aware of any Iphone-specific interfaces, but I know that if you put
<meta name="viewport" content="width=device-width" />
In the <head> element, the safari (and android) browser will attempt to do things to make everything fit reasonably on the screen.
This site (http://www.iphonemicrosites.com/articles/6-tips-to-optimize-your-current-site-for-the-iphone/) seems to have some reasonable suggestions for quick fixes you can try to make the default interface look better on mobile browsers.
-Gius
-----Original Message-----
Sent: Wednesday, July 14, 2010 8:31 AM
Subject: [Nagios-users] Nagios for iPhone
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
-----------------------------------------------------------------------
-------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Marcel
2010-07-14 18:42:59 UTC
Permalink
I use the statuswml.cgi and it works like a charm.

Ah, and I use it as part of the NAGROID, that I looove!!!
Post by Giorgio Zarrelli
Hi,
Anyone using an easy interface for Nagios on iPhone?
I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone.
Any hints?
Ciao,
Giorgio
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Loading...