Parent sending status to child, child serice objects
Posted: Tue Oct 23, 2012 12:34 pm
Ok here's what i'm tying to do.
We have some HP EVA's I would like to monitor the. A number of eva's are managed by one server (an appliance).
Under nagios we have a number of host objects. the Appliance (host) as the parent and an eva (host) as a child with services running as children of the eva (host)
I would like to get the eva's to send traps to nagios, The problem i have is that as the eva's are managed by the appliance the IP address of the trap is login against the server object. How can I push the messages from the appliance out to each eva that's hosted under it. a typical trap message looks like this.
Tue Oct 23 17:22:07 2012 .1.3.6.1.4.1.232.0.136013021 INFORMATIONAL "Status Events" Appliance1 - Management Agent Event: Host APPLIANCE1 : SCellName-TimeDate eva01: 23-Oct-2012/17:22:07 : EventCode 13021 : Description Remote Service Test Event
In this message "Appliance1" is the hosting server and "eva01" is the eva. I was considering writing a service script for the eva (host) to read the snmptt.log file but this seems a slow way to capture the results, as they would have to come though on a sample based interval. The notifications would arrive quicker, if I could write an eventhandler to do the work, after the event on the appliance service. However, I would need to send the status of the handler to a different host service under the eva. How would I reference the eva service object in the server handler script, so i can post the message back to the passive eva service?
I the example above i would want to pass the following...
eva01, 23-Oct-2012/17:22:07, INFORMATIONAL, EventCode 13021, Desctiption Remote Service Test Event.
The reason I've split the EVA's out as separate hosts to the appliance is it means i can report by eva by eva serice.
Has anyone got any ideas how i can do this.
Cheers
Simon
We have some HP EVA's I would like to monitor the. A number of eva's are managed by one server (an appliance).
Under nagios we have a number of host objects. the Appliance (host) as the parent and an eva (host) as a child with services running as children of the eva (host)
I would like to get the eva's to send traps to nagios, The problem i have is that as the eva's are managed by the appliance the IP address of the trap is login against the server object. How can I push the messages from the appliance out to each eva that's hosted under it. a typical trap message looks like this.
Tue Oct 23 17:22:07 2012 .1.3.6.1.4.1.232.0.136013021 INFORMATIONAL "Status Events" Appliance1 - Management Agent Event: Host APPLIANCE1 : SCellName-TimeDate eva01: 23-Oct-2012/17:22:07 : EventCode 13021 : Description Remote Service Test Event
In this message "Appliance1" is the hosting server and "eva01" is the eva. I was considering writing a service script for the eva (host) to read the snmptt.log file but this seems a slow way to capture the results, as they would have to come though on a sample based interval. The notifications would arrive quicker, if I could write an eventhandler to do the work, after the event on the appliance service. However, I would need to send the status of the handler to a different host service under the eva. How would I reference the eva service object in the server handler script, so i can post the message back to the passive eva service?
I the example above i would want to pass the following...
eva01, 23-Oct-2012/17:22:07, INFORMATIONAL, EventCode 13021, Desctiption Remote Service Test Event.
The reason I've split the EVA's out as separate hosts to the appliance is it means i can report by eva by eva serice.
Has anyone got any ideas how i can do this.
Cheers
Simon