Re: Notifications for Windows disk usage are not sent out
Posted: Wed Oct 26, 2016 7:26 pm
Here you are:
[root@nagiosxi ~]# echo "\d xi_usermeta;" | psql nagiosxi nagiosxi
Table "public.xi_usermeta"
Column | Type | Modifiers
-------------+------------------------+-------------------------------------------------------------------
usermeta_id | integer | not null default nextval('xi_usermeta_usermeta_id_seq'::regclass)
user_id | integer | not null
keyname | character varying(255) | not null
keyvalue | text |
autoload | smallint | default (0)::smallint
Indexes:
"xi_usermeta_pkey" PRIMARY KEY, btree (usermeta_id)
"xi_usermeta_user_id_key" UNIQUE, btree (user_id, keyname)
"xi_usermeta_autoload_idx" btree (autoload)
[root@nagiosxi ~]# tail -50 /var/lib/pgsql/data/pg_log/postgresql-Wed.log
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
ERROR: relation "xi_notifications" does not exist
STATEMENT: VACUUM ANALYZE xi_notifications;
[root@nagiosxi ~]# tail -f /usr/local/nagiosxi/var/e*
==> /usr/local/nagiosxi/var/event_handler.lock <==
==> /usr/local/nagiosxi/var/event_handler.log <==
LOCKFILE '/usr/local/nagiosxi/var/event_handler.lock' CREATED
==> /usr/local/nagiosxi/var/event_handler.log-20161023 <==
LOCKFILE '/usr/local/nagiosxi/var/event_handler.lock' CREATED
DELETED LOCKFILE '/usr/local/nagiosxi/var/event_handler.lock'
EVENT HANDLER EXITING
==> /usr/local/nagiosxi/var/eventman.log <==
...
PROCESSED 0 EVENTS
==> /usr/local/nagiosxi/var/eventman.log-20161002 <==
....................
PROCESSED 0 EVENTS
==> /usr/local/nagiosxi/var/eventman.log-20161010 <==
....................
PROCESSED 0 EVENTS
==> /usr/local/nagiosxi/var/eventman.log-20161016 <==
....................
PROCESSED 0 EVENTS
==> /usr/local/nagiosxi/var/eventman.log-20161023 <==
....................
PROCESSED 0 EVENTS
==> /usr/local/nagiosxi/var/eventman.log <==
==> /usr/local/nagiosxi/var/event_handler.log <==
Array
(
[0] => 187
[eventqueue_id] => 187
[1] => 1477526544
[event_time] => 1477526544
[2] => 2
[event_source] => 2
[3] => 2
[event_type] => 2
[4] => a:26:{s:17:"notification-type";s:7:"service";s:7:"contact";s:11:"nagiosadmin";s:12:"contactemail";s:16:"nagios@localhost"
;s:4:"type";s:6:"CUSTOM";s:9:"escalated";s:1:"0";s:6:"author";s:20:"Nagios Administrator";s:8:"comments";s:4:"Test";s:4:"host";s:21:
"sepp.mum.schorsch.net";s:11:"hostaddress";s:12:"192.168.2.10";s:9:"hostalias";s:55:"MuM Familienserver (Windows Small Business Serv
er 2011)";s:15:"hostdisplayname";s:21:"sepp.mum.schorsch.net";s:7:"service";s:19:"Drive C: Disk Usage";s:9:"hoststate";s:2:"UP";s:11
:"hoststateid";s:1:"0";s:12:"servicestate";s:2:"OK";s:14:"servicestateid";s:1:"0";s:16:"lastservicestate";s:2:"OK";s:18:"lastservice
stateid";s:1:"0";s:16:"servicestatetype";s:4:"HARD";s:14:"currentattempt";s:1:"1";s:11:"maxattempts";s:1:"5";s:14:"serviceeventid";s
:5:"20479";s:16:"serviceproblemid";s:1:"0";s:13:"serviceoutput";s:77:"C: Label:System Serial Number e28c2a7c: 69%used(42482MB/61440
MB) (70%) : OK";s:17:"longserviceoutput";b:0;s:8:"datetime";s:29:"Thu Oct 27 02:02:24 CEST 2016";}
[event_meta] => a:26:{s:17:"notification-type";s:7:"service";s:7:"contact";s:11:"nagiosadmin";s:12:"contactemail";s:16:"nagios@l
ocalhost";s:4:"type";s:6:"CUSTOM";s:9:"escalated";s:1:"0";s:6:"author";s:20:"Nagios Administrator";s:8:"comments";s:4:"Test";s:4:"ho
st";s:21:"sepp.mum.schorsch.net";s:11:"hostaddress";s:12:"192.168.2.10";s:9:"hostalias";s:55:"MuM Familienserver (Windows Small Busi
ness Server 2011)";s:15:"hostdisplayname";s:21:"sepp.mum.schorsch.net";s:7:"service";s:19:"Drive C: Disk Usage";s:9:"hoststate";s:2:
"UP";s:11:"hoststateid";s:1:"0";s:12:"servicestate";s:2:"OK";s:14:"servicestateid";s:1:"0";s:16:"lastservicestate";s:2:"OK";s:18:"la
stservicestateid";s:1:"0";s:16:"servicestatetype";s:4:"HARD";s:14:"currentattempt";s:1:"1";s:11:"maxattempts";s:1:"5";s:14:"servicee
ventid";s:5:"20479";s:16:"serviceproblemid";s:1:"0";s:13:"serviceoutput";s:77:"C: Label:System Serial Number e28c2a7c: 69%used(4248
2MB/61440MB) (70%) : OK";s:17:"longserviceoutput";b:0;s:8:"datetime";s:29:"Thu Oct 27 02:02:24 CEST 2016";}
)
==> /usr/local/nagiosxi/var/eventman.log <==
=2, TYPE=2, TIME=2016-10-27 02:02:24
PHP Notice: unserialize(): Error at offset 928 of 1011 bytes in /usr/local/nagiosxi/cron/eventman.php on line 145
*** GLOBAL HANDLER...
Array
(
[event_id] => 50101
[event_source] => 2
[event_type] => 2
[event_time] => 2016-10-27 02:02:24
[event_meta] =>
[logging_enabled] => 1
)
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 50101
[event_source] => 2
[event_type] => 2
[event_time] => 2016-10-27 02:02:24
[event_meta] =>
[logging_enabled] => 1
)
ERROR: Could not find user_id for contact ''
.........