Monitor Ironport

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor Ironport

Post 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.
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Monitor Ironport

Post 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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Monitor Ironport

Post 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"
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Monitor Ironport

Post 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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Monitor Ironport

Post by BanditBBS »

Is the "Active" checkbox checked? Also, did you click the manage hosts button and add the ironport?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Monitor Ironport

Post 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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Monitor Ironport

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Monitor Ironport

Post 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...
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Monitor Ironport

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: Monitor Ironport

Post by sheld0r »

Thank you for the help and guidance.
Locked