* [gentoo-user] [OT] Checking for a webcam with Nagios
@ 2007-09-09 11:52 Mick
2007-09-09 12:07 ` Arturo 'Buanzo' Busleiman
0 siblings, 1 reply; 8+ messages in thread
From: Mick @ 2007-09-09 11:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 641 bytes --]
Hi All,
This is a Nagios M/L question, but I thought that some of you may have arrived
at a best practice solution for this sort of problem, which is applicable to
monitoring webpages/sites that require authentication.
I want to monitor that a webcam is up & functioning. When I use the
check_http Nagios command the webcam returns a request for passwd
authentication. This is because the webcam GUI requires passwd
authentication. Nagios registers a "HTTP WARNING: HTTP/1.0 401 Unauthorized"
message and of courses generates an alert.
How would you recommend I monitor this webcam with Nagios?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 11:52 [gentoo-user] [OT] Checking for a webcam with Nagios Mick
@ 2007-09-09 12:07 ` Arturo 'Buanzo' Busleiman
2007-09-09 12:46 ` Mick
0 siblings, 1 reply; 8+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-09-09 12:07 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mick wrote:
> I want to monitor that a webcam is up & functioning. When I use the
> check_http Nagios command the webcam returns a request for passwd
> authentication. This is because the webcam GUI requires passwd
> authentication. Nagios registers a "HTTP WARNING: HTTP/1.0 401 Unauthorized"
> message and of courses generates an alert.
>
> How would you recommend I monitor this webcam with Nagios?
Can't you add the username and password to the HTTP url?
Like http://username:password@ip.of.webcam/whatever/path
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4+HtAlpOsGhXcE0RCuMcAJ9mN1OesAl6JvYFZP6M+JwIci9mzgCdEVI9
4z7Buye8egx6JcvXL2YsJHg=
=tFwx
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 12:07 ` Arturo 'Buanzo' Busleiman
@ 2007-09-09 12:46 ` Mick
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
0 siblings, 2 replies; 8+ messages in thread
From: Mick @ 2007-09-09 12:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
On Sunday 09 September 2007, Arturo 'Buanzo' Busleiman wrote:
> Mick wrote:
> > I want to monitor that a webcam is up & functioning. When I use the
> > check_http Nagios command the webcam returns a request for passwd
> > authentication. This is because the webcam GUI requires passwd
> > authentication. Nagios registers a "HTTP WARNING: HTTP/1.0 401
> > Unauthorized" message and of courses generates an alert.
> >
> > How would you recommend I monitor this webcam with Nagios?
>
> Can't you add the username and password to the HTTP url?
>
> Like http://username:password@ip.of.webcam/whatever/path
Thanks Arturo,
Yes I can, but I thought that exposing authentication details in plain text
config files is not particularly safe. Isn't there another way?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 12:46 ` Mick
@ 2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
1 sibling, 0 replies; 8+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-09-09 12:56 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mick wrote:
> Yes I can, but I thought that exposing authentication details in plain text
> config files is not particularly safe. Isn't there another way?
Maybe you could add a PHP script on a web server near the webcam, and "proxy" the request over it.
(i.e the PHP script can do the authenticated request, and return to nagios the webcam's http response).
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4+1tAlpOsGhXcE0RChILAJoCzOowgL7bhHKP1cTEzKcSNdM6QwCfTpye
SIWw/KFJxejj3LUNINP0/mA=
=aKEc
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 12:46 ` Mick
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
@ 2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
2007-09-09 13:16 ` Mick
1 sibling, 1 reply; 8+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-09-09 12:56 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
OR maybe the webcam has an admin utility where you can add an unprivileged user that would be no
threat to the security?
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4+2bAlpOsGhXcE0RCqp/AJ95eKVc0AT2vheigNBGcoj/FdltOwCffOiS
1ng95d/zbaeTHnrcAi461nk=
=/uOB
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
@ 2007-09-09 13:16 ` Mick
2007-09-09 13:50 ` Arturo 'Buanzo' Busleiman
0 siblings, 1 reply; 8+ messages in thread
From: Mick @ 2007-09-09 13:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
On Sunday 09 September 2007, Arturo 'Buanzo' Busleiman wrote:
> OR maybe the webcam has an admin utility where you can add an unprivileged
> user that would be no threat to the security?
Aha! That sounds like the simplest option. Need to check with the webcam
owner first that setting up a plain unauthenticated user on his webcam will
not be against his security policy.
Thanks again. If you've got some more ideas please let me know - I was
wondering if there is a Nagios plugin somewhere that manages the
authentication part.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 13:16 ` Mick
@ 2007-09-09 13:50 ` Arturo 'Buanzo' Busleiman
2007-09-09 13:57 ` Mick
0 siblings, 1 reply; 8+ messages in thread
From: Arturo 'Buanzo' Busleiman @ 2007-09-09 13:50 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mick wrote:
> Thanks again. If you've got some more ideas please let me know - I was
> wondering if there is a Nagios plugin somewhere that manages the
> authentication part.
The nagios webinject plugin might be of help.
http://www.webinject.org/plugin.html
extract:
For example, lets say you wanted to monitor a web application's functionality through multiple phases:
Phase 1 - Connect to the application
Phase 2 - Authenticate a user under the web application's login/authentication system
Phase 3 - Verify that you can navigate through the application while you're authenticated
Phase 4 - Do a sample request that accesses a database to verify it is available to the web application
Phase 2 looks remarkably like "http auth" :)
(obtained from 'nagios http plugin' google search, 1st hit)
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4/o8AlpOsGhXcE0RChqYAJ0fIAMwyi8bZH1lLTWC7pmM41Jd1gCdEgik
RO3s/tXej1KVy3qx7d5Vk34=
=t4a8
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] [OT] Checking for a webcam with Nagios
2007-09-09 13:50 ` Arturo 'Buanzo' Busleiman
@ 2007-09-09 13:57 ` Mick
0 siblings, 0 replies; 8+ messages in thread
From: Mick @ 2007-09-09 13:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]
On Sunday 09 September 2007, Arturo 'Buanzo' Busleiman wrote:
> Mick wrote:
> > Thanks again. If you've got some more ideas please let me know - I was
> > wondering if there is a Nagios plugin somewhere that manages the
> > authentication part.
>
> The nagios webinject plugin might be of help.
>
> http://www.webinject.org/plugin.html
>
> extract:
>
> For example, lets say you wanted to monitor a web application's
> functionality through multiple phases:
>
> Phase 1 - Connect to the application
> Phase 2 - Authenticate a user under the web application's
> login/authentication system Phase 3 - Verify that you can navigate through
> the application while you're authenticated Phase 4 - Do a sample request
> that accesses a database to verify it is available to the web application
>
> Phase 2 looks remarkably like "http auth" :)
>
> (obtained from 'nagios http plugin' google search, 1st hit)
Yes, I also found this plugin while searching the Nagios archives and it seems
to do the trick. I'll give it a go.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-09 14:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-09 11:52 [gentoo-user] [OT] Checking for a webcam with Nagios Mick
2007-09-09 12:07 ` Arturo 'Buanzo' Busleiman
2007-09-09 12:46 ` Mick
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
2007-09-09 12:56 ` Arturo 'Buanzo' Busleiman
2007-09-09 13:16 ` Mick
2007-09-09 13:50 ` Arturo 'Buanzo' Busleiman
2007-09-09 13:57 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox