Hi guys,
I'm a complete beginner with HPOV NNM and Perl. Please bear with me if you can.
I have read a lot of the threads in regards to email alerts and automatic actions on here and other forums. I have used the infamous perl email alert script (Nigel's and the other guy that took out the time stamp). It will be posted in the next reply.
In the Automatic Action text area I have
perl C:\\Perl\\bin\\email_alert.pl $2 "Vault Door Open Test Koing" $1
I'm not sure if this is the correct command.
In this directory:
C:\Program Files\HP OpenView\NNM\conf\trustedCmds.conf
I have 2 files:
ALLOW_ALL
NNM
In NNM I have the commands:
snmpnotify=$OV_BIN/snmpnotify
ovIfIndexRemap.ovpl=$OV_BIN/ovIfIndexRemap.ovpl
email_alert.pl=C:/Perl/bin/email_alert.pl
The email_alert.pl does reside in this directory also:
C:/Perl/bin/email_alert.pl
I have tested it works from the commandline and I get an email:
c:\perl\bin\perl.exe C:/Perl/bin/email_alert.pl Test_Node "Test Message" "1028713184" me@my_company.com
When I look in ovactiond.log I get this:
Thu Jun 08 14:13:30 Command "perl C:\Perl\bin\email_alert.pl 1.3.6.1.4.1.13669.1.4.1.5.521 "Vault Door Open Test Koing" Coin Vault Door Open" exited with value 1.
It exits out with value 1. I read something about this but I can't remember, but remembering it being not good.
Thanks guys and ESPECIALLY Nigel for doing the script and the other guys involved with the perl script. Much appreciated.
Koing
I'm a complete beginner with HPOV NNM and Perl. Please bear with me if you can.
I have read a lot of the threads in regards to email alerts and automatic actions on here and other forums. I have used the infamous perl email alert script (Nigel's and the other guy that took out the time stamp). It will be posted in the next reply.
In the Automatic Action text area I have
perl C:\\Perl\\bin\\email_alert.pl $2 "Vault Door Open Test Koing" $1
I'm not sure if this is the correct command.
In this directory:
C:\Program Files\HP OpenView\NNM\conf\trustedCmds.conf
I have 2 files:
ALLOW_ALL
NNM
In NNM I have the commands:
snmpnotify=$OV_BIN/snmpnotify
ovIfIndexRemap.ovpl=$OV_BIN/ovIfIndexRemap.ovpl
email_alert.pl=C:/Perl/bin/email_alert.pl
The email_alert.pl does reside in this directory also:
C:/Perl/bin/email_alert.pl
I have tested it works from the commandline and I get an email:
c:\perl\bin\perl.exe C:/Perl/bin/email_alert.pl Test_Node "Test Message" "1028713184" me@my_company.com
When I look in ovactiond.log I get this:
Thu Jun 08 14:13:30 Command "perl C:\Perl\bin\email_alert.pl 1.3.6.1.4.1.13669.1.4.1.5.521 "Vault Door Open Test Koing" Coin Vault Door Open" exited with value 1.
It exits out with value 1. I read something about this but I can't remember, but remembering it being not good.
Thanks guys and ESPECIALLY Nigel for doing the script and the other guys involved with the perl script. Much appreciated.
Koing