Linux-Server Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Linux-Server Error

Post by jcmanous »

*EDIT* - I realize that these errors, as presented, are specific to the server itself and not NAGIOS but for some reason Nagios isn't reading the pid for the process..any ideas?


All,
I'm getting a couple of errors I'm unsure how to reconcile within Nagios XI. I add a Linux host and a few of the services, which are actually running, will show as offline with the error:
"<process-name> dead but pid file exists."

This is currently effecting syslog and mysql server.

Many thanks.

Regards,

Jason Manous
Last edited by jcmanous on Thu Dec 09, 2010 11:57 am, edited 1 time in total.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Linux-Server Error

Post by jcmanous »

Oh. I neglected to mention that for mysql, the error is: "mysqld dead but subsys locked" although mysql *is* running.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Mysql and syslog monitor problem

Post by jcmanous »

Greetings,
I'm running on an fresh install of Nagios XI with the "add Linux Host" plugin. The host in question is a Redhat 5.5 ES box which nagios sees fine except for syslogd and mysqld.

The errors, respectively, on each are:

"syslogd dead but pid file exists" and "mysqld dead but subsys locked".

Each of these services is actually running and doing their jobs which leads me to believe that the monitor is looking in the wrong place for the pid file..any ideas on this?

Thanks!

Jason M.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Linux-Server Error

Post by rdedon »

You may want to check who owns the /var/run/mysqld... It should be owned by mysql.

# chown -R mysql.mysql /var/run/mysqld
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Linux-Server Error

Post by jcmanous »

It's owned by mysql and has the default perms 755
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Mysql and syslog monitor problem

Post by tonyyarusso »

Those checks are using check_init_service, and I've found that particular plugin to function fine as 'nagios' for most things, but require root privileges for a few services, and I know mysqld was one of them. Try adding a new line to the bottom of /etc/sudoers with the following content:

Code: Select all

nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_init_service
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Mysql and syslog monitor problem

Post by jcmanous »

check_init_service doesn't seem to be in that path. This is a default, manual, install of XI..did I miss something?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Mysql and syslog monitor problem

Post by mguthrie »

That check plugin doesn't appear to ship with a default Nagios XI install, was this part of the nrpe plugin pack?

Can you run these checks from the command line and show us the arguments and output? (minus any private data)
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Mysql and syslog monitor problem

Post by jcmanous »

I'll need to dig a bit and get back to you but the monitor event was created with a wizard that I downloaded from Nagios exchange.

http://exchange.nagios.org/directory/Ad ... rd/details
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Mysql and syslog monitor problem

Post by mguthrie »

Ok, I'll check it out as well.
Locked