On 23/04/07 07:08 PM, James wrote: > Ok thanks that's working great. > > I had one more question about this cluster plugin tho. > > So for instance when i'm running the plugin i'm checking the plugin > against an ip address. > However say if i want the notification to send back the hostname that's > failing how would i do that? > > so for instance > -d $HOSTSTATEID:ipaddress$ > > that would give information about the host state and give back an ip > address in notification but is there anyway to include a hostname in the > notification as well? > Like anyway to append a comment to the $HOSTSTATEID:ipaddress$ > > that way when i get a notification i don't just get a number. i get an > actual name identified with the ip address.
The name should be the host/service name in your notification email. I.e. define service { host_name ClusterNode service_description My Cluster check_command check_cluster!$HOSTSTATEID:1.2.3.4$,$HOSTSTATEID:4.3.2.1$,$HOSTSTATEID:2.1.4.3$ [...] } Then you would get notified for service "My Cluster" on host "ClusterNode" if $HOSTSTATEID:1.2.3.4$,$HOSTSTATEID:4.3.2.1$,$HOSTSTATEID:2.1.4.3$ exceed set thresholds. Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null