Table of contents
Have certain NMIS events sent to IBM Tivoli Netcool using syslog.
Send certain events to Netcool, which can be done by ignoring the events not required.
An NMIS notification plugin was created to send all events, except those in the ignore list to the configured syslog server.
The code for this solution is included in the NMIS9 contrib folder which is available in the installation or from NMIS9@GitHub, it will be in the folder nmis9/contrib/noc_netcool_syslog
A good option to install is to create a util folder e.g. /usr/local/nmis9/util and then create a symbolic link so the file will run with the correct paths, and copy the nocSyslog.nmis to the NMIS9 conf folder
Some handy commands (sudo might be required):
Update nocSyslog.nmis with your needed config, the options should be self explanatory except for extra_logging, which if enabled will give you some logging to nmis.log with when events are sent over syslog to NetCool.
Update NMIS escalations
To configure this, you add the method in the policy where you require it, for example
Update NMIS contacts
Here “noc:noc_contact” has been added to the escalation policy. The first part noc names the custom notification method matching the code in noc.pm and noc_contact must be a contact in the Contacts.nmis file in lower case, this is used for criticality filtering and duty time only.
Wait for events to be generated
Wait some NMIS events to be generated or create some conditions to generate the events, e.g. mess with the routes.
You should find your NMIS events in the remote syslog server.
Local Syslog Testing
To test locally, add the following to /etc/rsyslog.conf for testing and restart syslogd.