0

I'm currently running a SOLR search engine from a batch file and it appears as a process in my servers taskmgr. I need to monitor its state using check_nrpe but since there are more than one cmd.exe processes, I need to identify it using the PID of that process.

Can anyone provide me with an example syntax of how to do that? My syntax:

./check_nrpe -H IP -p port -c CheckProcState -a MinWarnCount=1 MinCritCount=0 cmd.exe (-ppid=2664)

The --ppid=2664 was just a lousy attempt to get it right but no results...

slm
  • 7,355
  • 16
  • 54
  • 72
Aki
  • 1
  • 1
    Why don't you use an actual Nagios plugin for solr? You'll get much better results. And it will actually work. Github has several to choose from... – Michael Hampton Jul 29 '13 at 12:29
  • I'm using Icinga (with NSClient++) since I have lots of other things to monitor. So it really needs to be monitored this way :s – Aki Jul 29 '13 at 12:31
  • That doesn't make any sense. Icinga is perfectly capable of using Nagios plugins. – Michael Hampton Jul 29 '13 at 12:32
  • Ahh, now I see what you meant... Duhh... Thank you very much! But still, it would be very nice to know if it's possible to use CheckProcState using only PID. If I have other processes to monitor.. – Aki Jul 29 '13 at 12:36

2 Answers2

1

Why don't you use an actual Nagios plugin for solr? You'll get much better results. And it will actually work. Icinga is perfectly capable of using Nagios plugins. Github has several to choose from...

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
0

NSClient++ 0.4.2 introduces support for checking/filtering pids (along with a lot of other options).

check_process process=cmd.exe "filter=pid = 1234" "crit=count = 0"
Michael Medin
  • 605
  • 3
  • 5