Nagios and NSCA (for Munin)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios and NSCA (for Munin)

Post by scottwilkerson »

gshergill wrote:Hi scottwilkerson,

That seems a bit confusing to me... So I just need to put the plugin on the Munin server? Does it need nagios or anything installed on it first though?

Sorry I'm just having a bit of trouble understanding how Munin sends it to Nagios via the plugin being on the Munin server.

Thanks again.

Kind Regards,

gshergill
As I had mentioned I'm not familiar with munin, but many different systems can execute plugins on a local machine and use something like NSCA to send the results to the Nagios server.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Nagios and NSCA (for Munin)

Post by gshergill »

Hi scottwilkerson,

Okay, added the plugin and utils.pm onto Munin and the command works;

Code: Select all

root@muninnagios:~# ./check_munin_rrd.pl -H grumbler.domain -M sensors_temp -w 55 -c 70
temp1: 42.8 temp10: 44.0 temp2: -101.5 temp3: -128.0 temp4: -128.0 temp5: 46.0 temp6: 46.0 temp7: 46.0 temp8: 46.0 temp9: 44.0
With these other plugins that can be put on the remote server and forward their results onto nagios, how exactly do they forward their results? Or is it different for each? For example on Munin you use;

contact.nagios.command /usr/bin/send_nsca -H your.nagios-host.here -c /etc/send_nsca.cfg

But I'm not sure if everything's ok.

Maybe a generic method on other plugins can help me to figure this one out?

Thank you.

Kind Regards,

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

Re: Nagios and NSCA (for Munin)

Post by scottwilkerson »

Take this for what it is worth, but many people use a script similar to this to send NSCA results...

Code: Select all

#!/bin/sh
SENDCMD="/usr/bin/send_nsca -H your.nagios-host.here -c /etc/send_nsca.cfg"
OUTPUT=`/usr/local/nagios/libexec/check_munin_rrd.pl -H grumbler.domain -M sensors_temp -w 55 -c 70`
RESULT=$?
HOST="grumbler.domain"
SERVICE="sensors_temp"

echo -e "$HOST\t$SERVICE\t$RESULT\t$OUTPUT"|$SENDCMD

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Nagios and NSCA (for Munin)

Post by gshergill »

Hi scottwilkerson,

Thank you for that.

Just wondering one thing, where do I add that code? To the existing munin.conf or would it require a seperate file?

Am glad we've managed to get this far =) Actually knowing that munin can contact nagiosxi and that munin can display data via the plugin is great news.
Just this one last hurdle and everything will be working fine.

Kind Regards,

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

Re: Nagios and NSCA (for Munin)

Post by scottwilkerson »

gshergill wrote:Hi scottwilkerson,

Thank you for that.

Just wondering one thing, where do I add that code? To the existing munin.conf or would it require a seperate file?
I was giving a generic method for using NSCA as an example. Munin may have a different method for sending the info...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Nagios and NSCA (for Munin)

Post by gshergill »

Hi scottwilkerson,

That's still great, thanks for the help.

Will try what I can do on my own, and if all fails my last point of order will be to attempt contact with one of the users listed on the code.google.com site under Nagios - Munin.

Thanks again.

Kind Regards,

Gary Shergill
Locked