How to pass OS info in Alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

How to pass OS info in Alerts

Post by lafargeuser »

I would like to pass OS information in alerts. If its windows server or Unix & its version in alerts.
How can I achive this ? which service or process should I monitor to get this details.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to pass OS info in Alerts

Post by abrist »

This can be tricky. You can take one of the easy roads:
1. Group servers by OS into hostgroups. Include the objects hostgroups in the notification message.
2. Do the same but with the hostname/display name.
3. Use free variables to store the OS, and include the free variable in the message.

Or the hard road:
Create a script to check the OS of all your servers using nmap. Then save this information to free variables (will require some SQL knowledge). Then include the free variable in your notification message.
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.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: How to pass OS info in Alerts

Post by lafargeuser »

If I integrate Nagios to Puppet. Will I be able to get this info ?


Else is there any provision I can pass Hostgroup infomation in alerts.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to pass OS info in Alerts

Post by slansing »

No, I'm not sure what you are getting at but puppet is far from what you are trying to do here. It is a automation system.
Locked