Page 2 of 2
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 4:42 pm
by AWS
Making progress.
Results:
Code: Select all
[root@nagios libexec]# ./check_nrpe -H 10.1.1.254 -c check_load
OK - load average: 0.39, 0.17, 0.08|load1=0.390;15.000;30.000;0; load5=0.171;10.000;25.000;0; load15=0.079;5.000;20.000;0;
If you think this is a pfS error, let me know and I can change over to that forum. I don't want you to think I'm abusing your knowledge and asking you to troubleshoot a system error that isn't part of Nagios.
Thanks again,
AWS
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 5:11 pm
by scottwilkerson
AWS wrote:Making progress.
Results:
Code: Select all
[root@nagios libexec]# ./check_nrpe -H 10.1.1.254 -c check_load
OK - load average: 0.39, 0.17, 0.08|load1=0.390;15.000;30.000;0; load5=0.171;10.000;25.000;0; load15=0.079;5.000;20.000;0;
If you think this is a pfS error, let me know and I can change over to that forum. I don't want you to think I'm abusing your knowledge and asking you to troubleshoot a system error that isn't part of Nagios.
Thanks again,
AWS
this mean it is working.. That is what is supposed to output..
Now you just need to add the the services in Nagios XI Core Config Manager and you are set.
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 5:34 pm
by AWS
I believe it is already. No? In my "Configure Service", "Load", on the "Monitoring" tab, in the Monitor Service with this command... (Advanced users only) I have check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10' (built by the wizard, not by me). The result I get from this on the "Service Status Detail" page is CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Do I need to change my check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10' command to something like ./check_nrpe -H 10.1.1.254 -c check_load -a 'w 15,10,5 -c 30,20,10' instead?
EDIT: Tried that and it doesn't like the config - it wouldn't save it. So the command seems to be ok. My money is now on pfS being the problem.
Thanks for your help.
AWS
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 5:39 pm
by scottwilkerson
AWS wrote:I believe it is already. No? In my "Configure Service", "Load", on the "Monitoring" tab, in the Monitor Service with this command... (Advanced users only) I have check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10' (built by the wizard, not by me). The result I get from this on the "Service Status Detail" page is CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Do I need to change my check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10' command to something like ./check_nrpe -H 10.1.1.254 -c check_load -a 'w 15,10,5 -c 30,20,10' instead?
Thanks for your help.
AWS
Is this in Nagios XI?
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 5:46 pm
by AWS
Yes, within Nagios XI.
AWS
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 6:03 pm
by scottwilkerson
don't change anything there.
make sure
Check command* = check_nrpe
make sure
Command view = $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
Go to Configure -> Core Config Manager -> Services -> Modify icon next to service
$ARG1$ = check_load
This would be for the load... change per service
Re: Monitor pfSense v.2 NRPE2
Posted: Thu Jan 19, 2012 6:11 pm
by AWS
Yeah, it all checks out correctly, as you outlined.
Thanks,
AWS
Re: Monitor pfSense v.2 NRPE2
Posted: Fri Jan 20, 2012 11:44 am
by scottwilkerson
Is it working now?
If not you may not need to set the $ARG2$ because it was already on the client.
Re: Monitor pfSense v.2 NRPE2
Posted: Fri Jan 20, 2012 11:58 am
by AWS
OH MY! That's it! I removed text in $ARG2$ and now it's working great!
thank you very much for your help. I've been working on again/off again on this for a long time and could never make it work. thanks so much.
AWS
Re: Monitor pfSense v.2 NRPE2
Posted: Fri Jan 20, 2012 1:01 pm
by scottwilkerson
No problem. Glad it is working.