Re: [Nagios-users] using web content to determine the nagios status

2007-10-08 Thread Robert Hulme
Jaime Ventura wrote: > I tried check_http -H webserver -u /status.htm -s "STATUS OK", but > this way I can only get a status ok or error on nagios status. > Is there any other way to do it, besides developing a specific plug-in? Yes you could do: check_http -s "STATUS FOR foo IS OK" -H www

[Nagios-users] check_ftp

2007-10-08 Thread Robert Hulme
Is there a way to check if a directory / file exists on an ftp server? I'm trying to use check_ftp but I'm not sure if I should be using -s, and if so what I should put there to check for /foo/bar -Rob -- Any fool can write code that a computer can understand. Good programmers write code that

Re: [Nagios-users] Problem: Picking up wrong server hostname withcheck_http

2007-10-04 Thread Robert Hulme
Dennis Hünseler wrote: > Hi Rob, > /usr/local/nagios/libexec/check_http -H relibase.ebi.ac.uk > HTTP OK HTTP/1.1 200 OK - 419 bytes in 0.198 seconds > |time=0.198169s;;;0.00 size=419B;;;0 Thanks guys, that's fixed it. -Rob -- Giving the Linus Torvalds Award to the Free Software Foundation is

[Nagios-users] Problem: Picking up wrong server hostname with check_http

2007-10-04 Thread Robert Hulme
I am trying to use the check_http plugin in Nagios 3 to see if relibase.ebi.ac.uk is OK. When I call it from the command prompt I get this: trueman% /usr/local/nagios/libexec/check_http relibase HTTP WARNING: HTTP/1.1 404 Not Found trueman% /usr/local/nagios/libexec/check_http relibase.ebi.ac.uk