Page 1 of 3
Linux-Server Error
Posted: Thu Dec 09, 2010 11:42 am
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
Re: Linux-Server Error
Posted: Thu Dec 09, 2010 11:43 am
by jcmanous
Oh. I neglected to mention that for mysql, the error is: "mysqld dead but subsys locked" although mysql *is* running.
Mysql and syslog monitor problem
Posted: Thu Dec 09, 2010 2:14 pm
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.
Re: Linux-Server Error
Posted: Thu Dec 09, 2010 2:17 pm
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
Re: Linux-Server Error
Posted: Thu Dec 09, 2010 3:44 pm
by jcmanous
It's owned by mysql and has the default perms 755
Re: Mysql and syslog monitor problem
Posted: Fri Dec 10, 2010 2:23 am
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
Re: Mysql and syslog monitor problem
Posted: Fri Dec 10, 2010 11:07 am
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?
Re: Mysql and syslog monitor problem
Posted: Fri Dec 10, 2010 2:07 pm
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)
Re: Mysql and syslog monitor problem
Posted: Fri Dec 10, 2010 2:41 pm
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
Re: Mysql and syslog monitor problem
Posted: Mon Dec 13, 2010 11:37 am
by mguthrie
Ok, I'll check it out as well.