2007-06-19 18:39:44 UTC
Hi.
Everything runs very well, but I need to send an e-mail with the number of the power supply, that is failure.
When I send from nino, I receive the OID:
Whe power supply 1 fail:
.1.3.6.1.4.1.674.10892.1.600.10.1.2.1.1
Whe power supply 2 fail:
.1.3.6.1.4.1.674.10892.1.600.10.1.2.1.2
Whe power supply 3 fail:
.1.3.6.1.4.1.674.10892.1.600.10.1.2.1.3
All I need is the last number of the OID.
So, I was thinking to use a script to format and send my mail.
I'd like to know how to pass parameters to a script in NINO for Windows.
I saw that become possible in version 4.1.3.
(http://sourceforge.net/forum/message.php?msg_id=2924199)
But I still can't make it works.
Before asking me, yes, I changed my action from mail to command and after submit I call the correct command.
The command I'm calling is: test.bat (It is in C:\Windows directory for test, because of the path)
The script is only:
echo %1 %2 %3 %4 %5 > C:\test.txt
When I call from command (or cmd) that works fine, but from NINO, the script run, but without the parameters I set in Format Description (as it works to send mail).
In nino.log I set all debug information and there are no error calling that script.
What else can I do to run a script with the NINO Event as parameters, or how can I send mail with formated Event values?
Thanks!