Page 1 of 1

Services issue

Posted: Wed Feb 07, 2018 3:44 am
by keerthi.seetharaman
Hello Team,

Good Day.

There are 2 services master and smbd services that has been configured in Nagios but when checked we found that the services are running well locally but throws an error in Nagios as critical: process not running.

Please suggest what can be done further to fix this issue.

Attached is the screenshot and system profile for your ref.

Re: Services issue

Posted: Wed Feb 07, 2018 12:00 pm
by kyang
Hello!

Is the process running? Can you show us?

Is this the plugin you are using?
https://exchange.nagios.org/directory/P ... sh/details

This isn't a plugin available in our Nagios-plugins package.

At this point, we would not know the real cause because we did not write the plugin and can only try to help with limited things.

Or see if another plugin may work for you on the Nagios Exchange.

https://exchange.nagios.org/

Re: Services issue

Posted: Thu Feb 08, 2018 1:26 am
by keerthi.seetharaman
Yes we are using the same plugin which you have mentioned below.

https://exchange.nagios.org/directory/P ... sh/details

Please suggest what needs to be done

Regards,
Keerthi Prashanth S.

Re: Services issue

Posted: Thu Feb 08, 2018 10:34 am
by kyang
No problem. Are the processes actually running on the remote servers?

What's the output of both of these commands when you run them in the command line?

Code: Select all

ps aux | grep 'master'

Code: Select all

ps aux | grep 'smbd'

Re: Services issue

Posted: Fri Feb 09, 2018 6:06 am
by keerthi.seetharaman
When checked from remote server the services are up and running fine.

Please suggest your next step of actions.

Re: Services issue

Posted: Fri Feb 09, 2018 11:02 am
by kyang
I did test this plugin using NRPE against a few processes.

Examples:
My httpd service is running on the remote server.

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 192.168.4.174 -c check_ps.sh -a '-p httpd'
OK - Process: httpd, User: root, CPU: 2.5%, RAM: 0.7%, Start: 09:57, CPU Time:  min | 'cpu'=2.5 'memory'=0.7 'cputime'=
I stop the httpd process to check if the plugin will return as expected.

Code: Select all

[root@centos7x64 libexec]# service httpd stop
Redirecting to /bin/systemctl stop  httpd.service
The plugin captures that the httpd process is not running on the remote machine.

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 192.168.4.174 -c check_ps.sh -a '-p httpd'
CRITICAL - Process is not running!
My master process seems to be running just fine also.

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 192.168.4.174 -c check_ps.sh -a '-p master'
OK - Process: master, User: root, CPU: 0.0%, RAM: 0.1%, Start: 09:49, CPU Time:  min | 'cpu'=0.0 'memory'=0.1 'cputime'=
I'm not exactly sure what to say next other than, make sure your process is running. The plugin seems to capture this just fine using NRPE.
Also I did not see the actual output of these commands?

Code: Select all

ps aux | grep 'master'

Code: Select all

ps aux | grep 'smbd'

Re: Services issue

Posted: Tue Feb 13, 2018 1:21 am
by keerthi.seetharaman
Hello kyang,

Thanks for your quick reply.

In case if you possibly schedule a webex we can show you the issue.

So please schedule a webex.

Regards,
Keerthi Prashanhth S

Re: Services issue

Posted: Tue Feb 13, 2018 10:09 am
by kyang

Re: Services issue

Posted: Thu Feb 15, 2018 4:10 am
by keerthi.seetharaman
Done..

Re: Services issue

Posted: Thu Feb 15, 2018 11:14 am
by kyang
Closing due to ticket.