Services issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Services issue

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
kyang

Re: Services issue

Post 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/
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Services issue

Post 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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
kyang

Re: Services issue

Post 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'
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Services issue

Post by keerthi.seetharaman »

When checked from remote server the services are up and running fine.

Please suggest your next step of actions.
Thanks & Regards,
Keerthi Prashanth Seetharaman
kyang

Re: Services issue

Post 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'
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Services issue

Post 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
Thanks & Regards,
Keerthi Prashanth Seetharaman
kyang

Re: Services issue

Post by kyang »

keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: Services issue

Post by keerthi.seetharaman »

Done..
Thanks & Regards,
Keerthi Prashanth Seetharaman
kyang

Re: Services issue

Post by kyang »

Closing due to ticket.
Locked