As we can monitor Remote Linux host using NRPE using command line as :
Eg.
Code: Select all
/usr/local/nagios/check_nrpe -H localhost -c somecommand -t 30
Thanks, It will help me alot.
Code: Select all
/usr/local/nagios/check_nrpe -H localhost -c somecommand -t 30
We need details on this since this is really what your question is. What exactly are you trying to do here, do you have examples?but I want to parse its output to some code for further processing.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 192.168.3.100 -c check_cpu
Code: Select all
OK: CPU Idle = 95.42% | CpuUser=3.33; CpuNice=0.00; CpuSystem=0.57; CpuIowait=0.69; CpuSteal=0.00; CpuIdle=95.42:20:10
Code: Select all
/usr/local/nagios/libexec/check_nt -H <host> -p <port> -v <command> -l <value>
Code: Select all
/usr/local/nagios/libexec/check_nt -H $myHost -p 12489 -v CPULOAD -l 5,80,90,10,80,90
/usr/local/nagios/libexec/check_nt -H $myHost -p 12489 -v USEDDISKSPACE -l c
/usr/local/nagios/libexec/check_nt -H $myHost -p 12489 -v MEMUSE