CactiEZ 0.7 Released

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: CactiEZ 0.7 Released

#106 Post by juliop » Wed Feb 11, 2015 2:12 pm

Hi all,

I have 3 CactiEZ running on different servers, in all of them i have the same issue when trying to start the embedded Nagios that comes in this CD.

This is the message when i point to <server_ip>/nagios

Whoops!

Error: Could not read host and service status information!


So searching in google i find some possible solutions:

"go to console and try "/usr/bin/nagios -v /etc/nagios/nagios.cfg" and see the output

At first i got this error:

Error: Cannot open config file '/etc/nagios/misccommands.cfg' for reading: No such file or directory
Error processing object config files!

and in another site i found how to create that file and what put on it so i did it:

# 'host-notify-by-email' command definition
define command{
command_name host-notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
}


# 'host-notify-by-epager' command definition
define command{
command_name host-notify-by-epager
command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
}

# 'notify-by-email' command definition
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}


# 'notify-by-epager' command definition
define command{
command_name notify-by-epager
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
}


Then the error and warning disappear:

[[email protected] /]# /usr/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Read main config file okay...
Processing object config file '/etc/nagios/checkcommands.cfg'...
Processing object config file '/etc/nagios/misccommands.cfg'...
Processing object config file '/etc/nagios/minimal.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 5 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 20 commands.
Checking time periods...
Checked 1 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


But now when i point again to the nagios server its says:

Whoops!

Error: Could not read host and service status information!

and i tried to run Nagios from console but it fails:

[[email protected] /]# /etc/init.d/nagios start
nagios is stopped
Starting nagios: [FAILED]

Just dont know what to do now... its really strange because it happens in three different servers and they are all clean installs from CactiEZ CD. Bytheway, Cacti is working fine with lots of hosts graphs and weathermaps.

Any ideas what to try next?

dicerr
Posts: 1
Joined: Wed Apr 22, 2015 1:54 am

Re: CactiEZ 0.7 Released

#107 Post by dicerr » Wed Apr 22, 2015 1:57 am

werik7 wrote:Just saw CactiEZ in a class and decided I had to have it.

I have tried to download it from multiple machines, OS and internet connections and can not get the download to complete with http. I can't even get it to start with the torrent.

Help!

thanks
I am having the exact same problem. I get the links, but the torrent file is corrupt and the http link does nothing. Anyone have the torrent file they could share?

xfrags
Posts: 7
Joined: Thu Mar 12, 2015 9:18 am

Re: CactiEZ 0.7 Released

#108 Post by xfrags » Wed Jun 03, 2015 6:47 am

juliop wrote:Hi all,

I have 3 CactiEZ running on different servers, in all of them i have the same issue when trying to start the embedded Nagios that comes in this CD.

This is the message when i point to <server_ip>/nagios

Whoops!

Error: Could not read host and service status information!


So searching in google i find some possible solutions:

"go to console and try "/usr/bin/nagios -v /etc/nagios/nagios.cfg" and see the output

At first i got this error:

Error: Cannot open config file '/etc/nagios/misccommands.cfg' for reading: No such file or directory
Error processing object config files!

and in another site i found how to create that file and what put on it so i did it:

# 'host-notify-by-email' command definition
define command{
command_name host-notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
}


# 'host-notify-by-epager' command definition
define command{
command_name host-notify-by-epager
command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
}

# 'notify-by-email' command definition
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}


# 'notify-by-epager' command definition
define command{
command_name notify-by-epager
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
}


Then the error and warning disappear:

[[email protected] /]# /usr/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Read main config file okay...
Processing object config file '/etc/nagios/checkcommands.cfg'...
Processing object config file '/etc/nagios/misccommands.cfg'...
Processing object config file '/etc/nagios/minimal.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 5 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 20 commands.
Checking time periods...
Checked 1 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


But now when i point again to the nagios server its says:

Whoops!

Error: Could not read host and service status information!

and i tried to run Nagios from console but it fails:

[[email protected] /]# /etc/init.d/nagios start
nagios is stopped
Starting nagios: [FAILED]

Just dont know what to do now... its really strange because it happens in three different servers and they are all clean installs from CactiEZ CD. Bytheway, Cacti is working fine with lots of hosts graphs and weathermaps.

Any ideas what to try next?
have the same nagios issue! any idea how to get nagios upp and running?

help please
Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.

dchaney
Posts: 13
Joined: Tue Jul 05, 2016 4:45 pm
Location: Houston Texas

Re: CactiEZ 0.7 Released

#109 Post by dchaney » Thu Jul 07, 2016 4:59 pm

I have installed the version 0.7 on Centos and the updates etc. After I have set up several devices with no issues new devices show a status of unknown and never gets to up. How can I resolve this? I am using SNMP and Ping with ICMP ping the configuration shows that the SNMP and Ping are both good but the device sticks at an unknown status. A resolution to this would be greatly appreciated.

ravellani
Posts: 6
Joined: Thu May 04, 2017 12:23 pm

Re: CactiEZ 0.7 Released

#110 Post by ravellani » Thu May 04, 2017 12:26 pm

Hi,
I have a problem in CactiEZ where I have created a map in the Weathermap editor but it is not showing up under the Weathermap tab, it says I have no maps. Any suggestions as to how to get the map to show up?

wakhan
Posts: 10
Joined: Wed Oct 26, 2011 2:57 am

Re: CactiEZ 0.7 Released

#111 Post by wakhan » Sat May 06, 2017 4:48 am

Hi,
I am using CactiEZ 0.7.iso with builtin Cacti version 0.8.8a.

The default setting of cacti0.8.8a is

Poller type =SPINE
Polling interval = 1 minutes
Cron Interval = 1 minutes

I have added 200 LAN devices. Now issue is that some devices are in UP state and some in UNKONWN state. The devcies in UP state are plotting graph properly. But in cacti.log i am receving errors for SPINE timeout:

05/06/2017 02:09:02 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
05/06/2017 02:09:01 PM - POLLER: Poller[0] WARNING: There are '1' detected as overrunning a polling process, please investigate

So i changed the default Polling interval and cron interval to 5 minutes. After the changes all the devices with UNKNOWN status becomes normal and this error is cleard from cacti.log.But now all the devices have stop creating GRAPHS and showing NAN value. If the click realtime button on graph then it shows the traffic but normal graphs are not plotting.

If i change the polling interval back to 1 minute than the old graphs again start making but SPINE timeout errors again started. But unknown devcies still dont create graph.

Please guide to make this normal.

Regards,

Post Reply