Config questions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Config questions

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Config questions

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Config questions

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config questions

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Config questions

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Config questions

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config questions

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Config questions

Post by abrist »

You can pick apart any of the vbs files on the exchange like this one to hack out a solution.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked