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?
Config questions
Re: Config questions
A user would see all hosts/services he/she is set up as a monitoring contact to. You can also go to: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?
Admin->Manage Users->and select "Can see all hosts and services" check-box
if you want the user to see all hosts/services
Are you using the NagEventLog agent or something else?Also is there a way to have nagios flag certain events in the log as critical even if they are just informational messages?
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
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.
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
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.
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
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.
"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
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
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
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.
"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.