NPC 2.0.4 Plugin - Nagios Status OFF

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Miraf
Posts: 1
Joined: Tue Aug 21, 2012 9:07 am

NPC 2.0.4 Plugin - Nagios Status OFF

Post by Miraf »

Hello! I'd like to ask for your help.

I install nagios-3.4.1, cacti 0.8.7i with PIA-3.1, ndoutils-1.4b8_5 on FreeBSD 8.2-RELEASE (with php53-5.3.15, apache-2.2.22_5, mysql-server-5.5.25).
After installation NPC 2.0.4 i see in cacti:
Image

And here's what i see in log webserver:
[Tue Aug 21 12:14:50 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined offset: 0 in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 105, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:14:50 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined offset: 0 in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 111, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:14:59 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: action in /usr/local/share/cacti/plugins/npc/top_graph_header.php on line 95, referer: http://yy.yy.yy.yy/cacti/plugins.php
[Tue Aug 21 12:15:34 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined variable: temp in /usr/local/share/cacti/plugins/npc/controllers/servicegroups.php on line 206, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:34 2012] [error] [client xx.xx.xx.xx] PHP Warning: Invalid argument supplied for foreach() in /usr/local/share/cacti/plugins/npc/controllers/hostgroups.php on line 188, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: instance_id in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: process_id in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: status_update_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: status_update_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 336, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: program_start_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: program_start_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 336, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: program_end_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: program_end_time in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 336, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: last_command_check in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: last_command_check in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 336, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: last_log_rotation in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: last_log_rotation in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 336, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: notifications_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: notifications_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 327, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: active_service_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: active_service_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 327, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: passive_service_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: passive_service_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 327, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: active_host_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 311, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
[Tue Aug 21 12:15:54 2012] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: active_host_checks_enabled in /usr/local/share/cacti/plugins/npc/controllers/nagios.php on line 327, referer: http://yy.yy.yy.yy/cacti/plugins/npc/np ... drawLayout
If anybody faced this issue before, please reply to me.
Thanks. Best regards.
luckywarrior
Posts: 1
Joined: Wed Jun 26, 2013 7:30 am

Re: NPC 2.0.4 Plugin - Nagios Status OFF

Post by luckywarrior »

I also has encontered the problem as follows:
s/npc/controllers/nagios.php on line 111, referer: https://172.29.148.4:8443/plugins/npc/n ... drawLayout
[Thu Jun 27 15:34:27 2013] [error] [client 172.29.148.5] PHP Notice: Undefined offset: 0 in /opt/aspire/product/nagios/cacti/plugins/npc/controllers/nagios.php on line 111, referer: https://172.29.148.4:8443/plugins/npc/n ... drawLayout
[Thu Jun 27 15:35:27 2013] [error] [client 172.29.148.5] PHP Notice: Undefined offset: 0 in /opt/aspire/product/nagios/cacti/plugins/npc/controllers/nagios.php on line 111, referer: https://172.29.148.4:8443/plugins/npc/n ... drawLayout
[Thu Jun 27 15:36:27 2013] [error] [client 172.29.148.5] PHP Notice: Undefined offset: 0 in /opt/aspire/product/nagios/cacti/plugins/npc/controllers/nagios.php on line 111, referer: https://172.29.148.4:8443/plugins/npc/n ... drawLayout


Reason:NO data in your cacti db,please check with" select count(*) from npc_hostchecks;" making sure that the ndoutils had worked correctly and insert data into cacti.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests