FAQ  •  Register  •  Login

Nagios monitoring

<<

moeilijk

Serviio newbie

Posts: 4

Joined: Wed Jan 25, 2012 10:26 pm

Post Fri Nov 09, 2012 10:03 pm

Nagios monitoring

I've been playing around with nagios and like to set it up for monitoring the serviio server. So far I haven't found any pre-made scripts or any helpful hints to complete the check.
Since there is no script available the easiest start is to try with the nagios default check_http script. The problem is with default options check_http -H serviio-server -p 8895 returns a warning since it returns a 404.
There are options to pass strings and check responses but these are out of my knowledge.
Does anyone have any experience monitoring their serviio server with nagios and/or can anyone help me complete the check_http command to complete the check?

Edit:
The best highly unelegant but working command definition so far I could come up with:
command_line $USER1$/check_http -H $HOSTADDRESS$ -p 8895 -e HTTP/1.1\ 404\ Not\ Found
<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Mon Nov 12, 2012 8:18 pm

Re: Nagios monitoring

What about monitoring the mediabrowser port: 23424? Or using NRPE (if running Serviio on a Linux box) or NSClient++ (if running Serviio on a Windows box) to monitor the Serviio process? If going with NSClient, you might wish to change the permissions on it's install folder or configuration file to protect the password from being visable (if I recall correctly).
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

moeilijk

Serviio newbie

Posts: 4

Joined: Wed Jan 25, 2012 10:26 pm

Post Tue Nov 20, 2012 8:21 pm

Re: Nagios monitoring

First I thought process monitoring was pointless. It's a remote server, if it isn't reachable it doesn't really matter if it runs fine. But since it is a quick fix:

nrpe.cfg on the serviio host
  Code:
command[check_pc5dczc_proc]=/usr/lib/nagios/plugins/check_procs -w 2:3 -c 1:5 -a serviio.sh

Since serviio is usually running from a screen I watch for 1 or 2 processes.
EDIT:changed the warn threshold to 2:3 processes. Somehow via NRPE check_procs adds another matched process


serviio-host.cfg on the nagios host
  Code:
define service{
use generic-service,srv-pnp
host_name serviio-host
service_description Serviio process
check_command check_nrpe!check_pc5dczc_proc
}


Next step is to see if I can parse the difference between a valid response and an error from 23424.
Any ideas on what commands to send to the server to see if it is sane?

Return to General discussion

Who is online

Users browsing this forum: No registered users and 18 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.