PROCS WARNING: 151 processes
PROCS WARNING: 151 processes
***** Nagios XI Alert *****
Nagios has detected this service has stabilized. Notifications will now be sent out as needed on a normal basis.
Notification Type: FLAPPINGSTOP
Service: Total Processes
Host: ******
Address: **********
State: WARNING
Info:
PROCS WARNING: 151 processes
Date/Time: 2013-05-30 13:44:21
anyone knows what is that meant?
how can you see the detail of the 151 processes?
thanks
Nagios has detected this service has stabilized. Notifications will now be sent out as needed on a normal basis.
Notification Type: FLAPPINGSTOP
Service: Total Processes
Host: ******
Address: **********
State: WARNING
Info:
PROCS WARNING: 151 processes
Date/Time: 2013-05-30 13:44:21
anyone knows what is that meant?
how can you see the detail of the 151 processes?
thanks
Re: PROCS WARNING: 151 processes
The detail of the processes are not supported by the check. You could make an event handler to run a script through nrpe (if it is a remote host) to dump a "ps" command to a file in /tmp.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PROCS WARNING: 151 processes
it's remote host, how can you run a script through nrpe?
thanks
thanks
Re: PROCS WARNING: 151 processes
This can get a bit complex, so bare with me.
This example uses nrpe on a linux system. You will need to have nrpe installed on the remote host to deploy this event handler.
You need to create a script that will output a process list to a file. For example:
--start remote host configuration--
Create a script file on the remote system:
Copy the following code into the file:
Make it executable:
Now create a command definition in the remote host's nrpe.cfg file:
Add the following line to the bottom of the file:
Restart nrpe:
--end remote host configuration--
--start XI configuration--
Now add a misc command to XI to be used as an event handler. Go to Configure --> Core Config Manager --> Commands --> Add new.
For Command name, enter:
For command line, enter:
Change command type dropdown to:
Save.
Now lets add the handler to the service: Go to Configure --> Core Config Manager --> Services. Search and edit the service in question.
Under the tab "Check settings", choose "list_procs_event" in the "Event Handler" dropdown. Bullet "On" for the "Event handler enabled" field.
Save and "apply configuration".
--end XI configuration--
Now whenever the service check changes state (like a warning or critical), it will fire off the event which is a command that runs an nrpe check to the remote host to run the nrpe command "list_procs_event" which in turn runs the "ps.sh" script on the remote host. This script will create a time stamped file in /tmp named "process_list_" with the date appended on the end. When you get a warning or critical, you can pull a terminal to the remote host and check the contents of the /tmp/process_list_[date] file.
On the remote host:
This example uses nrpe on a linux system. You will need to have nrpe installed on the remote host to deploy this event handler.
You need to create a script that will output a process list to a file. For example:
--start remote host configuration--
Create a script file on the remote system:
Code: Select all
nano /usr/local/nagios/libexec/ps.shCode: Select all
#!/bin/bash
DATE=$(date +"%y-%m-%d-%T")
ps -aef > /tmp/process_list_$DATECode: Select all
chmod +x /usr/local/nagios/libexec/ps.shCode: Select all
nano /usr/local/nagios/etc/nrpe.cfgCode: Select all
command[list_procs_event]=/usr/local/nagios/libexec/ps.shCode: Select all
service xinetd restart--start XI configuration--
Now add a misc command to XI to be used as an event handler. Go to Configure --> Core Config Manager --> Commands --> Add new.
For Command name, enter:
Code: Select all
list_procs_eventCode: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c list_procs_eventCode: Select all
misc commandNow lets add the handler to the service: Go to Configure --> Core Config Manager --> Services. Search and edit the service in question.
Under the tab "Check settings", choose "list_procs_event" in the "Event Handler" dropdown. Bullet "On" for the "Event handler enabled" field.
Save and "apply configuration".
--end XI configuration--
Now whenever the service check changes state (like a warning or critical), it will fire off the event which is a command that runs an nrpe check to the remote host to run the nrpe command "list_procs_event" which in turn runs the "ps.sh" script on the remote host. This script will create a time stamped file in /tmp named "process_list_" with the date appended on the end. When you get a warning or critical, you can pull a terminal to the remote host and check the contents of the /tmp/process_list_[date] file.
On the remote host:
Code: Select all
cat /tmp/process_list_*Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PROCS WARNING: 151 processes
how can we change the threshold from 150 to 200 for one monitored server?
Re: PROCS WARNING: 151 processes
You can do this by changing the command definition in the remote hosts nrpe.cfg.ttung888 wrote:how can we change the threshold from 150 to 200 for one monitored server?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PROCS WARNING: 151 processes
what is the path to nrpe.cfg? what need to be changed?
thanks
thanks
Re: PROCS WARNING: 151 processes
I presume that nrpe is installed on the remote host (if not, what agent are you using)? If you used our agent, the path to nrpe.cfg is:
You may also have a common.cfg file that needs to be edited as well.
Code: Select all
/usr/local/nagios/etc/nrpe.cfgFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PROCS WARNING: 151 processes
I have installed the nagios agent on the Ubuntu 12.04 server, and everything seems fine except the CPU status shows unknown (iostat not found or is not executable by the nagious user).
anyone knows how to fix it?
thanks
anyone knows how to fix it?
thanks
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: PROCS WARNING: 151 processes
You will need to install the "iostat" package via your package manager, for ubuntu you are most likely using "apt get"