linux & windows alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

linux & windows alerts

Post by lntinfo »

i am monitoring 200 servers using nagios. server incluedes windows & Linux.
is there any way that i can come to know, alert comes from which operating system.
can i segregate linux & windows alerts.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: linux & windows alerts

Post by lmiltchev »

You can utilize a naming convention that would indicate whether your host is a linux or windows machine. Another way of doing it is to group your hosts into hostgroups if you haven't done this already, for example: "linux-servers" and "windows-servers". Then, you will have to add the $HOSTGROUPNAME$ macro in the command definitions. Read about standard macros in nagios here:

http://nagios.sourceforge.net/docs/nagi ... olist.html

Depending on whether your contacts are Nagios XI users or contacts only you may have to modify some or all of these commands:

For these two commands:

xi_host_notification_handler
xi_service_notification_handler


Go to the Core Config Manager->Commands->Commands->Modify and add the following to the command definition: --hostgroupname="$HOSTGROUPNAME$"

For these two commands:

notify-host-by-email
nofity-service-by-email

Go to the Core Config Manager->Commands->Commands->Modify and add the following to the command definition: \nHostgroup: $HOSTGROUPNAME$

Save and Apply Configuration.

Go to Configure->More Options->My Account Settings->Notifications Options->Notification Messages. Add the following line to the "Host and Service Alert Message" fields: Hostgroup: %hostgroupname% and click on "Update Settings".

Now when you receive a notification, you should see a line that says:

Hostgroup: linux-servers

or

Hostgroup: windows-servers

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lntinfo
Posts: 136
Joined: Tue Mar 01, 2011 10:17 am

Re: linux & windows alerts

Post by lntinfo »

thanks a ton ! i shall try that.
Locked