[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SV: SV: SV: [hobbit] hobbitd_alert command is not working ( maybe )



I figured out the problem.

I unset my environmental variable for the hobbit user.

But now, when I run the hobbitd_alert command it looks good:
------------------------------------------------------------------------------------------------------------------------

[hobbit (at) neuron hobbit]$ hobbitd_alert --test v43mgt cpu
00014397 2006-10-23 13:55:56 send_alert v43mgt:cpu state Paging
00014397 2006-10-23 13:55:56 Matching host:service:page 'v43mgt:cpu:' against rule line 129
00014397 2006-10-23 13:55:56 *** Match with 'HOST=*' ***
00014397 2006-10-23 13:55:56 Matching host:service:page 'v43mgt:cpu:' against rule line 129
00014397 2006-10-23 13:55:56 *** Match with 'HOST=*' ***
00014397 2006-10-23 13:55:56 Mail alert with command 'mail -s "Hobbit [12345] v43mgt:cpu CRITICAL (RED)" mprice (at) hst.nasa.gov'
---------------------------------------------------------------------------------------------------------------------------------------


It still doesnt send the email because the command line is wrong, it doesnt have a message body so it hangs in the process. The mail command expects a message body and the hobbitd_alert command is not giving it, so I hangs and never gets sent.

Does anyone know a way to get around this??

thanx for the help Lars and anyone else who knows what to do,

Michael A. Price





Lars Ebeling wrote:
My hobbit-user (hobbit) does not have any environmentvariabel MAIL set. But
the root user does.

Lars


To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe (at) hswn.dk