Page 1 of 1

Config questions

Posted: Tue Feb 12, 2013 3:42 pm
by chris2ferz
Is it possible to configure which hosts are viewable by user login? Couldn't find an obvious way to do this or is it even possible?
Also is there a way to have nagios flag certain events in the log as critical even if they are just informational messages?

Re: Config questions

Posted: Tue Feb 12, 2013 4:01 pm
by lmiltchev
Is it possible to configure which hosts are viewable by user login? Couldn't find an obvious way to do this or is it even possible?
A user would see all hosts/services he/she is set up as a monitoring contact to. You can also go to:

Admin->Manage Users->and select "Can see all hosts and services" check-box

if you want the user to see all hosts/services
Also is there a way to have nagios flag certain events in the log as critical even if they are just informational messages?
Are you using the NagEventLog agent or something else?

Re: Config questions

Posted: Tue Feb 12, 2013 4:27 pm
by chris2ferz
OK the user filtering worked thanks
I'm using the nagios event monitor that comes with NagiosXI and i'm using it for windows
and i'm hoping to be able to flag something as critical in the event log.

Also is there any way to have a different program send an alert to Nagios. For example I have a program that monitors a log file and if it finds a string of text I would like it to tell Nagios so that host can be flagged.

Re: Config questions

Posted: Wed Feb 13, 2013 10:26 am
by slansing
Yes, there are ways to do this but you will have to write a custom script for it. You could have it return information to NSClient or NRPE and then pipe it back to Nagios XI.

I would suggest searching for plugins involving your project here first:

http://exchange.nagios.org/

That way you can either base yours off of someone else's, or even find one that would work already.

Re: Config questions

Posted: Wed Feb 13, 2013 10:27 am
by abrist
You would have to write a custom plugin/script to do this check (unless your program has a nagios plugin already). See the Plugin Development Guide for how to make a custom script to report to nagios. You will need at minimum a return code to hand off to XI.

Re: Config questions

Posted: Tue Feb 19, 2013 4:52 pm
by chris2ferz
Does anyone know of a vbs script or similar method for sending a critical error for a windows host using NSClient. I have a program that will flag an error - now I just need to know how to tell nagios to flag it. Something simple will do. Thanks

Re: Config questions

Posted: Tue Feb 19, 2013 5:06 pm
by slansing
We do not supply any open ended scripting templates for custom development, this is in the realm of custom development, as it sits now it would be a good idea to find a simple script and work your way through the logic to create your own.

Re: Config questions

Posted: Tue Feb 19, 2013 5:23 pm
by abrist
You can pick apart any of the vbs files on the exchange like this one to hack out a solution.