Monitor pfSense v.2 NRPE2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Monitor pfSense v.2 NRPE2

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor pfSense v.2 NRPE2

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Monitor pfSense v.2 NRPE2

Post 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
Last edited by AWS on Thu Jan 19, 2012 5:43 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor pfSense v.2 NRPE2

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Monitor pfSense v.2 NRPE2

Post by AWS »

Yes, within Nagios XI.

Image

AWS
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor pfSense v.2 NRPE2

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Monitor pfSense v.2 NRPE2

Post by AWS »

Yeah, it all checks out correctly, as you outlined.

Image

Thanks,
AWS
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor pfSense v.2 NRPE2

Post by scottwilkerson »

Is it working now?

If not you may not need to set the $ARG2$ because it was already on the client.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Monitor pfSense v.2 NRPE2

Post 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. :D

AWS
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor pfSense v.2 NRPE2

Post by scottwilkerson »

No problem. Glad it is working.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked