n00b requesting desperate help please!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xcalibur
Posts: 8
Joined: Fri Jun 22, 2012 2:04 pm

n00b requesting desperate help please!

Post by xcalibur »

Hello,

I'd recently installed Nagios and have went through the following tutorial in order to enable Using autoIT scripts with NRPE checks:

http://assets.nagios.com/downloads/nagi ... Nagios.pdf

I did everything perfectly accordingly but the thing is...I have no idea what to do now. How do I monitor the data coming from NSclient? How do I choose the frequency? How do I make it into alerts? How do I report it?

Thanks!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: n00b requesting desperate help please!

Post by slansing »

Hey Xcalibur, you should now be able to see the check_autoit_timer check as a service from your Views screen. Are you able to see this? Frequency of checks can be set in the Service's setting from the Nagios Core Configuration Manager, or by clicking on the service from the Views screen and then selecting Configure from the tabs in the middle.

By creating a service, the autoIT script's data is being sent to Nagios to be viewed by you already, if you scroll down to the very bottom of the document there is an example of what this looks like.
xcalibur
Posts: 8
Joined: Fri Jun 22, 2012 2:04 pm

Re: n00b requesting desperate help please!

Post by xcalibur »

slansing wrote:Hey Xcalibur, you should now be able to see the check_autoit_timer check as a service from your Views screen. Are you able to see this? Frequency of checks can be set in the Service's setting from the Nagios Core Configuration Manager, or by clicking on the service from the Views screen and then selecting Configure from the tabs in the middle.

By creating a service, the autoIT script's data is being sent to Nagios to be viewed by you already, if you scroll down to the very bottom of the document there is an example of what this looks like.
Hey Slansing,

Thanks for the quick response!
Check_autoit_timer is defined in Nagios Core Config Manager --> Services.
But under "Views" I get a "No matching services found".
What did I do wrong?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: n00b requesting desperate help please!

Post by scottwilkerson »

Did you assign a host to it?
Did you Apply Configuration?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xcalibur
Posts: 8
Joined: Fri Jun 22, 2012 2:04 pm

Re: n00b requesting desperate help please!

Post by xcalibur »

scottwilkerson wrote:Did you assign a host to it?
Did you Apply Configuration?
Oh dear god...
What do I do if "waiting for configuration verification..." fails?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: n00b requesting desperate help please!

Post by mguthrie »

Start with our general troubleshooting steps outlined below:
http://support.nagios.com/wiki/index.ph ... leshooting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: n00b requesting desperate help please!

Post by slansing »

The document mguthrie suggested generally helps you self correct any issues. You may also try manually writing the configuration files to see what errors you are recieving. Do this by using the Write Config Files Tool under the Core Config Manager. If you have any problems let us know.
xcalibur
Posts: 8
Joined: Fri Jun 22, 2012 2:04 pm

Re: n00b requesting desperate help please!

Post by xcalibur »

slansing wrote:The document mguthrie suggested generally helps you self correct any issues. You may also try manually writing the configuration files to see what errors you are recieving. Do this by using the Write Config Files Tool under the Core Config Manager. If you have any problems let us know.
Well, I ran the Write Config Files Tool and got this:

Error: Invalid max_check_attempts value for host 'AutoIT Machine'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/AutoIT Machine.cfg', starting on line 14)
Error processing object config files!

I looked at that cfg file and all and failed to spot anything resembling "max_check_attempts".

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

Re: n00b requesting desperate help please!

Post by scottwilkerson »

Go to configure -> Core Config Manager -> Hosts -> AutoIT Machine -> Modify -> Check Settings Tab

Set
Max. check attempts=5
Retry interval=1
Check interval=5

Save
Apply Configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xcalibur
Posts: 8
Joined: Fri Jun 22, 2012 2:04 pm

Re: n00b requesting desperate help please!

Post by xcalibur »

scottwilkerson wrote:Go to configure -> Core Config Manager -> Hosts -> AutoIT Machine -> Modify -> Check Settings Tab

Set
Max. check attempts=5
Retry interval=1
Check interval=5

Save
Apply Configuration
Well, that's much better now!
It would have taken me ages to figure that out, thanks.

One more question though,
when looking in "View" I get the screenshot attached ("Error: Script returned with an error code of 2").
I suppose there's something wrong with the plugin script or the settings at the other end.
How do I start investigating what causes this?
You do not have the required permissions to view the files attached to this post.
Locked