Page 2 of 2

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 10:34 am
by slansing
Hmm this is from the exchange page:

http://check-ironport.urandom.at/cgi-bi ... umentation

It appears as though there are actual flags just as any other plugin.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 1:42 pm
by sheld0r
So what exactly am I suppose to put in the $ARG1$ under the host management in XI? I've tried various combinations, and I still get no output. I'm still confused on the syntax.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 1:47 pm
by BanditBBS
sheld0r wrote:So what exactly am I suppose to put in the $ARG1$ under the host management in XI? I've tried various combinations, and I still get no output. I'm still confused on the syntax.
Well, you said this worked from commandline:

Code: Select all

/usr/local/nagios/libexec/check_ironport 192.168.100.121 admin passwordhere cpu 90 95
If that is the case, you need to go into CCM, create a command with a command line of

Code: Select all

$USER1$/check_ironport $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
And then create a host for the ironport that checks ping or host_alive or whatever. Then create a service for that host and use the above created command.

Then in ARG1 put "admin passwordhere"
Then in ARG2 put the check you want to do, in this case "cpu"
Then in ARG3 put the w and c values, if any...in this case, "90 95"

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 2:48 pm
by sheld0r
I see the Ironport in the host list, but I still don't see the services coming up in the Service Detail. I added the arguments and tested the command which was successful, but for some reason I don't see the Ironport listed under Service Detail.

If I go to CCM and search for Ironport under services, the two I configured to show up.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 2:51 pm
by BanditBBS
Is the "Active" checkbox checked? Also, did you click the manage hosts button and add the ironport?

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 3:19 pm
by sheld0r
So the "Active" checkbox is indeed checked, but the manage hosts button doesn't have the Ironport added. When I add it and attempt to save the configuration, the verification fails.

I opened up the config error

Code: Select all

Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Ironport Messages' on host 'Ironport'
Error: Could not register service (config file '/usr/local/nagios/etc/services/Ironport.cfg', starting on line 14)
   Error processing object config files!
My checks came out okay when I configured the services, but I must have done something else wrong. Line 14 states the service name, so I think I'm still defining the service incorrectly.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 3:20 pm
by BanditBBS
Try adding the template "generic service" to it or go to the service and define them locally, it's up to you how to handle that one.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 3:37 pm
by sheld0r
Adding the "generic service" did the trick. So what exactly did that do? Is the "generic service" like the default layout of the service configuration? Such as

Code: Select all

define service {
     host_name
     service_description 
     ect...

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 3:47 pm
by BanditBBS
using that template just give that service you added all the default values for how to monitor(check interval, alert interval, whatever else is in the template)

You can then override that on a per service basis if you need to, since anything you fill out on the service itself, it then ignores that setting in the template.

Re: Monitor Ironport

Posted: Mon Nov 11, 2013 3:57 pm
by sheld0r
Thank you for the help and guidance.