Tag: evweb

evweb eventviewer -L: An error occured while executing the request. Please check log file for more details.

I was having a problem with the event viewer

root@hp-ux:~ # evweb eventviewer -L

An error occured while executing the request. Please check log file for more details.

I was instructed to check the log file /var/opt/sfm/log/sfm.log

root@hp-ux:~ # cat /var/opt/sfm/log/sfm.log
09/26/13 19:03:01 EVWEB_DB_LIB 63 WARNING 1825 15 LOGDB: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/tmp/.s.PGSQL.10864”?

09/26/13 19:03:01 commonLog 122 ERROR 1825 15 DB Connection failed to LOGDB…

09/26/13 19:03:01 commonLog 78 CRITICAL 1825 15 DB connection failed

09/26/13 19:17:50 UTILS 348 CRITICAL 1825 1 Thread Join Failed , Errno: 3

Then some services needed to be restarted

root@hp-ux:~ # /opt/wbem/sbin/cimserver -s
PGS10019: CIM server is stopped.
root@hp-ux:~ # usermod -s /sbin/sh sfmdb
root@hp-ux:~ # /sbin/init.d/psbdb stop
root@hp-ux:~ # /sbin/init.d/psbdb start
root@hp-ux:~ # /opt/wbem/sbin/cimserver
root@hp-ux:~ #

Delete events showing in evweb eventviewer

If your event log is getting full

root@hp-ux:~ # evweb eventviewer -L

EvArchNo Severity Event # Event Category Archive Time Summary
========= ========= ============== ============== =================== ==============================
17820 Critical 187 Secondary S… 2013-09-26 14:08:51 An attempt to probe existin…
17819 Critical 187 Secondary S… 2013-09-26 14:08:48 An attempt to probe existin…
17818 Critical 187 Secondary S… 2013-09-26 14:08:46 An attempt to probe existin…
17817 Critical 187 Secondary S… 2013-09-26 14:08:44 An attempt to probe existin…
17816 Critical 187 Secondary S… 2013-09-26 13:36:04 An attempt to probe existin…
17815 Critical 187 Secondary S… 2013-09-26 13:35:58 An attempt to probe existin…
17814 Critical 187 Secondary S… 2013-09-26 13:35:56 An attempt to probe existin…
17813 Critical 187 Secondary S… 2013-09-26 13:35:54 An attempt to probe existin…
17812 Critical 187 Secondary S… 2013-09-26 13:32:44 An attempt to probe existin…
17811 Critical 187 Secondary S… 2013-09-26 13:32:38 An attempt to probe existin…
17810 Critical 187 Secondary S… 2013-09-26 13:32:36 An attempt to probe existin…
17809 Critical 187 Secondary S… 2013-09-26 13:32:34 An attempt to probe existin…
17808 Critical 187 Secondary S… 2013-09-26 13:29:14 An attempt to probe existin…
17807 Critical 187 Secondary S… 2013-09-26 13:28:23 An attempt to probe existin…
17806 Critical 187 Secondary S… 2013-09-26 13:28:21 An attempt to probe existin…
17805 Critical 187 Secondary S… 2013-09-26 13:28:19 An attempt to probe existin…

You can delete all the events running the command below. If you put -f it won’t ask you to delete the events

root@hp-ux:~ # evweb eventviewer [-f] -D
Are you sure you want to delete the event(s) (y/n)? [n]:
y

The execution of command was successful.

Run evweb eventviewer -L to list the events

root@hp-ux:~ # evweb eventviewer -L

EvArchNo Severity Event # Event Category Archive Time Summary
========= ========= ============== ============== =================== ==============================