...
Después de subirlo, se requiere la ejecución de la siguiente instrucción para solucionar algún tema de permisos que pueda presentarse:
Code Block | ||
---|---|---|
| ||
/usr/local/nmis8/admin/fixperms.pl |
...
Antes de ejecutar el script, se requiere una modificación en el archivo /usr/local/nmis8/conf/Config.nmis para que funcione de manera correcta. Debe agregarse la siguiente línea en el archivo en la sección 'directories':
Code Block | ||
---|---|---|
| ||
'omk_logs' => '/usr/local/omk/log', |
...
El archivo Config.nmis debe de quedar de la siguiente manera:
Code Block | ||
---|---|---|
| ||
'database_root' => '<nmis_data>/database', 'json_logs' => '<nmis_logs>/json', 'log_root' => '<nmis_logs>', 'omk_logs' => '/usr/local/omk/log', 'mib_root' => '<nmis_base>/mibs', 'plugin_root' => '<nmis_conf>/plugins', |
Deben Al terminar la edición, deben guardarse los cambios realizados en el archivo.
...
a) Búsqueda del string NMIS is disabled:
Code Block |
---|
[root@cnvtmxomk01 admin]# perl Busqueda.pl search="NMIS is disabled" logs=all Processing /usr/local/nmis8/logs/event.log Processing /usr/local/nmis8/logs/event.log-20210509.gz Processing /usr/local/nmis8/logs/event.log-20210919 16-Sep-2021 12:00:04,1631811604,localhost,Alert: NMIS IS LOCKED,Fatal,,NMIS is disabled! Server.prueba.LAB-OMK.com 10.10.6.95 Delete the file NMIS_IS_LOCKED and run the command fpingd.pl 17-Sep-2021 12:00:03,1631898003,localhost,Alert: NMIS IS LOCKED,Fatal,,NMIS is disabled! Server.prueba.LAB-OMK.com 10.10.6.95 Delete the file NMIS_IS_LOCKED and run the command fpingd.pl 18-Sep-2021 00:00:03,1631941203,localhost,Alert: NMIS IS LOCKED,Fatal,,NMIS is disabled! Server.prueba.LAB-OMK.com 10.10.6.95 Delete the file NMIS_IS_LOCKED and run the command fpingd.pl 18-Sep-2021 12:00:03,1631984403,localhost,Alert: NMIS IS LOCKED,Fatal,,NMIS is disabled! Server.prueba.LAB-OMK.com 10.10.6.95 Delete the file NMIS_IS_LOCKED and run the command fpingd.pl 19-Sep-2021 00:00:03,1632027603,localhost,Alert: NMIS IS LOCKED,Fatal,,NMIS is disabled! Server.prueba.LAB-OMK.com 10.10.6.95 Delete the file NMIS_IS_LOCKED and run the command fpingd.pl Processing /usr/local/omk/log/opCharts.log Processing /usr/local/omk/log/opCharts.log-20210613.gz [root@cnvtmxomk01 admin]# |
...