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.
How to pass OS info in Alerts
Re: How to pass OS info in Alerts
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.
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.
"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
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.
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
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.